ycnmhd / obsidian-lineage

Gingko-like interface in obsidian
MIT License
101 stars 7 forks source link

Support "Command ⌘ " modifier. #16

Closed CoffeeDrinkRabbit closed 4 months ago

CoffeeDrinkRabbit commented 5 months ago

Hi! An apple user here.

The current shortcut settings only seem to support ctrl, alt and shift.

ycnmhd commented 5 months ago

I updated the plugin to use cmd key instead of ctrl on Mac, but I don't have a physical device to test it. Could you please test it and report back if it works as expected? To do so, download the attached main.js and move it to the plugin folder lineage replacing the existing main.js file , then disable the plugin and re-enable it.

main.zip

CoffeeDrinkRabbit commented 5 months ago

The Command key works fine, and found it strange in testing that the alt key doesn't work anymore.

Can't rule out that it's my system shortcuts taking over (it is.), so far I've tested all possible combinations with alt and none of them work. A possible solution would be to add ctrl, so that I can test and compare the effect of ctrl+alt+key with command+alt+key and ctrl+command+alt+key.

😜BTW, I would like to have both ctrl and command settings to avoid too many conflicting with system shortcuts.

ycnmhd commented 4 months ago

I updated the plugin so that

main.zip

CoffeeDrinkRabbit commented 4 months ago

Everything is running smoothly, thank you for your work!

ycnmhd commented 4 months ago

Thank you for testing it. If any of the default hotkeys don't work because they conflict with macOS, I can replace the modifiers!