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

Switching buffer by index #21

Closed
chunkhang opened this issue Jul 7, 2019 · 3 comments
Closed

Switching buffer by index #21

chunkhang opened this issue Jul 7, 2019 · 3 comments

Comments

@chunkhang
Copy link
Collaborator

I just migrated from vim-buftabline. One thing I miss is switching buffers by their ordinal numbers. It will be great if vim-buffet can do something similar by providing the option to display index number before the buffer name, and exposing a function to switch to buffer with index X.

# | 1 first.txt | 2 second.txt | 3 third.txt |
@chunkhang chunkhang changed the title Switching Buffer by Index Switching buffer by index Jul 7, 2019
@bagrat
Copy link
Owner

bagrat commented Jul 8, 2019

Thanks for contributing ideas here @chunkhang! Please feel free to submit a PR for this feature or ask for reference points for where to start from.

Otherwise, I will update this issue as soon as I start working on it.

@chunkhang
Copy link
Collaborator Author

Sure @bagrat. I'll be more than happy to work on a PR.

@bagrat
Copy link
Owner

bagrat commented Jul 8, 2019

Perfect! A good starting point would be to add the buffer index to the rendered result here. For switching by buffer index, you might want to come up with a new function, command and maybe even mapping.

@chunkhang chunkhang mentioned this issue Jul 9, 2019
@bagrat bagrat added the done label Jul 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants