Closed chrishoage closed 6 years ago
This is probably because the mode has the same name as a literal. This isn't really a problem, but is just a consequence of how the tokenizer works right now.
This is probably because the mode has the same name as a literal. This isn't really a problem, but is just a consequence of how the tokenizer works right now.
Yeah, that's what I figured. If you don't feel like this should be fixed please do feel free to close this. Just figured I'd report it 😄
Probably not gonna bother changing anything here as it is not really obvious how to avoid ambiguous situations, as a hotkey can start with both a mode or a literal, and if the same keyword is valid for both types, we don't really know where in the parsing process we are at.
I want to preface with if this is not possible please feel free to just close this GHI.
I noticed when converting my khdrc to my skhdrc I could no longer use my
insert
mode name.My Previous khdrc
My desired skhdrc
However I noticed that skhd would fail with this error
I changed
insert
tonobind
and it worked, but the error was unexpected, since the syntax for modes mean that it shouldn't care about what the mode is calledThis is no huge deal, and basically my only issue converting aside from lack of prefix timeout, which I proposed a solution for here https://github.com/koekeishiya/skhd/issues/37#issuecomment-395995098