MacOS System Keybinds Overriden by Obsidian

Steps to reproduce

  1. New install.
  2. Press Command + H, which is a hotkey used for hiding the window.

Expected result

Window hides.

Actual result

Find and Replace Opens.

Environment

  • Operating system:
    MacOS (any)
  • Obsidian version:
    v0.7.3

Additional information

It’s a system key combination in MacOS, it would be wise to not use it on MacOS by default.

3 Likes

I agree that it shouldn’t be default. For the time being, if anyone is having problem, it can be changed by going to Preferences (⌘,) → Hotkeys → Search & replace in current file.

I have set it to ⌘⇧F so it’s easier to remember.

2 Likes

Yeah, it’s a simple change in the keybinds section thankfully!

1 Like

This seems to be caused by the inconsistency between operating systems. Apologies that neither of us are macOS users. From Wikipedia:

(Source: https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts)

I’m surprised that both “Find” and “Find & Replace” use Cmd-F. How does that work?

We can implement OS specific hotkey for this action, but not sure how if they both use Cmd-F.

1 Like

That wiki page is incorrect. There is no system-wide standard “Search and replace” / “Find and replace” keybinding on MacOS.

The attached screen shot shows that Apple’s own TextEdit program binds option+command+f as the “Find and replace” shortcut.

Here are Apple’s Human Interface Guidelines for developers which shows the reserved and expected shortcuts.

As the reporter stated, it would be great to have command+h back as the “Hide Windows” shortcut. Thanks!

2 Likes

And ⌘G for next search result.

1 Like

+1 Two things I noticed on day 1 of using Obsidian as inconsistencies compared to other macOS Apps:

  • Cmd-H should hide the application
  • Cmd-Shift-W should close the window (like if I had multiple vaults open and wanted to close the focused one)
1 Like

Updated the thread ti tle to “MacOS System Keybinds Overriden by Obsidian” to reflect this.

⌘G not working for next search result is annoying (and ⌘+Shift+G for previous), and there is no way to re-map them.