Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Flog, a New Git Branch extension

Flog, a New Git Branch extension

Gave this talk at the Vimberlin March 2019 meetup https://vimberlin.de/march-2019-meetup/

Matthias Günther

March 29, 2019
Tweet

More Decks by Matthias Günther

Other Decks in Technology

Transcript

  1. vim-flog
    Matthias Günther

    View Slide

  2. Features
    find and checkout Branches
    (with autocompletion)
    explore history

    View Slide

  3. Custom mappings
    normally ZZ to close windows
    I prefer pressing q:
    augroup flog
    au FileType git map q :bw
    au FileType floggraph map q :bw
    augroup END

    View Slide

  4. Configs
    change display format of git
    messages:
    let g:flog_default_date_format = 'format:%Y-%m-%d %H:%M:%S'

    View Slide

  5. Get all commits
    concerning a file
    :Flog -path=archive.md

    View Slide

  6. Comparison to gitv
    only necessary features
    loads fast
    has API to be able to easy
    add new features

    View Slide

  7. References:
    https://github.com/rbong/
    vim-flog
    https://medium.com/@r.l.bongers/announcing-flog-a-
    new-git-branch-viewer-for-vim-from-the-former-
    maintainer-of-gitv-e9db68977810

    View Slide