dotfiles/private_dot_config/private_fish/functions/_pisces_skip.fish
2023-04-30 01:21:51 +03:00

13 lines
292 B
Fish

function _pisces_skip -a text -d "Skips given text if it's already under the cursor"
set length (string length -- $text)
if test (_pisces_lookup 0 $length) = "$text"
_pisces_jump $length
return 0
else
commandline -i -- $text
return 1
end
end