dotfiles/dot_config/fish/functions/_autopair_tab.fish

8 lines
279 B
Fish
Raw Normal View History

2024-04-14 18:41:15 -07: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