timhor / obsidian-editor-shortcuts

Obsidian plugin to add keyboard shortcuts commonly found in code editors such as Visual Studio Code (vscode) or Sublime Text
MIT License
329 stars 24 forks source link

[Feature Requests] Additional key binding suggestions #63

Open Anzan opened 1 year ago

Anzan commented 1 year ago

As a Sublime Text user, here are some other key binding suggestions:

Code Editor Shortcut: Expand selection to brackets Ctrl + Shift + M Code Editor Shortcut: Insert cursor above Ctrl + Alt + (up arrow) Code Editor Shortcut: Insert cursor below Ctrl + Alt + (down arrow)

Command palette: Open command palette Ctrl + Shift + P Quick switcher: Open quick switcher Ctrl + P

This one isn't related to Sublime Text but just something I added personally:

Code Editor Shortcut: Expand selection to quotes Ctrl + '

timhor commented 1 year ago

To clarify, are you suggesting these as default key bindings? Since you can currently customise the key bindings for these actions via Obsidian's hotkey settings already.

Anzan commented 1 year ago

Yeah, just suggesting additional default key bindings for your plugin that corresponds to defaults in Sublime Text, I prefer to install your plugin with every new vault than having to set them up manually every time, which is what I'm currently doing.

timhor commented 1 year ago

Makes sense! I've been meaning to add some default key bindings users can optionally enable / switch between in settings (see this card).

As a workaround for now, you can copy over the hotkeys.json from your existing vault's .obsidian directory.

Anzan commented 1 year ago

I'm a new user with Obsidian and yeah, I just figured the hotkeys.json trick, still, I think other Sublime Text users might enjoy as many familiar keys as possible. If you're trying to stick with keys that are the same in both VScode and ST, it might be too restrictive or too much of a compromise. Thanks for your plugin!

timhor commented 1 year ago

Yeah definitely agree, the new setting should solve this exact issue – I just need to find the time to build it in 😀

Mikestriken commented 1 month ago

Please add my request in #81 (not sure if this is supposed to be some kind of "main feature request thread")