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

[BUG] QuickAdd opens newly created file in two separate tabs when using Cmd+N on macOS #780

Open
YGMaerz opened this issue Feb 26, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@YGMaerz
Copy link

YGMaerz commented Feb 26, 2025

Describe the bug
When I create a new note via QuickAdd (on macOS) using a capture/creation that specifies a path in the “File Name” and has “Open the created file” + “Focus new pane” turned on, the note ends up opening in two different tabs instead of just one. After the new note is created and opened in the new tab, my old tab (the one I started from) also switches to the newly created note.

To Reproduce
Steps to reproduce the behavior:

  1. In Obsidian (macOS), install QuickAdd and configure a capture to:
    • Include a path in the “File Name” (e.g., _07 - UNSORTED/{{DATE:YYYY-MM-DD}} Untitled ...)
    • Check “Create in folder”
    • Check “Open the created file”
    • Check “Focus new pane”
  2. Assign a keyboard shortcut (e.g., Cmd+N) to this capture (disable Obsidian's default “New note” hotkey or overlap it; same result).
  3. With an existing note open, press the assigned shortcut to trigger the new note creation.
  4. Observe that the new note is opened in a new tab (expected), but the original tab also switches to the new note, resulting in two tabs with the same note.

Expected behavior
I expect only one tab to display the newly created note (the old tab should remain on the previously opened note).

Screenshots
N/A (can’t easily screenshot tab-switching, but I can provide if needed).

Desktop (please complete the following information):

  • OS: macOS [e.g. Ventura 13.2.1]
  • Browser: N/A (using the Obsidian desktop app)
  • QuickAdd version: [e.g. 0.6.0]
  • Obsidian version: [e.g. 1.1.9]

Smartphone (please complete the following information):

  • Not applicable.

Additional context

  • Disabling “Focus new pane” or “Open the created file” avoids the duplicate tab problem, but changes my desired workflow.
  • I tried removing Obsidian’s native “New note” hotkey to ensure no overlap, but the issue persists.
  • This may be related to how QuickAdd interacts with Obsidian’s tab-opening behavior.
  • Let me know if you need logs, or if there is a better way to set up QuickAdd to avoid the double-open.
@YGMaerz YGMaerz added the bug Something isn't working label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant