Skip to content

Add helm-projectile-mode global minor mode - #216

Merged
bbatsov merged 1 commit into
masterfrom
helm-projectile-minor-mode
Jul 8, 2026
Merged

Add helm-projectile-mode global minor mode#216
bbatsov merged 1 commit into
masterfrom
helm-projectile-minor-mode

Conversation

@bbatsov

@bbatsov bbatsov commented Jul 8, 2026

Copy link
Copy Markdown
Owner

First of the five prioritized improvements. Replaces the ad-hoc helm-projectile-on / -off / -toggle trio with a proper global minor mode.

  • helm-projectile-mode (:global t) installs/removes the Projectile command remaps (the old toggle logic, factored into helm-projectile--setup). helm-projectile-on, -off and -toggle are kept as thin obsolete wrappers, so existing configs keep working.
  • Loading the package no longer has unconditional global side effects: the advice on helm-find-file-or-marked and helm-grep-ag-1, and the C-c p f binding in helm-etags-map, now install with the mode and are removed when it's turned off. Previously they were active from load whether or not you ever enabled Helm-Projectile - so plain Helm usage was affected. Now they're scoped to the mode.

README updated to recommend (helm-projectile-mode). Tests updated to drive the mode and assert the advice installs/removes with it (66 specs).

  • The commits are consistent with our contribution guidelines
  • The new code is not generating bytecode or M-x checkdoc warnings
  • You've updated the changelog
  • You've updated the readme

Replace the ad-hoc `helm-projectile-on'/`-off'/`-toggle' trio with a
proper global minor mode.  `helm-projectile-mode' installs and removes
the Projectile command remaps (the old toggle logic, now factored into
`helm-projectile--setup'); the three legacy commands become thin,
obsolete wrappers around it.

Loading the package no longer has unconditional global side effects: the
advice on `helm-find-file-or-marked' and `helm-grep-ag-1' and the
`C-c p f' binding in `helm-etags-map' now install with the mode and are
removed when it is turned off, so they only affect plain Helm while
Helm-Projectile is actually enabled.
@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@bbatsov
bbatsov merged commit c4e4ea8 into master Jul 8, 2026
10 checks passed
@bbatsov
bbatsov deleted the helm-projectile-minor-mode branch July 8, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants