lem icon indicating copy to clipboard operation
lem copied to clipboard

Bind for peek-legit-discard-file conflicts with vi-mode

Open ghosty141 opened this issue 1 year ago • 6 comments

Because of this keybind you can't navigate in normal mode in legit which makes it kind of unusable.

(define-key *peek-legit-keymap* "k" 'peek-legit-discard-file)

ghosty141 avatar Sep 02 '24 14:09 ghosty141

I've encountered quite a few modes where vi-mode feels like a second class citizen.

  • color-theme-selector-mode
  • dashboard-mode
  • legit
  • filer

Who knows what else. They make you go into vi insert-mode to do anything.

g-gundam avatar Sep 04 '24 13:09 g-gundam

yeah… those issues are not fun. My "fix" would be to ensure we enter Legit in Emacs mode or vi insert mode, so we don't have the conflicts.

vindarel avatar Sep 06 '24 15:09 vindarel

There has to be a better way. If Emacs can do it, why not Lem? I'm going to keep thinking about it.

g-gundam avatar Sep 06 '24 16:09 g-gundam

yeah… those issues are not fun. My "fix" would be to ensure we enter Legit in Emacs mode or vi insert mode, so we don't have the conflicts.

I don't fully agree. For VI users normal mode/motion mode is the standard so that should be honored even in 3rd party packages.

For "discard" I'd suggest "x" as that would work with vi-mode in normal just fine! Magit also uses that I believe

ghosty141 avatar Sep 07 '24 15:09 ghosty141

Take a look at #1515. I didn't do anything for legit yet, but I could. I just chose to fix some of the simpler modes first as a proof of concept.

g-gundam avatar Sep 08 '24 01:09 g-gundam

This issue has been inactive for {days} days. If there is no activity within the next 14 days, it will be automatically closed. Please add a comment if it is still relevant.

github-actions[bot] avatar Aug 11 '25 18:08 github-actions[bot]

Closing this issue due to inactivity. Please reopen or create a new issue if the problem persists.

github-actions[bot] avatar Dec 16 '25 18:12 github-actions[bot]