vamolessa / pepper

simple and opinionated modal code editor for your terminal
https://vamolessa.github.io/pepper/
372 stars 17 forks source link

`g` can't be remapped #72

Closed praschke closed 1 year ago

praschke commented 1 year ago

image

g doesn't open a mode, and when i put map normal m g in the config, this happens. i wanted to automatically move all uses of g to a different location. i guess without a mode i wouldn't be able to map keys coming after g anyway, but i think maybe this still shouldn't happen.

vamolessa commented 1 year ago

I was able to correctly map m to g using map normal m g at the start of my config. Maybe you could paste your whole config? Also, when is that key enqueueing happening? As soon as you start the editor or at some other time?

praschke commented 1 year ago

it was a combination of two lines. the minimum config that replicates it for me is this:

map normal m g
map normal g u

when i type m, with or without a file, it gets stuck inputting keys and i have to kill it externally.

vamolessa commented 1 year ago

alright, I can reproduce it now gonna take a look

vamolessa commented 1 year ago

I think it is fixed. I'll continue testing this new version to make sure it's properly working. Regardless, the fix will be included in the next release. That said, I'll appreciate it if you could also test it by installing from the latest git commit.

Will close. If anything comes up, please feel free to reopen.