Skip to content

v1.7.0

Latest

Choose a tag to compare

@bbatsov bbatsov released this 08 Jul 12:52
· 2 commits to master since this release

New features

  • Add other-tab variants (helm-projectile-find-file-other-tab, helm-projectile-find-dir-other-tab, helm-projectile-switch-project-other-tab), matching Helm 4.x's tab-bar support alongside the existing other-window and other-frame variants. "Open in other tab" is also available as an action (bound to C-c t) in the project and directory sources.
  • Add helm-projectile-mode, a proper global minor mode that installs and removes the Projectile command remaps. helm-projectile-on, helm-projectile-off and helm-projectile-toggle still work but are now deprecated in favor of the mode. The advice helm-projectile installs on Helm (helm-find-file-or-marked, helm-grep-ag-1) and the C-c p f binding in helm-etags-map now live with the mode too, so they are only active while it is enabled instead of unconditionally at load.

Changes

  • Require Emacs 28.1 and Projectile 3.1.0. Projectile 3.1.0 raised its own minimum to Emacs 28.1 (and pulls in compat), so helm-projectile can no longer be installed on Emacs 27. The CI matrix drops the 27.2 job accordingly.
  • Drop the dead "Find file in Elscreen" grep/ack action. Helm removed elscreen support (helm-grep-jump-elscreen no longer exists), so that action errored for anyone who still had elscreen installed.
  • Deprecate helm-projectile-ack. ack has been superseded by ripgrep and the silver searcher, and Projectile itself dropped projectile-ack; use helm-projectile-rg or helm-projectile-ag instead. The command still works for now but is marked obsolete and will be removed in a future release.

Internal

  • Add a shared test helper module (test/helm-projectile-test-helper.el) with a temporary-project sandbox, and broaden unit coverage of the pure helpers (helm-projectile-hack-actions, helm-projectile--wildcard-to-ack-match, helm-projectile--move-selection-p, helm-projectile--files-display-real) and helm-projectile-files-in-current-dired-buffer.
  • Cover the search-command construction: the grep/git-grep/ack command templates built by helm-projectile-grep-or-ack, the per-searcher ignore globs (--ignore vs --glob !) built by helm-projectile--ag-1, and the ignored-files/directories unions.
  • Measure test coverage with undercover and report it to Codecov from a dedicated (non-blocking) CI job.
  • Raise test coverage from ~34% to ~46%: cover helm-projectile-ack's ignore-argument building and executable detection, the ag/rg default-input helpers, helm-projectile-remove-known-project, helm-projectile-all-dired-buffers, the helm-projectile-switch-project-by-name variants, and the helm-projectile-dired-files-new-action virtual-Dired builder.
  • Raise test coverage further to ~55%: cover the helm-projectile entry point, helm-projectile-grep, helm-projectile-file-persistent-action, the find-file-dwim / find-other-file single-candidate paths, and the helm-projectile-dired-files-delete-action virtual-Dired action.
  • Replace the fixed run-with-timer delay in helm-projectile-grep/helm-projectile-ack (used so a search invoked as an action didn't start until the current Helm session tore down) with helm-run-after-exit when a session is live, and a direct call otherwise. No more arbitrary 10ms latency on the standalone commands, and the deferral is now explicit.
  • Tidy up top-level dependencies: require grep from the helpers that actually use grep-find-ignored-files/-directories (helm-projectile--ignored-files/-directories) instead of relying on it being pulled in transitively, and drop the unused helm-locate and helm-global-bindings requires. (No startup-time change - Helm loads all three transitively anyway; this just makes the dependencies honest.)
  • Give every defcustom a :package-version, so Customize and M-x customize-changed can tell users which release each option was introduced in.