-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
feat(file_browser): tree view #210
Conversation
c7dd6f0
to
d7d8816
Compare
07d4a1a
to
565f906
Compare
8981ffa
to
d2ed506
Compare
b2ca280
to
ab4a128
Compare
10adefe
to
0700d33
Compare
0700d33
to
cfc393b
Compare
Hi, I'm so interested in this feature, Can I try it out? |
Yes , you can , and it's good for the developer to report any bugs you might find |
I can continue development for this if it'll help. Can't promise it'd get it done any sooner but.. 😅 |
I'd have had maybe some time this week to continue but unfortunately got very sick :/ This PR is actually reasonably close, but needs some cleaning up and finishing one more feature I'd like to have. One larger roadblock is that this will definitely be a breaking change and I'd need to look into how to make a release of the "status quo" telescope-file-browser. Probably like 2-3 evenings for me to get to where I want.
Very much appreciated, but the tree implementation is somewhat involved considering how telescope works. I understand this is a very desired feature and I want to see this go pass the finish line :) I'd suggest the following, I'll try to finish this towards around mid-March (~2 weeks), then we have a call for beta testers to jump on the branch and hopefully have this by April (another ~2 weeks). |
Thanks for your hard work! Don't need to rush anything, personal life takes priority! |
Testers welcome. Suggested config file_browser = {
grouped = true,
initial_browser = "tree",
-- auto switch to `telescope.builtin.find_files` style finder if there is a prompt
auto_depth = true,
depth = 1,
}, Notes on UX:
It should generally be very performant in all actual use cases, one TODO is maybe a time out (albeit 70K files with depth increasing in linux repo is still acceptable in ~1s) Thoughts:
|
I've been thinking about this as well a bit. When the working tree is clean, having a bunch of empty space prepending the path looks a little awkward. People thought it was a bug. |
I moved it to the very front for now, I think that's a good solution. If there's no git info, then there's no spaces for any file. E: There's a bug with width now, it's off by one. |
Amazing to see this feature slowly making it to master ! Thank you so much , I started testing it right away! |
Reporting bugs here is the correct place.
I cannot reproduce, seems to work as intended for me. Does pressing ">" in insert mode increase depth for you as intended? The prompt should also show the current "depth=$DEPTH" |
telescope.mp4
|
I'm afraid I'm off to bed now, though unfortunately it's not clear to me why the tree is not appropriately showing for you. I hope to think of something tomorrow. |
I'm trying the recommended config in a minimal_config environment and things are generally functioning well. |
The folder browser is defacto deprecated, as I want to get rid of browser-specific code (barring difference between "list" & "tree" view). It's use with file_browser = {
grouped = true,
initial_browser = "tree",
-- auto switch to `telescope.builtin.find_files` style finder if there is a prompt
auto_depth = true,
depth = 1,
browser_opts = {
["folders"] = {
only_dirs = true,
is_tree = false,
path_display =
}
}
},
Config management between different browsers probably still has issues, I've been mostly focusing on the tree view. I'm thinking about to make file_browser = {
grouped = true,
initial_browser = "tree",
-- auto switch to `telescope.builtin.find_files` style finder if there is a prompt
auto_depth = true,
depth = 1,
}, The default, it just works very nicely |
ecf0630
to
8957ede
Compare
skip-checks: true
Amazing. Is it a thing yet? |
The branch is functional, I'm using it personally as my daily driver for almost a year. Non-critical errors may (but should not) appear though. This branch doesn't get updates from Closing the PR. Maybe (unlikely though, to be honest) I'll factor it out as a separate plugin. E: Whoever wants to stick on the file_browser = {
grouped = true,
previewer = false,
initial_browser = "tree",
-- searching activates a `telescope.find_files` like finder
-- you can use this to enter directories and remove ( move, copy) files to
-- selected dir (or selected dir of file) etc.
auto_depth = true,
depth = 1,
}, My favorite functionality though is expanding / collapsing tree levels with If there are critical bugs, I will of course fix them. |
PR is just a preview. It works reasonably well up until here, but lots of work still required.
E: This PR is well progressed, but I will only be able to continue towards the end of January, since deadline for job soon takes priority ;)
Closes #165
E: Copying my closing reply also to the top
The branch is functional, I'm using it personally as my daily driver for almost a year. Non-critical errors may (shoudl not) appear though.
This branch doesn't get updates from master (I typically don't need them). Moreover, this 99% will never make it into master, since it is practically speaking in too many aspects of its implementation a separate plugin. While I find this branch a strict improvement, I currently don't have the time & desire to manage all the associated maintenance burden getting it into master.
Closing the PR. Maybe (unlikely though, to be honest) I'll factor it out as a separate plugin.
E: Whoever wants to stick on the feat/tree branch, my config (in telescope extensions) is
My favorite functionality though is expanding / collapsing tree levels with > and <.
If there are critical bugs, I will of course fix them.