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
LuaTreeFindFile doesn't always work #10
Comments
If you point me in the right direction I can take a look if that would help? Might take me a bit to figure out how it works first |
Thanks for making so detailed issues :) |
i hate lua regex matching. |
Thanks for the quick PR @kyazdani42 just tested it locally and seems to still be happening |
mmh strange i cannot reproduce the issue anymore. if node.relpath and relpath:find(utils.path_to_matching_str(node.relpath)) then where relpath is the relative path of the node, and path_to_matching_str a function replacing |
Are you running macos or linux ? |
I'm on Ubuntu 20.04 It looks like lua tree uses the dir that vim was opened from and sticks with that regardless of what buffer you are in, not sure if that is the intended behaviour? My assumption was that if I opened vim in say |
Alternatively maybe lua tree should just follow vim's dir and then users can use settings like |
So it is a different kind of issue, indeed this plugin uses the default dir where it was opened. Also multiple projects is a feature i didn't think about, but it would be quite hard to implement in the current state, it would require a different implementation. |
One way that I've seen this solved is in |
well i prefer classic |
oh my bad i just realized i didn't understand your issue at all. I'm gonna fix this asap sorry ! |
it's fixed, i will add support for multiple workspaces one day, thanks for the tip ;) |
Ah I actually didn't really mean more than one workspace tbh, although if you mean like vscode that might be cool. I basically just meant when you open Lua Tree in a buffer the root directory should be the one of the current buffer. I tried master but it didn't resolve it unfortunately. I made a PR #13 which works for me locally. Let me know what you think 👍 |
…25012996ed32f0 parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 # This is a combination of 13 commits. # This is the 1st commit message: feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) # This is the commit message nvim-tree#2: feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) # This is the commit message nvim-tree#3: Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 # This is the commit message nvim-tree#4: fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 # This is the commit message nvim-tree#5: fix(renderer): empty space at end of line fixes nvim-tree#1253 # This is the commit message nvim-tree#6: add fish performance tip to README.md # This is the commit message nvim-tree#7: feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) # This is the commit message nvim-tree#8: feat: reload explorer on buf enter (nvim-tree#1265) # This is the commit message nvim-tree#9: chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) # This is the commit message nvim-tree#10: chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 # This is the commit message nvim-tree#11: refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. # This is the commit message nvim-tree#12: feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) # This is the commit message nvim-tree#13: Ignore case when removing default mappings # This is the commit message nvim-tree#14: issue#362: File Management popup menu UI. First Iteration.
parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 # This is a combination of 13 commits. # This is the 1st commit message: feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) # This is the commit message nvim-tree#2: feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) # This is the commit message nvim-tree#3: Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 # This is the commit message nvim-tree#4: fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 # This is the commit message nvim-tree#5: fix(renderer): empty space at end of line fixes nvim-tree#1253 # This is the commit message nvim-tree#6: add fish performance tip to README.md # This is the commit message nvim-tree#7: feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) # This is the commit message nvim-tree#8: feat: reload explorer on buf enter (nvim-tree#1265) # This is the commit message nvim-tree#9: chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) # This is the commit message nvim-tree#10: chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 # This is the commit message nvim-tree#11: refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. # This is the commit message nvim-tree#12: feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) # This is the commit message nvim-tree#13: Ignore case when removing default mappings # This is the commit message nvim-tree#14: issue#362: File Management popup menu UI. First Iteration. # This is the commit message nvim-tree#15: Workin on menu refactoring # This is the commit message nvim-tree#17: Working MVP of NvimTree menu. Added Readme.md with explanation of the current state of feature and DEFAULT_OPTIONS to test. # This is the commit message nvim-tree#18: Update README.md # This is the commit message nvim-tree#19: updated popup-menu/init.lua # This is the commit message nvim-tree#20: Update init.lua # This is the commit message nvim-tree#21: Update README.md
# This is the 1st commit message: refactor: use lua api for user commands and autocommands (nvim-tree#1206) BREAKING: plugin now requires nvim-0.7 # This is the commit message nvim-tree#2: # This is a combination of 14 commits.tree a88ac1bf9454ffa72e8002a79b25012996ed32f0 parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 # This is a combination of 13 commits. # This is the 1st commit message: feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) # This is the commit message nvim-tree#2: feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) # This is the commit message nvim-tree#3: Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 # This is the commit message nvim-tree#4: fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 # This is the commit message nvim-tree#5: fix(renderer): empty space at end of line fixes nvim-tree#1253 # This is the commit message nvim-tree#6: add fish performance tip to README.md # This is the commit message nvim-tree#7: feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) # This is the commit message nvim-tree#8: feat: reload explorer on buf enter (nvim-tree#1265) # This is the commit message nvim-tree#9: chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) # This is the commit message nvim-tree#10: chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 # This is the commit message nvim-tree#11: refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. # This is the commit message nvim-tree#12: feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) # This is the commit message nvim-tree#13: Ignore case when removing default mappings # This is the commit message nvim-tree#14: issue#362: File Management popup menu UI. First Iteration. # This is the commit message nvim-tree#3: parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 fix(renderer): empty space at end of line fixes nvim-tree#1253 add fish performance tip to README.md feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) feat: reload explorer on buf enter (nvim-tree#1265) chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) Ignore case when removing default mappings issue#362: File Management popup menu UI. First Iteration. Workin on menu refactoring # This is the commit message nvim-tree#4: parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 fix(renderer): empty space at end of line fixes nvim-tree#1253 add fish performance tip to README.md feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) feat: reload explorer on buf enter (nvim-tree#1265) chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) Ignore case when removing default mappings issue#362: File Management popup menu UI. First Iteration. Workin on menu refactoring Working MVP of NvimTree menu. Added Readme.md with explanation of the current state of feature and DEFAULT_OPTIONS to test. # This is the commit message nvim-tree#5: parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 fix(renderer): empty space at end of line fixes nvim-tree#1253 add fish performance tip to README.md feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) feat: reload explorer on buf enter (nvim-tree#1265) chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) Ignore case when removing default mappings issue#362: File Management popup menu UI. First Iteration. Workin on menu refactoring Working MVP of NvimTree menu. Added Readme.md with explanation of the current state of feature and DEFAULT_OPTIONS to test. Update README.md # This is the commit message nvim-tree#6: # This is a combination of 21 commits. parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 # This is a combination of 13 commits. # This is the 1st commit message: feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) # This is the commit message nvim-tree#2: feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) # This is the commit message nvim-tree#3: Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 # This is the commit message nvim-tree#4: fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 # This is the commit message nvim-tree#5: fix(renderer): empty space at end of line fixes nvim-tree#1253 # This is the commit message nvim-tree#6: add fish performance tip to README.md # This is the commit message nvim-tree#7: feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) # This is the commit message nvim-tree#8: feat: reload explorer on buf enter (nvim-tree#1265) # This is the commit message nvim-tree#9: chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) # This is the commit message nvim-tree#10: chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 # This is the commit message nvim-tree#11: refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. # This is the commit message nvim-tree#12: feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) # This is the commit message nvim-tree#13: Ignore case when removing default mappings # This is the commit message nvim-tree#14: issue#362: File Management popup menu UI. First Iteration. # This is the commit message nvim-tree#15: Workin on menu refactoring # This is the commit message nvim-tree#17: Working MVP of NvimTree menu. Added Readme.md with explanation of the current state of feature and DEFAULT_OPTIONS to test. # This is the commit message nvim-tree#18: Update README.md # This is the commit message nvim-tree#19: updated popup-menu/init.lua # This is the commit message nvim-tree#20: Update init.lua # This is the commit message nvim-tree#21: Update README.md # This is the commit message nvim-tree#7: parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 fix(renderer): empty space at end of line fixes nvim-tree#1253 add fish performance tip to README.md feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) feat: reload explorer on buf enter (nvim-tree#1265) chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) Ignore case when removing default mappings issue#362: File Management popup menu UI. First Iteration. Workin on menu refactoring Working MVP of NvimTree menu. Added Readme.md with explanation of the current state of feature and DEFAULT_OPTIONS to test. Update README.md updated popup-menu/init.lua Update init.lua Update README.md Done parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 fix(renderer): empty space at end of line fixes nvim-tree#1253 add fish performance tip to README.md feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) feat: reload explorer on buf enter (nvim-tree#1265) chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) Ignore case when removing default mappings issue#362: File Management popup menu UI. First Iteration. Workin on menu refactoring Working MVP of NvimTree menu. Added Readme.md with explanation of the current state of feature and DEFAULT_OPTIONS to test. Update README.md updated popup-menu/init.lua Update init.lua Update README.md Done # This is the commit message nvim-tree#8: feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) # This is the commit message nvim-tree#9: feat: extension sorter (nvim-tree#1181) (nvim-tree#1264)
# This is the 1st commit message: refactor: use lua api for user commands and autocommands (nvim-tree#1206) BREAKING: plugin now requires nvim-0.7 # This is the commit message nvim-tree#2: # This is a combination of 14 commits.tree a88ac1bf9454ffa72e8002a79b25012996ed32f0 parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 # This is a combination of 13 commits. # This is the 1st commit message: feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) # This is the commit message nvim-tree#2: feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) # This is the commit message nvim-tree#3: Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 # This is the commit message nvim-tree#4: fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 # This is the commit message nvim-tree#5: fix(renderer): empty space at end of line fixes nvim-tree#1253 # This is the commit message nvim-tree#6: add fish performance tip to README.md # This is the commit message nvim-tree#7: feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) # This is the commit message nvim-tree#8: feat: reload explorer on buf enter (nvim-tree#1265) # This is the commit message nvim-tree#9: chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) # This is the commit message nvim-tree#10: chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 # This is the commit message nvim-tree#11: refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. # This is the commit message nvim-tree#12: feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) # This is the commit message nvim-tree#13: Ignore case when removing default mappings # This is the commit message nvim-tree#14: issue#362: File Management popup menu UI. First Iteration. # This is the commit message nvim-tree#3: parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 fix(renderer): empty space at end of line fixes nvim-tree#1253 add fish performance tip to README.md feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) feat: reload explorer on buf enter (nvim-tree#1265) chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) Ignore case when removing default mappings issue#362: File Management popup menu UI. First Iteration. Workin on menu refactoring # This is the commit message nvim-tree#4: parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 fix(renderer): empty space at end of line fixes nvim-tree#1253 add fish performance tip to README.md feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) feat: reload explorer on buf enter (nvim-tree#1265) chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) Ignore case when removing default mappings issue#362: File Management popup menu UI. First Iteration. Workin on menu refactoring Working MVP of NvimTree menu. Added Readme.md with explanation of the current state of feature and DEFAULT_OPTIONS to test. # This is the commit message nvim-tree#5: parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 fix(renderer): empty space at end of line fixes nvim-tree#1253 add fish performance tip to README.md feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) feat: reload explorer on buf enter (nvim-tree#1265) chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) Ignore case when removing default mappings issue#362: File Management popup menu UI. First Iteration. Workin on menu refactoring Working MVP of NvimTree menu. Added Readme.md with explanation of the current state of feature and DEFAULT_OPTIONS to test. Update README.md # This is the commit message nvim-tree#6: # This is a combination of 21 commits. parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 # This is a combination of 13 commits. # This is the 1st commit message: feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) # This is the commit message nvim-tree#2: feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) # This is the commit message nvim-tree#3: Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 # This is the commit message nvim-tree#4: fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 # This is the commit message nvim-tree#5: fix(renderer): empty space at end of line fixes nvim-tree#1253 # This is the commit message nvim-tree#6: add fish performance tip to README.md # This is the commit message nvim-tree#7: feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) # This is the commit message nvim-tree#8: feat: reload explorer on buf enter (nvim-tree#1265) # This is the commit message nvim-tree#9: chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) # This is the commit message nvim-tree#10: chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 # This is the commit message nvim-tree#11: refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. # This is the commit message nvim-tree#12: feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) # This is the commit message nvim-tree#13: Ignore case when removing default mappings # This is the commit message nvim-tree#14: issue#362: File Management popup menu UI. First Iteration. # This is the commit message nvim-tree#15: Workin on menu refactoring # This is the commit message nvim-tree#17: Working MVP of NvimTree menu. Added Readme.md with explanation of the current state of feature and DEFAULT_OPTIONS to test. # This is the commit message nvim-tree#18: Update README.md # This is the commit message nvim-tree#19: updated popup-menu/init.lua # This is the commit message nvim-tree#20: Update init.lua # This is the commit message nvim-tree#21: Update README.md # This is the commit message nvim-tree#7: parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 fix(renderer): empty space at end of line fixes nvim-tree#1253 add fish performance tip to README.md feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) feat: reload explorer on buf enter (nvim-tree#1265) chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) Ignore case when removing default mappings issue#362: File Management popup menu UI. First Iteration. Workin on menu refactoring Working MVP of NvimTree menu. Added Readme.md with explanation of the current state of feature and DEFAULT_OPTIONS to test. Update README.md updated popup-menu/init.lua Update init.lua Update README.md Done parent 4601444 author Kiyan <yazdani.kiyan@protonmail.com> 1652514867 +0200 committer Moshe Avni <mavni@netapp.com> 1653224067 +0300 feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 fix(renderer): padding when git icons are after the name fixes nvim-tree#1253 fix(renderer): empty space at end of line fixes nvim-tree#1253 add fish performance tip to README.md feat(live-filter): add ability to live filter out nodes in the tree (nvim-tree#1056) feat: reload explorer on buf enter (nvim-tree#1265) chore(config): auto resize the tree by default when opening a file. config.open_file.auto_resize is now true by default. Breaking change for default configurations. See nvim-tree#1275 (comment) chore: remove custom set local implementation Seems vim.opt_local has been fixed. see neovim/neovim#14670 refactor: simplify opening file in new tab fixes nvim-tree#1271. Also fixes opening a file in new tab when close_on_open was true. This introduces breaking change since we don't do any extra behavior and let the buffer be opened by the tree. The previous behavior was a bit old and i believe this should've been fixed by now. Reference this commit if unexpected behavior appears while opening files in new tabs from nvim-tree. feat: optional path argument for NvimTreeToggle and NvimTreeFindFileToggle (nvim-tree#1276) Ignore case when removing default mappings issue#362: File Management popup menu UI. First Iteration. Workin on menu refactoring Working MVP of NvimTree menu. Added Readme.md with explanation of the current state of feature and DEFAULT_OPTIONS to test. Update README.md updated popup-menu/init.lua Update init.lua Update README.md Done # This is the commit message nvim-tree#8: feat(renderer): add ability to set git icons in signcolumn (nvim-tree#1242) # This is the commit message nvim-tree#9: feat: extension sorter (nvim-tree#1181) (nvim-tree#1264) # This is the commit message nvim-tree#10: Revert "nvim-tree#1253 only pad git icons when they are present (nvim-tree#1259)" This reverts commit 90d7b8e. fixes nvim-tree#1267 # This is the commit message nvim-tree#11: fix(renderer): padding when git icons are after the name fixes nvim-tree#1253
Thanks for fixing #9 so quickly 🙌 .
I ran into another issue FYI 😅, when buffers from different repositories are open, nvim-tree doesn't move to the current project root (or alternatively the directory that contains the file). The GIF below hopefully shows what I mean. The first buffer in the GIF is my dotfiles repo, but I opened vim in a dart project repo. LuaTree sticks to the initial directory, and when I move into the dotfiles project it doesn't change the tree to show the new dir.
Note: using
LuaTreeFindFile
in a buffer in a different project than lua tree does nothingStill reading through the code so not exactly sure what is going on yet. Looks like maybe
ROOT_PATH
isn't being updated when you enter a new dir 🤷♂️The text was updated successfully, but these errors were encountered: