Skip to content

Commit

Permalink
add some notes about how to use the extra menus in bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Jul 14, 2023
1 parent 5239b55 commit 71516ba
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions custom-menus/extra/commands.nu
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# can be used in the REPL by adding something like the following block to `$env.config.keybindings` in your `config.nu`
# {
# name: commands_menu
# modifier: control
# keycode: char_t
# mode: [emacs, vi_normal, vi_insert]
# event: { send: menu name: commands_menu }
# }

{
name: commands_menu
only_buffer_difference: false
Expand Down
9 changes: 9 additions & 0 deletions custom-menus/extra/commands_with_description.nu
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# can be used in the REPL by adding something like the following block to `$env.config.keybindings` in your `config.nu`
# {
# name: commands_with_description_menu
# modifier: control
# keycode: char_s
# mode: [emacs, vi_normal, vi_insert]
# event: { send: menu name: commands_with_description }
# }

{
name: commands_with_description_menu
only_buffer_difference: true
Expand Down
9 changes: 9 additions & 0 deletions custom-menus/extra/vars.nu
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# can be used in the REPL by adding something like the following block to `$env.config.keybindings` in your `config.nu`
# {
# name: vars_menu
# modifier: alt
# keycode: char_o
# mode: [emacs, vi_normal, vi_insert]
# event: { send: menu name: vars_menu }
# }

{
name: vars_menu
only_buffer_difference: true
Expand Down

0 comments on commit 71516ba

Please sign in to comment.