Skip to content
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

Fix treeview focusing to hidden view #1799

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mobilex1122
Copy link

Sets visibility to true when treeview:toggle-focus is executed. (Prevents focusing on nonvisible treeview in the editor)

Added option to disable this behaviour. (show_on_focus)

Sets visibility to true when treeview:toggle-focus is executed.
(Prevents focusing on nonvisible treeview in the editor)

Added option to disable this behaviour. (show_on_focus)
@mobilex1122
Copy link
Author

mobilex1122 commented Jun 1, 2024

Sorry. I made a syntax error.

@mobilex1122 mobilex1122 closed this Jun 1, 2024
@mobilex1122 mobilex1122 reopened this Jun 1, 2024
Copy link
Member

@Guldoman Guldoman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
I wonder if we should avoid adding the config option, as the behavior of just showing the Treeview sounds sane enough.

Also, I wonder how it would feel if we hide it again (if it was hidden before) when it loses focus. So:

  1. Treeview is hidden
  2. treeview:toggle-focus
  3. Treeview appears
  4. User opens a file
  5. Treeview hides again

or

  1. Treeview is hidden
  2. treeview:toggle-focus
  3. Treeview appears
  4. treeview:toggle-focus
  5. Treeview hides again

or

  1. Treeview is hidden
  2. treeview:toggle-focus
  3. Treeview appears
  4. User clicks away from the Treeview
  5. Treeview hides again

@mobilex1122
Copy link
Author

Yeah. That would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants