Skip to content

Add other-tab command variants - #214

Merged
bbatsov merged 1 commit into
masterfrom
other-tab-support
Jul 8, 2026
Merged

Add other-tab command variants#214
bbatsov merged 1 commit into
masterfrom
other-tab-support

Conversation

@bbatsov

@bbatsov bbatsov commented Jul 8, 2026

Copy link
Copy Markdown
Owner

Fills the Helm-evolution gap surfaced in the audit: Helm 4.x gained tab-bar actions (helm-ff-find-file-other-tab), but helm-projectile only had other-window and other-frame variants. This mirrors that plumbing so finding files, finding directories and switching projects can each open in a new tab:

  • helm-projectile-find-file-other-tab - with the sync/streaming and Dired source variants, so it honors helm-projectile-find-file-strategy like the other find-file commands
  • helm-projectile-find-dir-other-tab - via a new helm-projectile-dired-find-dir-other-tab action (dired-other-tab)
  • helm-projectile-switch-project-other-tab - switches with helm-projectile-find-file-other-tab as the project action

"Open in other tab" is also added to the project and directory action lists and bound to C-c t inside those Helm sessions. Within helm-projectile-find-file the tab action already works via Helm's inherited C-c C-t.

Projectile has no projectile-*-other-tab commands to remap onto (and C-c p t is already toggle-test), so these are autoloaded commands + in-Helm actions rather than forced onto projectile-command-map. README documents them; 4 new specs (63 total).

  • 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

Helm 4.x gained tab-bar actions (`helm-ff-find-file-other-tab'); mirror
the existing other-window/other-frame plumbing so finding files, finding
directories and switching projects can each open in a new tab:

- `helm-projectile-find-file-other-tab' (with the sync/streaming and
  Dired source variants, so it honors `helm-projectile-find-file-strategy'
  like the other find-file commands),
- `helm-projectile-find-dir-other-tab' (via a new
  `helm-projectile-dired-find-dir-other-tab' action using `dired-other-tab'),
- `helm-projectile-switch-project-other-tab' (which switches with
  `helm-projectile-find-file-other-tab' as the project action).

"Open in other tab" is also added to the project and directory action
lists and bound to `C-c t' inside those Helm sessions.

Projectile has no `projectile-*-other-tab' commands to remap onto, so
these are provided as autoloaded commands (and in-Helm actions) rather
than bound onto `projectile-command-map'.
@bbatsov
bbatsov merged commit c8980d5 into master Jul 8, 2026
10 checks passed
@bbatsov
bbatsov deleted the other-tab-support branch July 8, 2026 08:31
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.

1 participant