diff --git a/crates/nu-utils/src/sample_config/default_config.nu b/crates/nu-utils/src/sample_config/default_config.nu index 8435b300b3..e04a48d8b3 100644 --- a/crates/nu-utils/src/sample_config/default_config.nu +++ b/crates/nu-utils/src/sample_config/default_config.nu @@ -825,23 +825,36 @@ $env.config = { mode: emacs event: { edit: capitalizechar } } - # The *_system keybindings require terminal support to pass these - # keybindings through to nushell and nushell compiled with the - # `system-clipboard` feature + # The following bindings with `*system` events require that Nushell has + # been compiled with the `system-clipboard` feature. + # This should be the case for Windows, macOS, and most Linux distributions + # Not available for example on Android (termux) + # If you want to use the system clipboard for visual selection or to + # paste directly, uncomment the respective lines and replace the version + # using the internal clipboard. { - name: copy_selection_system + name: copy_selection modifier: control_shift keycode: char_c mode: emacs - event: { edit: copyselectionsystem } + event: { edit: copyselection } + # event: { edit: copyselectionsystem } } { - name: cut_selection_system + name: cut_selection modifier: control_shift keycode: char_x mode: emacs - event: { edit: cutselectionsystem } + event: { edit: cutselection } + # event: { edit: cutselectionsystem } } + # { + # name: paste_system + # modifier: control_shift + # keycode: char_v + # mode: emacs + # event: { edit: pastesystem } + # } { name: select_all modifier: control_shift @@ -849,12 +862,5 @@ $env.config = { mode: emacs event: { edit: selectall } } - { - name: paste_system - modifier: control_shift - keycode: char_v - mode: emacs - event: { edit: pastesystem } - } ] }