-
Notifications
You must be signed in to change notification settings - Fork 178
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: Proper Support for Opening in a New Tab #1785
Comments
This way creates No Name buffer each time do 20 h "[No Name]" line 1
21 h "[No Name]" line 1
22 h "[No Name]" line 1
33 h "[No Name]" line 1
34 h "[No Name]" line 1
35 a "[No Name]" line 0
36 h "[No Name]" line 1 maybe |
Hmm, it is not creating |
emm... it will ~ master ❯ nvim --clean --headless --cmd 'tabnew | tabnew | tabnew' --cmd 'ls'
1 "[No Name]" line 1
2 a "[No Name]" line 0
3 #a "[No Name]" line 0
4 %a "[No Name]" line 1 |
Hmm, but you are not opening any actual files? I guess this is normal since you are just opening an empty new tab?
|
You're right, but the template used by fzf-lua is nvim -n --clean --headless +'tabnew | e readme.md | tabnew | e .gitignore | tabnew | e bin.sh' +'ls!'
1 a "[No Name]" line 1
2 a "readme.md" line 0
3 #a ".gitignore" line 0
4 %a "bin.sh" line 1 In some case it can be different (when your buffer have been loaded) nvim -n --clean --headless --cmd 'e readme.md | e .gitignore | e bin.sh' +'tabnew | e readme.md | tabnew | e .gitignore | tabnew | e | tabnew | e bin.sh' +'ls!'
1 a "readme.md" line 1
2 a ".gitignore" line 1
3 %a "bin.sh" line 1
4 h "[No Name]" line 1
5 h "[No Name]" line 1
6 #h "[No Name]" line 1 |
Handling the edge cases might be tricky, and solution would likely involve a combination of |
Ty both @Yarovski and @phanen, I’ll do some testing and think about it, I’ve been wanting to refactor the whole thing to use Since @Yarovski already has a workaround this is no rush so we can think about it for a while. |
Meanwhile I have added Summary:
|
@yavorski, what I won’t understand is why continuing the current buffer with |
It's mostly a matter of organization, workflow, and personal preference. Thanks for the update! Everything works great now. |
Great, thanks for the update! |
Have you RTFM'd?
Feature Request
Hi, Not sure if this is a bug or feature request.
Summary
When opening an entry from any
fzf-lua
picker in a new tab, the current buffer is carried over to the new tab.This seems to happen because
fzf-lua
usestab split
instead oftabnew
when handling new tabs.Current Behavior
fzf-lua
opens new tabs usingtab split
, which results in the current buffer being present in the newly opened tab.file_picker
in my configuration, but it is tedious to do so for all pickers.Workaround
Here is my current override:
Expected Behavior
Proposed Solution
Would it be possible to replace
tab split
withtabnew
infzf-lua
to solve the issue?Related Issue
There is also an open issue in the
scope.nvim
repository regarding this behavior:tiagovla/scope.nvim#35.
Should this be addressed in
fzf-lua
instead?The text was updated successfully, but these errors were encountered: