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

Keypresses also register on Files pane immediately after switching files #24

Open
scriptingtest opened this issue Oct 16, 2024 · 2 comments

Comments

@scriptingtest
Copy link

Describe the bug
Immediately after switching files, the Files pane is simultaneously focused (indicated by highlight).
In this state, keypresses also register as interactions with the Files pane. This becomes problematic when:

  • Typing a filename for a newly created file
  • Editing a Canvas file by selecting cards

To Reproduce
Assuming that TagRoutes release 1.1.4 is enabled in a new Obsidian vault, do either of the following:

  1. Create a new Markdown file
    1. The text cursor should be focused on the filename in the markdown tab.
    2. Do not click anywhere. Type a word or letter, then press Space.
  2. Create a new Canvas file
    1. Double-click the canvas to create a new card.
    2. The text cursor should be focused within the card in the canvas tab.
    3. Do not click anywhere. Type a word or letter, then press Space.
    4. Alternatively, click outside the card. Click once to select the card, then press Delete.

Expected behavior
Space/Delete should not interrupt typing/editing due to also interacting with the Files pane.

Desktop (please complete the following information):

  • OS: Windows 11

Additional context
Add the option to toggle automatic highlighting on the current file in the Files pane.

@kctekn
Copy link
Owner

kctekn commented Oct 16, 2024

Thank you for the feedback! I understand what you described, and I will incorporate this fix in the next release.

@kctekn
Copy link
Owner

kctekn commented Oct 17, 2024

You can check the new version now: https://github.com/kctekn/obsidian-TagsRoutes/releases/tag/1.1.5

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

No branches or pull requests

2 participants