jujutsu file annotations for neovim (like blame)

Commits on master

fix: scrollbind/cursorbind when window is visible
Signed-off-by: Ron Shavit <me@ronshavit.com>
master
Ron Shavit committed
feat: showing loading state when annotate takes time
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
feat: support git blame when in a git (not jj) repo
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
refactor: use `vim.iter` where appropriate
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
feat: attach to externally created/restored annotate buffers
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
feat(window): `[[` and `]]` to jump between changes
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: scrollbind/cursorbind only when window is focused
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
refactor: use built-in functions and simplify where possible
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix(cache): prune empty revision tables in `del_win`
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix(jj): use more unique separator in `template`
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit committed
refactor(window): simplify hl_cache lookup
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
refactor(window): rename remaining instances to Window
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix(util): resolve repo info from relative paths
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix(window): handle missing highlight cache entry
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix(jj): trimempty stdout
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix(apply_multiplier): copy instead of mutating
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
refactor: rename `AnnotateWindow` to `Window`
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: check if windows are valid before using them
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: wrong close_all count
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: call WinClosed autocmd once
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: delete win from cache on _set_file
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: per AnnotateWindow augroup
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: close window with :q instead of nvim_win_close
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: WinClosed args.match instead of get_current_win
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: prevent errors for stale wins/bufs
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
feat: update annotate window when file window's buffer changes
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: handle absolute path and multiple repos
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit committed
rename original to file
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
revision_uri accepts a jjannotate.Revision
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
update screenshots
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
feat: adjust color palette based on vim.o.background
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ricardo_T8 committed
feat: highlight current lines with bold
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
feat: follow revisions (re-annotate)
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
update demo.png
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
always annotate current buf
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
rename annotate field to result
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: syncbind issues
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
feat: <cr> to show revision under cursor
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
support multiple annotate windows
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
rename jjannotate.ParseResult to jjannotate.AnnotateResult
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
refactor View into simpler state object
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
update jjannotate view when original file changes
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: set sidescrolloff to 0
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
fix: render empty lines instead of filling in spaces
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
readme: add autocmd customization example
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
win: set nolist
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
update README.md and add image
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
make line highlighting configurable
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
highlight lines related to cursor's change id
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
refactor View to use self.buf and self.win
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
refactor windowing logic into a View class
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
make hl_cache global so it persists between calls
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
better hashing algorithm for color generation
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
add toggle and close apis
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
use ranges instead of line span
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
dedupe repeating lines
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed