dotfiles/.config/fish/functions/_autopair_tab.fish

8 lines
279 B
Fish
Raw Normal View History

2023-07-10 06:53:13 -04:00
function _autopair_tab
commandline --paging-mode && down-or-search && return
string match --quiet --regex -- '\$[^\s]*"$' (commandline --current-token) &&
commandline --function end-of-line --function backward-delete-char
commandline --function complete
end