Skip to content

[Fix #1956] Add switch-project-other-window/-frame commands#2028

Merged
bbatsov merged 1 commit into
masterfrom
feature/1956-switch-project-other-window
Jun 20, 2026
Merged

[Fix #1956] Add switch-project-other-window/-frame commands#2028
bbatsov merged 1 commit into
masterfrom
feature/1956-switch-project-other-window

Conversation

@bbatsov

@bbatsov bbatsov commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Adds projectile-switch-project-other-window and projectile-switch-project-other-frame, which switch to a project and display it in another window/frame (bound to 4 p / 5 p, and in the dispatch transient).

Implements the issue's Solution 3: the post-switch action is configurable via new projectile-switch-project-other-window-action / projectile-switch-project-other-frame-action options (find-file in the other window/frame by default). The commands reuse projectile-switch-project and just rebind the action, so the dir-locals handling, prefix-arg commander and most-recent tracking all stay in one place.

Fixes #1956.

Add `projectile-switch-project-other-window' and
`projectile-switch-project-other-frame', which switch to a project and
display it in another window/frame. Following the issue's Solution 3,
the post-switch action is configurable via the new
`projectile-switch-project-other-window-action' /
`-other-frame-action' options (find-file in the other window/frame by
default). The commands reuse `projectile-switch-project' and just rebind
the action, so all the switch behavior stays in one place. Bound to
`4 p' / `5 p' and added to the dispatch transient.
@bbatsov bbatsov merged commit 1aebd42 into master Jun 20, 2026
10 checks passed
@bbatsov bbatsov deleted the feature/1956-switch-project-other-window branch June 20, 2026 09:02
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.

Commands to switch project and find files in other window/frame

1 participant