diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-13 12:55:55 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-10-13 12:55:55 +0200 | 
| commit | 6e1d0b1f334b8e2b57309cd3ee0c4c0ee2511f75 (patch) | |
| tree | 53a2aa6bf42251b57813f6f0753d0839b8e2684e | |
| parent | 3edcea302050baacb1b4ca0c042f9c2680a46386 (diff) | |
checkpoint
| -rwxr-xr-x | bin/extra/notes_index | 2 | ||||
| -rw-r--r-- | config/essentials/zsh/.zshrc | 1 | ||||
| -rw-r--r-- | config/essentials/zsh/comp.zsh | 26 | ||||
| -rw-r--r-- | config/essentials/zsh/completions/_ws | 12 | ||||
| -rw-r--r-- | config/theme/gtk-2.0/gtkfilechooser.ini | 4 | 
5 files changed, 30 insertions, 15 deletions
diff --git a/bin/extra/notes_index b/bin/extra/notes_index index 9ccb3b2..da5c6cf 100755 --- a/bin/extra/notes_index +++ b/bin/extra/notes_index @@ -22,7 +22,7 @@ do  		-printf '%f ' \  		-exec grep '^# ' -m1 {} \; |              sed 's/\(.\+\.md\) # \(.\+\)/- [\2](\1)/' | -            sort -t '[' -k 2 >> index.md +            sort -t '[' -k 2 -n >> index.md      if [ "$(find . -mindepth 2 -maxdepth 2 -type f -name '*.md' | wc -l)" -gt 0 ]      then diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index fa7f6e6..139c145 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -17,6 +17,7 @@ zle -N edit-command-line  ### Source files  source_ex() { [ -f "$1" ] && . "$1"; } # source if exists +source_ex /etc/grc.zsh  source_ex /etc/profile.d/plan9.sh  source_ex $XDG_CONFIG_HOME/zsh/comp.zsh  source_ex $XDG_CONFIG_HOME/shell/functions.sh diff --git a/config/essentials/zsh/comp.zsh b/config/essentials/zsh/comp.zsh index 3d3f785..fffdc80 100644 --- a/config/essentials/zsh/comp.zsh +++ b/config/essentials/zsh/comp.zsh @@ -58,5 +58,31 @@ _dotnet_zsh_complete()    _values = "${(ps:\n:)completions}"  }  compdef _dotnet_zsh_complete dotnet + +_ws_complete() { +    local -a subcmds +    ws help 2>&1 | +        tail -n +3 | # skip usage and COMMANDS line +        sed -e 's/\s*\([^ ]\+\)\s*\(.\+\)/\1: \2/' | +        while read -r line; do +            subcmds+=("$line") +        done +    _describe 'ws commands' subcmds  +} +compdef _ws_complete ws + +_go_flag_complete() { +    local -a subcmds +    $name -h  2>&1 | tail -n +2 | +    while read -r l1; do +        read -r l2 +        l1="$(printf '%s' "$l1" | sed 's/^\s*\([^ ]\+\).*/\1/')" +        l2="$(printf '%s' "$l2" | sed 's/^\s*//')" +        subcmds+=("$l1: $l2") +    done +    _describe 'commands' subcmds +} +  compdef _gnu_generic cpp sqlplus  compdef _gnu_generic air +compdef _go_flag_complete wbr diff --git a/config/essentials/zsh/completions/_ws b/config/essentials/zsh/completions/_ws deleted file mode 100644 index f25d26b..0000000 --- a/config/essentials/zsh/completions/_ws +++ /dev/null @@ -1,12 +0,0 @@ -#compdef ws -local -a subcmds -subcmds=('add: Adds a task to the end of the stack' -	'done: Mark a task as done' -	'undone: Mask a task as undone' -	'pc: Procrastinate task a task to end of stack' -	'del: Delete an active task' -	'ls: List active tasks' -	'list: List all tasks' -	'reset: Recreate the tasks.gob file' -	'help: Show this help') -_describe 'ws commands' subcmds  diff --git a/config/theme/gtk-2.0/gtkfilechooser.ini b/config/theme/gtk-2.0/gtkfilechooser.ini index d742688..fb85212 100644 --- a/config/theme/gtk-2.0/gtkfilechooser.ini +++ b/config/theme/gtk-2.0/gtkfilechooser.ini @@ -2,8 +2,8 @@  LocationMode=path-bar  ShowHidden=false  ShowSizeColumn=true -GeometryX=158 -GeometryY=201 +GeometryX=542 +GeometryY=191  GeometryWidth=836  GeometryHeight=697  SortColumn=name  | 
