@@ -10,22 +10,29 @@ def "nu-complete zellij" [] {
1010 { value : " convert-config" , description : " " },
1111 { value : " convert-layout" , description : " " },
1212 { value : " convert-theme" , description : " " },
13+ { value : " delete-all-sessions" , description : " Delete all sessions [aliases: da]" },
14+ { value : " delete-session" , description : " Delete a specific session [aliases: d]" },
1315 { value : " edit" , description : " Edit file with default $EDITOR / $VISUAL [aliases: e]" },
1416 { value : " help" , description : " Print this message or the help of the given subcommand(s)" },
1517 { value : " kill-all-sessions" , description : " Kill all sessions [aliases: ka]" },
1618 { value : " kill-session" , description : " Kill the specific session [aliases: k]" },
1719 { value : " list-sessions" , description : " List active sessions [aliases: ls]" },
1820 { value : " options" , description : " Change behaviour of zellij" },
21+ { value : " pipe" , description : " Send data to one or more plugins, launch them if they are not running" },
22+ { value : " plugin" , description : " Load a plugin [aliases: p]" },
1923 { value : " run" , description : " Run a command in a new pane [aliases: r]" },
2024 { value : " setup" , description : " Setup zellij and check its configuration" },
2125
2226 # Aliases
2327 { value : " ac" , description : " Alias for `action`" },
2428 { value : " a" , description : " Alias for `attach`" },
2529 { value : " e" , description : " Alias for `edit`" },
30+ { value : " da" , description : " Alias for `delete-all-sessions`" },
31+ { value : " d" , description : " Alias for `delete-session`" },
2632 { value : " ka" , description : " Alias for `kill-all-sessions`" },
2733 { value : " k" , description : " Alias for `kill-session`" },
2834 { value : " ls" , description : " Alias for `list-sessions`" },
35+ { value : " p" , description : " Alias for `plugin`" },
2936 { value : " r" , description : " Alias for `run`" },
3037 ]
3138}
@@ -178,6 +185,19 @@ export extern "zellij help" [
178185 command ?: string @" nu-complete subcommands"
179186]
180187
188+ # Delete all sessions
189+ export extern "zellij delete-all-sessions" [
190+ -- force(-f) # Kill the sessions if they're running before deleting them
191+ -- help(-h) # Print help information
192+ -- yes(-y) # Automatic yes to prompts
193+ ]
194+
195+ # Delete the specific session
196+ export extern "zellij delete-session" [
197+ -- force(-f) # Kill the sessions if they're running before deleting them
198+ -- help(-h) # Print help information
199+ ]
200+
181201# Kill all sessions
182202export extern "zellij kill-all-sessions" [
183203 -- help(-h) # Print help information
@@ -231,6 +251,29 @@ export extern "zellij options" [
231251 -- theme-dir : path # <THEME_DIR> Set the theme_dir, defaults to subdirectory of config dir
232252]
233253
254+ # Send data to one or more plugins, launch them if they are not running
255+ export extern "zellij pipe" [
256+ -- name(-n) : string # <NAME> The name of the pipe
257+ -- args(-a) : string # <ARGS> The args of the pipe
258+ -- plugin(-p) : string # <PLUGIN> The plugin url (eg. file:/tmp/my-plugin.wasm) to direct this pipe to, if not specified, will be sent to all plugins, if specified and is not running, the plugin will be launched
259+ -- plugin-configuration(-c) : string # <PLUGIN_CONFIGURATION> The plugin configuration (note: the same plugin with different configuration is considered a different plugin for the purposes of determining the pipe destination)
260+ -- help(-h) # Print help information
261+ ]
262+
263+ # Load a plugin
264+ export extern "zellij plugin" [
265+ -- configuration(-c) : string # <CONFIGURATION> Plugin configuration
266+ -- floating(-f) # Open the new pane in floating mode
267+ -- help(-h) # Print help information
268+ -- height : any # <HEIGHT> The height if the pane is floating as a bare integer (eg. 1) or percent (eg. 10%)
269+ -- in-place(-i) # Open the new pane in place of the current pane, temporarily suspending it
270+ -- skip-plugin-cache(-s) # Skip the memory and HD cache and force recompile of the plugin (good for development)
271+ -- width : any # <WIDTH> The width if the pane is floating as a bare integer (eg. 1) or percent (eg. 10%)
272+ -- x(-x) : any # <X> The x coordinates if the pane is floating as a bare integer (eg. 1) or percent (eg. 10%)
273+ -- y(-y) : any # <Y> The y coordinates if the pane is floating as a bare integer (eg. 1) or percent (eg. 10%)
274+ ]
275+
276+
234277# Run a command in a new pane
235278export extern "zellij run" [
236279 command : string # Command to run
0 commit comments