diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-02-09 22:19:34 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-02-09 22:19:34 +0000 |
| commit | 979197085617a84992b38c7fd02098965e2479d5 (patch) | |
| tree | 4136a1d4f39254e72379d1204b62ce6b1e54d144 /assets | |
| parent | Work towards a functional build (diff) | |
| download | sl0ppij-979197085617a84992b38c7fd02098965e2479d5.tar.gz sl0ppij-979197085617a84992b38c7fd02098965e2479d5.tar.xz sl0ppij-979197085617a84992b38c7fd02098965e2479d5.zip | |
Well, it turns out that I spent 4 hours on something impossible...
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/completions/_zellij | 45 | ||||
| -rw-r--r-- | assets/completions/zellij.bash | 69 | ||||
| -rw-r--r-- | assets/completions/zellij.fish | 8 | ||||
| -rw-r--r-- | assets/demo.gif | bin | 0 -> 3549260 bytes | |||
| -rw-r--r-- | assets/layouts/default.yaml | 8 | ||||
| -rw-r--r-- | assets/layouts/strider.yaml | 14 | ||||
| -rw-r--r-- | assets/logo.png | bin | 0 -> 218189 bytes | |||
| -rw-r--r-- | assets/plugins/status-bar.wasm | bin | 0 -> 509798 bytes | |||
| -rw-r--r-- | assets/plugins/strider.wasm | bin | 0 -> 528778 bytes |
9 files changed, 144 insertions, 0 deletions
diff --git a/assets/completions/_zellij b/assets/completions/_zellij new file mode 100644 index 00000000..d2f67e56 --- /dev/null +++ b/assets/completions/_zellij @@ -0,0 +1,45 @@ +#compdef zellij + +autoload -U is-at-least + +_zellij() { + typeset -A opt_args + typeset -a _arguments_options + local ret=1 + + if is-at-least 5.2; then + _arguments_options=(-s -S -C) + else + _arguments_options=(-s -C) + fi + + local context curcontext="$curcontext" state line + _arguments "${_arguments_options[@]}" \ +'-s+[Send "split (direction h == horizontal / v == vertical)" to active mosaic session]' \ +'--split=[Send "split (direction h == horizontal / v == vertical)" to active mosaic session]' \ +'-o+[Send "open file in new pane" to active mosaic session]' \ +'--open-file=[Send "open file in new pane" to active mosaic session]' \ +'--max-panes=[Maximum panes on screen, caution: opening more panes will close old ones]' \ +'-l+[Path to a layout yaml file]' \ +'--layout=[Path to a layout yaml file]' \ +'-m[Send "move focused pane" to active mosaic session]' \ +'--move-focus[Send "move focused pane" to active mosaic session]' \ +'-d[]' \ +'--debug[]' \ +'-h[Prints help information]' \ +'--help[Prints help information]' \ +'-V[Prints version information]' \ +'--version[Prints version information]' \ +&& ret=0 + +} + +(( $+functions[_zellij_commands] )) || +_zellij_commands() { + local commands; commands=( + + ) + _describe -t commands 'zellij commands' commands "$@" +} + +_zellij "$@"
\ No newline at end of file diff --git a/assets/completions/zellij.bash b/assets/completions/zellij.bash new file mode 100644 index 00000000..a921e7c9 --- /dev/null +++ b/assets/completions/zellij.bash @@ -0,0 +1,69 @@ +_zellij() { + local i cur prev opts cmds + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${i}" in + zellij) + cmd="zellij" + ;; + + *) + ;; + esac + done + + case "${cmd}" in + zellij) + opts=" -m -d -h -V -s -o -l --move-focus --debug --help --version --split --open-file --max-panes --layout " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --split) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --open-file) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -o) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-panes) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --layout) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -l) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + + esac +} + +complete -F _zellij -o bashdefault -o default zellij diff --git a/assets/completions/zellij.fish b/assets/completions/zellij.fish new file mode 100644 index 00000000..ee5c9ccb --- /dev/null +++ b/assets/completions/zellij.fish @@ -0,0 +1,8 @@ +complete -c zellij -n "__fish_use_subcommand" -s s -l split -d 'Send "split (direction h == horizontal / v == vertical)" to active mosaic session' +complete -c zellij -n "__fish_use_subcommand" -s o -l open-file -d 'Send "open file in new pane" to active mosaic session' +complete -c zellij -n "__fish_use_subcommand" -l max-panes -d 'Maximum panes on screen, caution: opening more panes will close old ones' +complete -c zellij -n "__fish_use_subcommand" -s l -l layout -d 'Path to a layout yaml file' +complete -c zellij -n "__fish_use_subcommand" -s m -l move-focus -d 'Send "move focused pane" to active mosaic session' +complete -c zellij -n "__fish_use_subcommand" -s d -l debug +complete -c zellij -n "__fish_use_subcommand" -s h -l help -d 'Prints help information' +complete -c zellij -n "__fish_use_subcommand" -s V -l version -d 'Prints version information' diff --git a/assets/demo.gif b/assets/demo.gif Binary files differnew file mode 100644 index 00000000..9258751e --- /dev/null +++ b/assets/demo.gif diff --git a/assets/layouts/default.yaml b/assets/layouts/default.yaml new file mode 100644 index 00000000..a3987e50 --- /dev/null +++ b/assets/layouts/default.yaml @@ -0,0 +1,8 @@ +--- +direction: Horizontal +parts: + - direction: Vertical + - direction: Vertical + split_size: + Fixed: 1 + plugin: status-bar diff --git a/assets/layouts/strider.yaml b/assets/layouts/strider.yaml new file mode 100644 index 00000000..e33f516a --- /dev/null +++ b/assets/layouts/strider.yaml @@ -0,0 +1,14 @@ +--- +direction: Horizontal +parts: + - direction: Vertical + parts: + - direction: Horizontal + split_size: + Percent: 20 + plugin: strider + - direction: Horizontal + - direction: Vertical + split_size: + Fixed: 1 + plugin: status-bar
\ No newline at end of file diff --git a/assets/logo.png b/assets/logo.png Binary files differnew file mode 100644 index 00000000..a36dce06 --- /dev/null +++ b/assets/logo.png diff --git a/assets/plugins/status-bar.wasm b/assets/plugins/status-bar.wasm Binary files differnew file mode 100644 index 00000000..646ad3b5 --- /dev/null +++ b/assets/plugins/status-bar.wasm diff --git a/assets/plugins/strider.wasm b/assets/plugins/strider.wasm Binary files differnew file mode 100644 index 00000000..77b07b01 --- /dev/null +++ b/assets/plugins/strider.wasm |
