Verified Commit f15ac703 authored by Hermann Mayer's avatar Hermann Mayer
Browse files

BashRC: Improved the mpx command and aliases. VimRC: Corrected some broken command completions.

parent f9cb796d
Loading
Loading
Loading
Loading

dotrc/.fonts/.uuid

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
67cf578d-a0ba-4bec-91c7-7e856bc0e9af
 No newline at end of file
+5 −1
Original line number Diff line number Diff line
@@ -428,8 +428,12 @@ if 1 == VimRCBundlesDevel
      \ ['CANARY', 'PRODUCTION'],
      \ ['blank?', 'present?'],
      \ ['any?', 'all?', 'none?', 'one?'],
      \ ['local', 'canary', 'production'],
      \ ['local', 'development', 'test', 'canary', 'production'],
      \ ['path', 'file'],
      \ ['return', 'next'],
      \ ['continue', 'break'],
      \ ['are', 'is'],
      \ ['include', 'exclude'],
      \]

  autocmd VimEnter * :IndentGuidesEnable
+2 −2
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ function! s:CleanJade()
  %s/- else/else/g
  %s/- each/each/g
endfunction
command! -complete=shellcmd CleanJade call s:CleanJade()
command! -complete=shellcmd -nargs=? CleanJade call s:CleanJade()

command! Visual      normal! v
command! VisualLine  normal! V
@@ -119,7 +119,7 @@ function s:OpenTerminal()
  silent !clear
  silent execute "!i3-sensible-terminal -cd " . getcwd() . " &"
endfunction
command! -complete=shellcmd OpenTerminal call s:OpenTerminal()
command! -complete=shellcmd -nargs=? OpenTerminal call s:OpenTerminal()

" Augmenting Ag command using fzf#vim#with_preview function
"   * fzf#vim#with_preview([[options], preview window, [toggle keys...]])
+39 −1
Original line number Diff line number Diff line
@@ -208,6 +208,28 @@ function nobranch()
    fi
}

function name()
{
    if [ -z "$2" ]; then
        mpx -s -X -d -n "${1}"
    else
        NAME="${1}"
        shift
        mpx -s -X -n "${NAME}" ${@}
    fi
}

function noname()
{
    if [ -z "$2" ]; then
        mpx -s -X -d -N "${1}"
    else
        NAME="${1}"
        shift
        mpx -s -X -N "${NAME}" ${@}
    fi
}

function dirty()
{
    if [ -z "$1" ]; then
@@ -250,6 +272,20 @@ function nobranch-edit()
    nobranch "${BRANCH}" gvim -f ${@}
}

function name-edit()
{
    NAME="${1}"
    shift
    name "${NAME}" gvim -f ${@}
}

function noname-edit()
{
    NAME="${1}"
    shift
    noname "${NAME}" gvim -f ${@}
}

function mergepdfs()
{
    local OUTPUT="merged.pdf"
@@ -258,7 +294,9 @@ function mergepdfs()
        OUTPUT="${1}"
    fi

    pdftk *.pdf cat output "${OUTPUT}"
    pdftk \
        $(find . -maxdepth 1 -type f -name '*.pdf' | sort -n) \
        cat output "${OUTPUT}"
}

function cdtmp()
Loading