-
Notifications
You must be signed in to change notification settings - Fork 28
v2 Migration Guide
rbong edited this page Jan 27, 2022
·
12 revisions
This guide describes how to switch from Flog v1 to v2.
For some changes, but not all, you will receive deprecation warnings when using v1-only interfaces.
Warning: Flog v2 is currently in alpha.
- Flog now draws the graph branches itself
- Flog is now faster
- Branch and commit highlighting is now more accurate
- Vim 8 is required for the alpha
- Neovim will be supported in the full release
-
LuaJIT 2.1 must be installed on your system
- Flog will check for the
luajitexecutable - You can specify the path to the executable yourself with
g:flog_lua_bin - If you have compiled Vim with LuaJIT 2.1, you can use
let g:flog_use_internal_lua = 1
- Flog will check for the
- Switch to the
v2branch, ex:Plug 'rbong/vim-flog', { 'branch': 'v2' }
-
)/(are now separate bindings from<C-N>/<C-P>. They jump to commits without opening them -
]r/[rno longer open the commit by default -
cotnow defaults tocol, to avoid confusion withgit checkout -t
-
Flogjumpis no longer present for optimization reasons- For commits in the current window, use
//? - For commits not in the current window, use
Flogsetargs -rev=...
- For commits in the current window, use
-
g:flog_default_arguments/g:flog_permanent_default_argumentsare nowg:flog_default_opts/g:flog_permanent_default_opts- Options no longer have the
no_prefix, ex:{ 'no_merges': v:true }is now{ 'merges': v:false }
- Options no longer have the
-
g:flog_enable_statusis now required to setb:flog_status_summaryfor statuslines -
g:flog_build_log_command_fnis no longer supported since Flog builds the log graph itself -
g:flog_use_ansi_escis no longer supported since branch highlighting is more accurate
-
flog#run_command()is nowflog#exec() -
flog#run_tmp_command()is nowflog#exec_tmp() -
flog#run_raw_command()is nowflog#exec_raw() - The internal Flog API has been restructured
- Most functions will not give deprecation warnings since v2 is a complete refactor
- Please see ftplugin/floggraph.vim for updated examples
-
FlogCmdBufferSetupis nowFlogSideWinSetup -
FlogTmpCmdBufferSetupis nowFlogTmpSideWinSetup -
FlogNonTmpCmdBufferSetupis nowFlogNonTmpSideWinSetup
Flog v2 has many new features and fixes.
A full list of new features and fixes will be included when v2 is released.
See :help flog for all current features.