Skip to content
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

[Config Recipe] Support Tabby TabName #14

Closed
IceS2 opened this issue Apr 27, 2023 · 1 comment
Closed

[Config Recipe] Support Tabby TabName #14

IceS2 opened this issue Apr 27, 2023 · 1 comment

Comments

@IceS2
Copy link

IceS2 commented Apr 27, 2023

Hello o/
I was fiddling around with Tabby and telescope-tabs to see if I could actually make it work with the names I setup for the tabs and I came out with this following config:

      require("telescope-tabs").setup {
        entry_formatter = function(tab_id, buffer_ids, file_names, file_paths, is_current)
            local tab_name = require("tabby.feature.tab_name").get(tab_id)
            return string.format("%d: %s%s", tab_id, tab_name, is_current and " <" or "")
        end,
        entry_ordinal = function(tab_id, buffer_ids, file_names, file_paths, is_current)
          return require("tabby.feature.tab_name").get(tab_id)
        end
      }

Just leaving it here in case you want to add it to the wiki (=

@LukasPietzschmann
Copy link
Owner

How cool is that! I use tabby myself, and I'll probably use this snippet in my own config :)
Thanks a lot for sharing, I'll definitely put it in the wiki.

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

No branches or pull requests

2 participants