~crg/config

8aeeabb2a9e03b111f5be09776319baf90b924e1 — Charles Gould 11 months ago 3a1e5bb
fish: remove expand_dots binding
2 files changed, 0 insertions(+), 15 deletions(-)

M fish/config.fish
D fish/functions/expand_dots.fish
M fish/config.fish => fish/config.fish +0 -3
@@ 49,9 49,6 @@ if status --is-interactive
    # By default, Ctrl+L clears the screen
    # Add binding Ctrl+Alt+L to clear screen AND scrollback buffer
    bind \e\f 'clear; commandline -f repaint'

    # Expand '...' to '../..'
    bind . expand_dots
end

if not set -q __universals_initialized

D fish/functions/expand_dots.fish => fish/functions/expand_dots.fish +0 -12
@@ 1,12 0,0 @@
# https://github.com/nickeb96/puffer-fish
function expand_dots -d 'Expand ... to ../..'
    set -l item (string split ' ' (commandline --cut-at-cursor))[-1]
    switch $item
        case './*'
            commandline --insert '.'
        case '*..'
            commandline --insert '/..'
        case '*'
            commandline --insert '.'
    end
end