tgrosinger / leader-hotkeys-obsidian

Use a leader-key (tmux style) for hotkeys in Obsidian.md
GNU General Public License v3.0
79 stars 12 forks source link

Missing options button and uncaught exception "Duplicate keymap" #29

Open huyz opened 2 years ago

huyz commented 2 years ago

Describe the bug How do I get past this error in the Dev Tools Console. It seems that this killing the extension completely as I can't even get to a Options page:

Uncaught (in promise) Error: Duplicate keymap
    at Trie.add (plugin:leader-hotkeys-obsidian:298:19)
    at Trie.addAll (plugin:leader-hotkeys-obsidian:265:22)
    at Function.Trie.from (plugin:leader-hotkeys-obsidian:257:14)
    at MatchHandler.setKeymap (plugin:leader-hotkeys-obsidian:456:26)
    at new MatchHandler (plugin:leader-hotkeys-obsidian:446:14)
    at LeaderHotkeys.eval (plugin:leader-hotkeys-obsidian:909:45)
    at step (plugin:leader-hotkeys-obsidian:66:23)
    at Object.eval [as next] (plugin:leader-hotkeys-obsidian:47:53)
    at fulfilled (plugin:leader-hotkeys-obsidian:37:58)

I checked my hotkeys and I can't two commands assigned to the same sequence

To Reproduce I don't know what's triggered this.

Expected behavior I can see an Options page so that I can configure my leader key along with other hotkeys.

Screenshots No options button: screenshot 2022-07-31T202621Z

Desktop (please complete the following information):