Skip to content

scroll through the list of Nushell commands using `ctrl+alt+j/k` shortcuts

License

Notifications You must be signed in to change notification settings

nushell-prophet/nu-cmd-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nu-cmd-stack (cmd-stack)

Quick start

> git clone https://github.com/nushell-prophet/nu-cmd-stack; cd nu-cmd-stack
> use cmd-stack

Demo

nu-cmd-stack_demo4.720p.mp4

(high res youtube)

Examples

# Initialize `cmd-stack` with the list of 3 commands.
# After executing it will suggest you to add two shortcuts. Execute the suggestion.
> ['print "this"' 'print "that"' "# check ls\nls"] | cmd-stack init

# Scroll through the commands using `ctrl + alt + j/k`
# Here we fill `cmd-stack` with the commands from `demo.nu`.
# We divide commands here by empty lines
> open demo.nu | split row "\n\n" | skip | cmd-stack init
# Here we put previous session commands into `cmd-stack`
> let prev_session_id = history -l | last 100 | get session_id | uniq | last 2 | first
> history -l | where session_id == $prev_session_id | get command | cmd-stack init

About

scroll through the list of Nushell commands using `ctrl+alt+j/k` shortcuts

Resources

License

Stars

Watchers

Forks

Releases

No releases published