Skip to content

Ability to open multiple files (tabs/buffers) #280

@Andrew15-5

Description

@Andrew15-5

Description

In many GUI editors, you can open multiple tabs, each of which contain a single file/buffer that you can edit. You would usually switch between them with Ctrl+Tab and Ctrl+Shift+Tab.

image

Splits

I personally don't like this design:

image

because it separates all the files on the left and on the right and in order to access echo of them you first have to jump to left or right side and then select the desired file.

In Neovim, you can open multiple buffers in infinite configurations in a single tab. Each tab can hold multiple buffers. To switch between tabs, you can use gt and gT. (To switch between buffers in a single tab, you can use Ctrl+W and then h/j/k/l.) With nvchad.com that has a tabufline plugin, you can mimic the way GUI editors work:

image

But then you can also use tabs:
image

But this is overkill, and just multiple "tab as file" would be enough. BTW, in Neovim I switch between buffers with Ctrl+h/j/k/l if multiple are visible, or Shift+h/j/k/l if only one buffer is visible.

image

Use Case

Quickly switch between files without reaching for a mouse/touchpad.

Metadata

Metadata

Assignees

No one assigned

    Labels

    editorRelated to the text/markup editor.feature requestNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions