Skip to content

Commit

Permalink
feat: add ctrl-j and ctrl-j mappings
Browse files Browse the repository at this point in the history
Adds another pair of mappings for moving the selected line
  • Loading branch information
natecraddock committed Mar 8, 2022
1 parent 329f55b commit 3fb459b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui.zig
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ fn ctrlToAction(key: u8) Action {
ctrl('c') => .close,
ctrl('w') => .delete_word,
ctrl('u') => .delete_line,
ctrl('p') => .line_up,
ctrl('n') => .line_down,
ctrl('p'), ctrl('k') => .line_up,
ctrl('n'), ctrl('j') => .line_down,
else => .pass,
};
}
Expand Down

0 comments on commit 3fb459b

Please sign in to comment.