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

[ Feature Request ] - Per tab buffer list like ctrl-space #230

Open
ldelossa opened this issue Jan 23, 2021 · 3 comments
Open

[ Feature Request ] - Per tab buffer list like ctrl-space #230

ldelossa opened this issue Jan 23, 2021 · 3 comments

Comments

@ldelossa
Copy link

This is a feature request.

I've recently been looking for a solution that implements per-tab buffer lists.

This is handy, and not a new idea. The use case is usually for browsing large code bases. You may want a tab for two particular packages in a large code base. When you're in one tab, you only want the buffers associated with files inside that package, not the other.

There is a project which does this well. https://github.com/vim-ctrlspace/vim-ctrlspace

I'm using this currently, but I also use coc and fzf-preview. It would be nice if I did not need vim-ctrlspace and could obtain per-tab buffer lists via fzf preview.

Thanks!

@yuki-yano
Copy link
Owner

Sorry for the delay in replying.

I don't know much about ctrlspace, so I'll have to check and see if it's possible.
I will check when I have time, but do you know if ctrlspace makes it possible to get the values you are using as API?

@ldelossa
Copy link
Author

ldelossa commented Feb 1, 2021

No worries on the delay.

There does seem to be a defined API for ctrlspace - https://github.com/vim-ctrlspace/vim-ctrlspace/blob/master/autoload/ctrlspace/api.vim

However, it would be nice if ctrlspace was not required. Would it be possible for fzf-preview to have a vimscript which did some tab -> window -> buffer grokking.

For example when I issue "fzf.preview.TabBuffers" fzf vim looks at the current tab, finds the windows in that tab, and then only displays the buffers of those windows for selection. Something of that nature.

@yuki-yano
Copy link
Owner

Hmm, I think it would be difficult to reimplement the ctrlspace feature, both in terms of the plugin concept and implementation.

The API seems to be provided, so I'll look into it when I have time.

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