8000 Feature: named tabpages · Issue #638 · romgrk/barbar.nvim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature: named tabpages #638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dpetka2001 opened this issue Feb 3, 2025 · 2 comments
Open

Feature: named tabpages #638

dpetka2001 opened this issue Feb 3, 2025 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@dpetka2001
Copy link
dpetka2001 commented Feb 3, 2025

It would be awesome if you could provide a command for renaming Neovim tab pages just like bufferline's BufferLineTabRename command. It's really useful when using Neovim tabs to separate workflow based on projects instead of terminal native tabs or something like tmux.

That might also include a redesign of how tab pages are shown at the top right corner. Not sure how much of a hassle that would be, but I just thought to make this feature request regardless and leave it up to you if it's something worth considering or not.

@romgrk romgrk added help wanted Extra attention is needed good first issue Good for newcomers labels Feb 3, 2025
@romgrk
Copy link
Owner
romgrk commented Feb 3, 2025

It doesn't sound like a big change, though I don't use that feature enough to have interest in implementing it. We can leave the issue open in case someone wants to contribute it.

@Iron-E
Copy link
Collaborator
Iron-E commented Feb 4, 2025

Could nvim_buf_set_name do this? E.g.

vim.keymap.set('n', '<Leader>br', function()
  vim.ui.input(
    {
      prompt = 'Rename buffer',
      default = vim.api.nvim_buf_get_name(0),
    },
    function(input)
      vim.api.nvim_buf_set_name(0, input)
    end
  )
end)

Note I just wrote that on my phone so it might not execute, but it hopefully gets the gist across.


Edit: misread, this request is for tabpages, not buffers
edit(romgrk): s/tabs/tabpages/, line above

@romgrk romgrk changed the title Feature: TabRename Feature: named tabpages Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants
0