xFA25E / pueue

Emacs interface for Pueue
GNU General Public License v3.0
18 stars 3 forks source link

Usage with evil #1

Open numkem opened 1 year ago

numkem commented 1 year ago

Hello,

I'm trying your packing within doom-emacs with Evil mode activated. I've noticed nothing seems ot be responding until evil-mode is turned off.

Is there something that could be done for this to be working similar to how magit works (evil-collection?)

Thank you!

xFA25E commented 1 year ago

Hi! Unfortunately, I'm not an evil-mode user and I've never used vim or vim-like bindings. I wouldn't know which bindings interfere with vim bindings. I could contribute to evil-collection, but somebody has to send me a good set of binding for evil usage of pueue.

numkem commented 1 year ago

I came up with this which is more or less taken from the source code than translated:

(evil-collection-define-key 'normal 'pueue-mode-map
  (kbd "I") 'pueue-info
  (kbd "RET") 'pueue-mark
  (kbd "<return>") 'pueue-mark
  (kbd "u") 'pueue-unmark
  (kbd "U") 'pueue-unmark-all
  (kbd "t") 'pueue-toggle-marks
  (kbd "a") 'pueue-add
  (kbd "c") 'pueue-clean
  (kbd "e") 'pueue-edit
  (kbd "Q") 'pueue-enqueue
  (kbd "f") 'pueue-follow
  (kbd "G") 'pueue-group
  (kbd "k") 'pueue-kill
  (kbd "l") 'pueue-log
  (kbd "L") 'pueue-parallel
  (kbd "P") 'pueue-pause
  (kbd "D") 'pueue-remove
  (kbd "T") 'pueue-reset
  (kbd "r") 'pueue-restart
  (kbd "S") 'pueue-send
  (kbd "s") 'pueue-start
  (kbd "H") 'pueue-stash
  (kbd "w") 'pueue-switch
  (kbd "?") 'pueue-help
  )
numkem commented 1 year ago

And with Doom or anywhere that uses popup.el, you can add this to not have pueue seen as a popup:

(set-popup-rule! "\\*Pueue\\*"  :ignore t)