Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nushell-prophet/nu-cmd-stack

scroll through the list of Nushell commands using `ctrl+alt+j/k` shortcuts
https://github.com/nushell-prophet/nu-cmd-stack

Last synced: 1 day ago
JSON representation

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

Awesome Lists containing this project

README

        

# nu-cmd-stack (cmd-stack)

## Quick start

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

## Demo

https://github.com/user-attachments/assets/862f2eb7-0635-429a-99c4-d3f5ec8e8a7d

[(high res youtube)](https://youtu.be/wBMm1bFlbaU)

## Examples

```nushell no-run
# 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`
```

```nushell no-run
# 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
```

```nushell no-run
# 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
```