Skip to content

Commit

Permalink
add convenient keybinds for LEM's multiplexer.
Browse files Browse the repository at this point in the history
`C-z C-z` and `C-z z` are frame-multiplexer-recent, very helpful to switch between frames quickly. if you are constantly switching between two frames, `C-z C-z` is super easy to press

`C-z N` (where N is number between 0 and 9) to go to the Nth frame directly.  very logical and intuitive.  tmux also uses the same system
  • Loading branch information
SequentialDesign committed Dec 3, 2024
1 parent d71a593 commit 7707dee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ext/frame-multiplexer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@
(define-key *keymap* "p" 'frame-multiplexer-prev)
(define-key *keymap* "n" 'frame-multiplexer-next)
(define-key *keymap* "r" 'frame-multiplexer-rename)
(define-key *keymap* "C-z" 'frame-multiplexer-recent)
(define-key *keymap* "z" 'frame-multiplexer-recent)
(define-key *keymap* "0" 'frame-multiplexer-switch-0)
(define-key *keymap* "1" 'frame-multiplexer-switch-1)
(define-key *keymap* "2" 'frame-multiplexer-switch-2)
(define-key *keymap* "3" 'frame-multiplexer-switch-3)
(define-key *keymap* "4" 'frame-multiplexer-switch-4)
(define-key *keymap* "5" 'frame-multiplexer-switch-5)
(define-key *keymap* "6" 'frame-multiplexer-switch-6)
(define-key *keymap* "7" 'frame-multiplexer-switch-7)
(define-key *keymap* "8" 'frame-multiplexer-switch-8)
(define-key *keymap* "9" 'frame-multiplexer-switch-9)
(define-key *global-keymap* "C-z" *keymap*)

(defstruct tab
Expand Down

0 comments on commit 7707dee

Please sign in to comment.