mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
parent
db76a15ba5
commit
d4a9ce614b
1 changed files with 5 additions and 5 deletions
|
@ -107,7 +107,7 @@ function __fish.task.need_to_complete.attr_value
|
|||
or return 1
|
||||
# only start completion when there's a colon in attr_name
|
||||
set -l cmd (commandline -ct)
|
||||
string match -q "*:*" "$cmd[-1]"
|
||||
string match -q -- "*:*" "$cmd[-1]"
|
||||
end
|
||||
|
||||
function __fish.task.need_to_complete.command
|
||||
|
@ -251,13 +251,13 @@ function __fish.task.list.dates
|
|||
echo -e (string replace --all -r "^|\n" "\n$user_input_numeric" $__fish_task_static_reldates | string collect)
|
||||
# special cases for 1st, 2nd and 3rd, and 4-0th
|
||||
set -l suffix 'th' '4th, 5th, etc.'
|
||||
if string match -q "*1" $user_input_numeric
|
||||
if string match -q -- "*1" $user_input_numeric
|
||||
set suffix 'st' 'first'
|
||||
else if string match -q "*2" $user_input_numeric
|
||||
else if string match -q -- "*2" $user_input_numeric
|
||||
set suffix 'nd' 'second'
|
||||
else if string match -q "*3" $user_input_numeric
|
||||
else if string match -q -- "*3" $user_input_numeric
|
||||
set suffix 'rd' 'third'
|
||||
end
|
||||
end
|
||||
echo -e $user_input_numeric"$suffix[1]\t$suffix[2]"
|
||||
else
|
||||
echo -e $__fish_task_static_dates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue