Repository navigation
feat: add two new reveal options for the tree-view - #715
kumarharsh wants to merge 2 commits into
Conversation
1. AutoReveal - control the revealing of files automatically as they
are switched in the panes.
2. FocusOnReveal - control whether the focus on the editor panes is
transferred to the tree-view pane on calling 'reveal-active-file'
|
@kuychaco can someone review this PR? |
|
Can you split these out into 2 PRs, one for each option? The focus option is less controversial, and looks like we'll be able to merge that. |
|
Meaning the |
|
I think we need to think about that one a little more. |
|
What are the concerns if any, if I may know. |
|
It's yet another option. Do we really need it? We'd really like to limit the number of options if we can. Maybe it can be the default behavior? Does it have to do with the focus option? Like is the behavior different when the focus option is checked? Basically someone needs to look at it a little more deeply. So by splitting the PR, it allows us the merge the one that seems like a no brainer, and think about the other. |
|
Yeah sure, I'd do that tomorrow. Although both options play well with each other and everything else. I thought to keep the |
There are at least 3 packages (that I know) with this functionality:
Looking at the downloads I would say that people use them. But none of them is perfect, so having it as a native option which plays well with all the others would be much better. |
|
@laughedelic thanks. Didn't know these many were already there... Actually didn't even search for it 😝 This is a small init script I wrote before deciding to contribute here: atom.workspace.observeActivePane (pane) ->
pane.onDidChangeActiveItem ->
workspace = atom.views.getView(atom.workspace)
# Reveal the current file in sidebar when switched to that tab
atom.commands.dispatch(workspace, 'tree-view:reveal-active-file') |
|
Since it seems this was split into two separate PRs, should this one be closed @kumarharsh? |
|
yes! forgot to do that 😄 |
are switched in the panes.
transferred to the tree-view pane on calling 'reveal-active-file'
This adds a small behaviour which is more in line with what
SublimeText offers. This PR also addresses other open issues/PRs
like: #247 #459 #188