benji300 / joplin-note-tabs

Allows to open several notes at once in tabs and pin them.
MIT License
251 stars 16 forks source link

Enable keyboard shortcuts #66

Open yajo opened 1 year ago

yajo commented 1 year ago

All of Joplin can be used without touching the mouse. I do this with all apps that have tabs. However, this plugin with this key feature would be super productive! 🎉

Common shortcuts:

However, they should be configurable like most others in Joplin.

fedorch commented 9 months ago

Hi! I came here to write about the same thing. ;-)

I don't know if this is a feature of Joplin or this plugin, but only one menu item in this plugin ("Pin note to Tabs") is available for customizing hotkeys. Maybe the problem of the inability to configure hotkeys will be solved by adding the accelerator property to each plugin menu item. For example, as described in that message. But I'm not familiar enough with Javascript development to try modifying the plugin.

However, I found anyone available solution. You need to create or modify file keymap-desktop.json in the same directory where file settings.json is located and write the following into it:

[
  {
    "command": "tabsSwitchLastActive",
    "accelerator": "Ctrl+Tab"
  },
  {
    "command": "tabsSwitchLeft",
    "accelerator": "Ctrl+PageUp"
  },
  {
    "command": "tabsSwitchRight",
    "accelerator": "Ctrl+PageDown"
  }
]
hoodslide commented 1 week ago

...create or modify file keymap-desktop.json in the same directory where file settings.json is located...

Thank you! This works great. On OSX, the location is ~/.config/joplin-desktop/, and you'll probably want to map to "Cmd+Shift+[" and "Cmd+Shift+]".