Something went wrong. Try again.
jujutsu file annotations for neovim (like blame)
Something went wrong. Try again.
Commits on master
Ron Shavit 1d815041 fix: scrollbind/cursorbind when window is visible master
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix: scrollbind/cursorbind when window is visible master
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit e5837aa0 feat: showing loading state when annotate takes time
Signed-off-by: Ron Shavit <me@ronshavit.com>
feat: showing loading state when annotate takes time
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 669151f6 feat: support git blame when in a git (not jj) repo
Signed-off-by: Ron Shavit <me@ronshavit.com>
feat: support git blame when in a git (not jj) repo
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit baf69780 refactor: use `vim.iter` where appropriate
Signed-off-by: Ron Shavit <me@ronshavit.com>
refactor: use `vim.iter` where appropriate
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 2746d8e9 feat: attach to externally created/restored annotate buffers
Signed-off-by: Ron Shavit <me@ronshavit.com>
feat: attach to externally created/restored annotate buffers
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 7889ee93 feat(window): `[[` and `]]` to jump between changes
Signed-off-by: Ron Shavit <me@ronshavit.com>
feat(window): `[[` and `]]` to jump between changes
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 6264cdf0 fix: scrollbind/cursorbind only when window is focused
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix: scrollbind/cursorbind only when window is focused
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 8c381049 refactor: use built-in functions and simplify where possible
Signed-off-by: Ron Shavit <me@ronshavit.com>
refactor: use built-in functions and simplify where possible
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 2578f81d fix(cache): prune empty revision tables in `del_win`
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix(cache): prune empty revision tables in `del_win`
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit e93f550c fix(jj): use more unique separator in `template`
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix(jj): use more unique separator in `template`
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit d4ee40a1 refactor(jj): use jobstart in `show` instead of manual escaping
Signed-off-by: Ron Shavit <me@ronshavit.com>
refactor(jj): use jobstart in `show` instead of manual escaping
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit be4f8ada refactor(window): simplify hl_cache lookup
Signed-off-by: Ron Shavit <me@ronshavit.com>
refactor(window): simplify hl_cache lookup
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 3a4a1bf3 refactor(window): rename remaining instances to Window
Signed-off-by: Ron Shavit <me@ronshavit.com>
refactor(window): rename remaining instances to Window
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 2c3b0832 fix(util): resolve repo info from relative paths
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix(util): resolve repo info from relative paths
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit c7b47596 fix(window): handle missing highlight cache entry
Signed-off-by: Ron Shavit <me@ronshavit.com>
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
Ron Shavit a49dbfde fix(apply_multiplier): copy instead of mutating
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix(apply_multiplier): copy instead of mutating
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 25f59a59 refactor: rename `AnnotateWindow` to `Window`
Signed-off-by: Ron Shavit <me@ronshavit.com>
refactor: rename `AnnotateWindow` to `Window`
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 5589a60d fix: check if windows are valid before using them
Signed-off-by: Ron Shavit <me@ronshavit.com>
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
Ron Shavit 1b23b00b fix: delete win from cache on _set_file
Signed-off-by: Ron Shavit <me@ronshavit.com>
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
Ron Shavit 778fd2a4 fix: close window with :q instead of nvim_win_close
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix: close window with :q instead of nvim_win_close
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 6ab6ee84 fix: WinClosed args.match instead of get_current_win
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix: WinClosed args.match instead of get_current_win
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit e127563c fix: prevent errors for stale wins/bufs
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix: prevent errors for stale wins/bufs
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 41d5bcd7 feat: update annotate window when file window's buffer changes
Signed-off-by: Ron Shavit <me@ronshavit.com>
feat: update annotate window when file window's buffer changes
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit fd7f4ddb fix: handle absolute path and multiple repos
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix: handle absolute path and multiple repos
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 3b7087c8 fix: open annotate window when there are existing annotate buffers
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix: open annotate window when there are existing annotate buffers
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
rename original to file
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit f3dca27a revision_uri accepts a jjannotate.Revision
Signed-off-by: Ron Shavit <me@ronshavit.com>
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
Ricardo_T8 d8ce74f6 feat: adjust color palette based on vim.o.background
Signed-off-by: Ron Shavit <me@ronshavit.com>
feat: adjust color palette based on vim.o.background
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ricardo_T8 committed
Ron Shavit 83079f89 feat: highlight current lines with bold
Signed-off-by: Ron Shavit <me@ronshavit.com>
feat: highlight current lines with bold
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 78693b87 feat: follow revisions (re-annotate)
Signed-off-by: Ron Shavit <me@ronshavit.com>
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
Ron Shavit fe4ff057 fix: cursor position resetting to first line when opening an annotation
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix: cursor position resetting to first line when opening an annotation
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit f6380cfe feat: <cr> to show revision under cursor
Signed-off-by: Ron Shavit <me@ronshavit.com>
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
Ron Shavit 05b40728 rename jjannotate.ParseResult to jjannotate.AnnotateResult
Signed-off-by: Ron Shavit <me@ronshavit.com>
rename jjannotate.ParseResult to jjannotate.AnnotateResult
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit f66be6c1 refactor View into simpler state object
Signed-off-by: Ron Shavit <me@ronshavit.com>
refactor View into simpler state object
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit a6dee5ed update jjannotate view when original file changes
Signed-off-by: Ron Shavit <me@ronshavit.com>
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
Ron Shavit 3c6b48e7 fix: render empty lines instead of filling in spaces
Signed-off-by: Ron Shavit <me@ronshavit.com>
fix: render empty lines instead of filling in spaces
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 0605b6cc readme: add autocmd customization example
Signed-off-by: Ron Shavit <me@ronshavit.com>
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
Ron Shavit 2738d4bd make line highlighting configurable
Signed-off-by: Ron Shavit <me@ronshavit.com>
make line highlighting configurable
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 564b141a highlight lines related to cursor's change id
Signed-off-by: Ron Shavit <me@ronshavit.com>
highlight lines related to cursor's change id
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 78705f37 refactor View to use self.buf and self.win
Signed-off-by: Ron Shavit <me@ronshavit.com>
refactor View to use self.buf and self.win
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 46957baf refactor windowing logic into a View class
Signed-off-by: Ron Shavit <me@ronshavit.com>
refactor windowing logic into a View class
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 0705d7ed make hl_cache global so it persists between calls
Signed-off-by: Ron Shavit <me@ronshavit.com>
make hl_cache global so it persists between calls
Signed-off-by: Ron Shavit <me@ronshavit.com>
Ron Shavit committed
Ron Shavit 70c2aef2 better hashing algorithm for color generation
Signed-off-by: Ron Shavit <me@ronshavit.com>
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