1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-29 16:25:35 +01:00

52859: use _date_formats for fc and complete -m/-M for vared

This commit is contained in:
Oliver Kiddle 2024-04-01 23:27:09 +02:00
parent c7ae370160
commit a967c4a435
3 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2024-04-01 Oliver Kiddle <opk@zsh.org>
* 52859: Completion/Zsh/Command/_fc, Completion/Zsh/Command/_vared:
use _date_formats for fc and complete -m/-M for vared
2024-03-25 Oliver Kiddle <opk@zsh.org>
* 52798: Completion/Unix/Command/_ssh,

View file

@ -40,7 +40,7 @@ fc_hist=(
'(-A -R -W -e -d -E -i -t -a -p -P)-f[mm/dd/yyyy format time-stamps]'
'(-A -R -W -e -d -f -i -t -a -p -P)-E[dd.mm.yyyy format time-stamps]'
'(-A -R -W -e -d -f -E -t -a -p -P)-i[yyyy-mm-dd format time-stamps]'
'(-A -R -W -e -d -f -E -i -a -p -P)-t[print time-stamps in specified format]:date format'
'(-A -R -W -e -d -f -E -i -a -p -P)-t[print time-stamps in specified format]: : _date_formats zsh'
'(-A -R -W -e -a -p -P)-D[print elapsed times]'
'(-A -R -W -I -e -d -f -i -l -m -n -r -D -E -t -P)-a[with -p, automatically pop history on function return]'

View file

@ -10,5 +10,7 @@ _arguments -s -A "-*" \
'-f+[specify finish widget]:widget:_widgets' \
'-h[allow access to history]' \
'-e[exit on EOF (^D)]' \
'-M+[specify keymap to link to main]:keymap:compadd -a keymaps' \
'-m+[specify keymap to link to vicmd]:keymap:compadd -a keymaps' \
'1:parameter spec:_vars'