mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-10-05 17:48:11 +03:00
fix: adjust for nushell commandline
syntax deprecation (#840)
Fixes for changes introduced by https://github.com/nushell/nushell/pull/12658
This commit is contained in:
parent
8a77d51e93
commit
66c76a9dbd
@ -5,7 +5,7 @@
|
||||
mode: [emacs, vi_normal, vi_insert]
|
||||
event: {
|
||||
send: executehostcommand
|
||||
cmd: "commandline -a (
|
||||
cmd: "commandline edit --append (
|
||||
ls **/*
|
||||
| where type == dir
|
||||
| get name
|
||||
|
@ -6,8 +6,8 @@
|
||||
event: {
|
||||
send: executehostcommand
|
||||
cmd: '
|
||||
commandline --replace "use "
|
||||
commandline --insert (
|
||||
commandline edit --replace "use "
|
||||
commandline edit --insert (
|
||||
$env.NU_LIB_DIRS
|
||||
| each {|dir|
|
||||
ls ($dir | path join "**" "*.nu")
|
||||
|
@ -55,12 +55,12 @@ def "nu-complete list themes" [] {
|
||||
|
||||
# preview completion. For this to work, it should be ran from the nu_scripts folder
|
||||
def preview [theme: string@"nu-complete list themes"] {
|
||||
commandline --insert $"use themes/themes/($theme).nu; $env.config.color_config = (char lparen)($theme)(char rparen); preview_theme | table -e"
|
||||
commandline edit --insert $"use themes/themes/($theme).nu; $env.config.color_config = (char lparen)($theme)(char rparen); preview_theme | table -e"
|
||||
}
|
||||
|
||||
# preview completion. For this to work, it should be ran from the nu_scripts folder
|
||||
def preview_small [theme: string@"nu-complete list themes"] {
|
||||
commandline --insert $"use themes/themes/($theme).nu; $env.config.color_config = (char lparen)($theme)(char rparen); preview_theme_small | table -e"
|
||||
commandline edit --insert $"use themes/themes/($theme).nu; $env.config.color_config = (char lparen)($theme)(char rparen); preview_theme_small | table -e"
|
||||
}
|
||||
|
||||
# Preview the current nushell theme, small mode
|
||||
|
Loading…
Reference in New Issue
Block a user