dotfiles/dot_config/fish/functions/_autopair_tab.fish
2024-04-14 18:41:15 -07:00

7 lines
279 B
Fish

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