-
Notifications
You must be signed in to change notification settings - Fork 58
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
Support open from different roots? #77
Comments
good idea, this is pretty easy to do |
I did not found I also did not found how to open directory selected by cmdline ( Both features seems to be related to this issue. |
|
:CHADopen will toggle CHADTree open / close CHADopen :CHADopen --always-focus will disable toggle if already opened :CHADopen --nofocus will open CHADTree without giving the sidebar focus |
Thanks for the change. It works but not quite in expected way.
|
I am happy if people just have something in their clipboard and they want to open it with Something like that is strictly inferior than say if they used Anyways, thank you very much for the suggestions, I will add them as I see fit. My goal for CHADTree is to make something modern and has a cohesive design, and purposefully eschew doing things the "old way" just because they were done in so and so fashion in the past. |
Yet one side effect: |
I updated my thing above with my reasoning for not copying My goal is to make something good by adding in things that make sense when put together with the other features, not to match other plugins If im missing a feature, I will almost always consider adding it, but I have to control how much I add and for what purpose should I add these. Thank you very much for the list of suggestion tho, I very much appreciate it. I will tack on the fix for point 2 on #124, since its relatively small |
I not suggest you to copy NERDTree UX - I use it as a commonly known example of some practical usages missing there. |
How Why the feature of jumping directly to file position on tree is bad? It saves me from manual moving to the file on the tree. It is for me the most often used action on NERDTree. It can be implemented without breaking anything else. I meant that the cursor does not land on the file item on the tree: CHADTree focuses the cursor only on itself - not on the file item. |
alot of plugins actually check the buffer name via There is nothing with with To your second point, I think I misunderstood you, you are right it is a better default to focus on the sidebar not the file as a default. |
My English is still poor and it is very possible that lots of misunderstanigs have source on my side. I still do not understand the reason for which you want to keep expanding disabled (apart from it could be optional). In most cases I would like to jump to the current file item on the tree using a custom mapping. I can write a custom function that does it if you don't want - this is a secondary issue. The basic is to can jump directly to given file position on the tree (independently of where the file is placed). Probably we can ask which directory set then as the new root of the tree and how much views of tree we want to keep at once (for two different tabs for example). |
Oh English is not your first language? that makes sense. I think we both misunderstood each other. Thank you for keep going even if there is some communication issues, thats really awesome. So I've given it more thought, the |
The At the moment, amongst four non-blocking file explorers CHADTree seems to me the most worthy of attention and effort (because of UI and dependencies) - also for breaking misunderstandings. Thank you also for continuing the discussion. |
This PR I think interoperates most of your suggestions #127 |
Jumping to selected file item seems to work, thank you! 🎉 Side effect mentioned there still exist. With |
I also noticed more than one CHADTree view instances 👍
|
ohhh I thought u wanted that behaviour so I specifically added it in lol. yeah not having it open the file is more logical. yes i can add in a vsc top lv. im going to do these after I get windows working. im so close |
Please check if you still want anything. |
Thanks anyway. |
It actually doesn't open with regards to Try it under a sub directory of git folder. It opens at the top level where the git root is. It just happens that most of the time I will close this because that's the logical behaviour. |
wait i think I just realized what you meant, you want the top level to be git root but keep focus on same file, oh... edit: its ok communication between two people who speak different languages can be confusing |
Now |
oh right, i just figured i should let |
Maybe writing tests would make expectations more precise from my side. |
ok fixing this next |
The text was updated successfully, but these errors were encountered: