Settings to use Zed panes like Vim windows #30908
adityasz
started this conversation in
Ideas From Vim
Replies: 1 comment
-
@ConradIrwin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It should be possible to ~match Vim's window/buffer model without a fundamental redesign by providing
an actiona command to close a pane (e.g.,pane::Close
pane: close
, which can be aliased to:quit
) along with the following settings:tab_switcher
, move the last used tab of the file from its current pane to the active pane. Additionally, close other tabs for this file to prevent multiple unused tabs of the same file from accumulating, see 2.(c) below.file_finder
,(a) if the file is not open in any tab, open the file in a tab in the active pane.
(b) if the file is not open in any active tab, perform the same action as
tab_switcher
.(c) if the file is open in an active tab (in an inactive pane), open a new tab for the file in the active pane. This allows having the same file in multiple panes visible at the same time so that
:vsplit
,:split
, etc. can work.tab_switcher::move_tabs
is related to this.Vim also has tabs. They are like having multiple Zed windows for the same project (not possible yet) with
tab_switcher
andfile_finder
configured to move Zed tabs across Zed windows in addition to panes as described above, and closing a Zed window should move all tabs in all panes in the window to the next active pane in the most recently used window. ("Native tabs" would offer a similar UI to Vim tabs but it may not be a planned feature.)Update: Zed already has a
pane: join into next
command. The proposedpane: close
command differs by not changing the active tab of the next pane.Beta Was this translation helpful? Give feedback.
All reactions