Skip to content

Commit

Permalink
Fix grammar of window movement commands (#1766)
Browse files Browse the repository at this point in the history
* Update default-keybindings.md

* Update window.lisp

* Update commands.lisp
  • Loading branch information
solanav authored Feb 7, 2025
1 parent 34126e5 commit 5c0fc53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/default-keybindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ Supported modes include: c-mode with clang-format, go-mode with gofmt, js-mode a
| [next-window](https://github.com/lem-project/lem/blob/main/src/commands/window.lisp#L139) | C-x o, M-o | Go to the next window. |
| [previous-window](https://github.com/lem-project/lem/blob/main/src/commands/window.lisp#L151) | M-O | |
| [switch-to-last-focused-window](https://github.com/lem-project/lem/blob/main/src/commands/window.lisp#L154) | | Go to the window that was last in focus. |
| [window-move-down](https://github.com/lem-project/lem/blob/main/src/commands/window.lisp#L162) | | Go to the window on the down. |
| [window-move-up](https://github.com/lem-project/lem/blob/main/src/commands/window.lisp#L167) | | Go to the window on the up. |
| [window-move-down](https://github.com/lem-project/lem/blob/main/src/commands/window.lisp#L162) | | Go to the window below. |
| [window-move-up](https://github.com/lem-project/lem/blob/main/src/commands/window.lisp#L167) | | Go to the window above. |
| [window-move-right](https://github.com/lem-project/lem/blob/main/src/commands/window.lisp#L172) | | Go to the window on the right. |
| [window-move-left](https://github.com/lem-project/lem/blob/main/src/commands/window.lisp#L177) | | Go to the window on the left. |
| [delete-other-windows](https://github.com/lem-project/lem/blob/main/src/commands/window.lisp#L182) | C-x 1 | Delete all other windows. |
Expand Down
4 changes: 2 additions & 2 deletions extensions/vi-mode/commands.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1125,11 +1125,11 @@ on the same line or at eol if there are none."
(dotimes (i n) (window-move-left)))

(define-command vi-window-move-down (&optional (n 1)) (:universal)
"Go to the window on the down N times."
"Go to the window below N times."
(dotimes (i n) (window-move-down)))

(define-command vi-window-move-up (&optional (n 1)) (:universal)
"Go to the window on the up N times."
"Go to the window above N times."
(dotimes (i n) (window-move-up)))

(define-command vi-window-move-right (&optional (n 1)) (:universal)
Expand Down
4 changes: 2 additions & 2 deletions src/commands/window.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@
(switch-to-window window)))

(define-command window-move-down () ()
"Go to the window on the down."
"Go to the window below."
(alexandria:when-let ((window (down-window (current-window))))
(switch-to-window window)))

(define-command window-move-up () ()
"Go to the window on the up."
"Go to the window above."
(alexandria:when-let ((window (up-window (current-window))))
(switch-to-window window)))

Expand Down

0 comments on commit 5c0fc53

Please sign in to comment.