Commit graph

959 commits

Author SHA1 Message Date
Lewis Russell
9291836665 feat(nav): add target option
Allows `nav_hunk` to target staged, unstaged or all hunks.
2024-06-19 12:15:06 +01:00
Lewis Russell
7516bac563 fix(nav): misc bugs
- When constructing a list of hunks to consider for nav, make sure to
  use copies.

- Adjust the loop in `Hunks.filter_common` to run an additional
  iteration in order to finish processing.
2024-06-19 11:02:45 +01:00
Lewis Russell
3e9a98bc05 chore: update response action 2024-06-19 10:26:23 +01:00
Lewis Russell
ef54387324 chore: update issue template 2024-06-19 09:40:07 +01:00
Lewis Russell
def49e48c6 fix(util): ignore endofline when running blame 2024-06-18 17:15:20 +01:00
Lewis Russell
25b6ee4be5 feat(blame): add Gitsigns blame
Similar to fugitive blame.

Use `<CR>` on a commit line to open a menu with additional actions.

Release-As: 1.0.0
2024-06-18 17:08:59 +01:00
Lewis Russell
ceaa21f625 refactor: improve log messages output 2024-06-18 14:26:29 +01:00
Lewis Russell
f846c50724 fix(watcher): fix debounce
Fixes #1046
2024-06-18 10:34:56 +01:00
Lewis Russell
47c8e3e571 feat: tweak how commit buffers are processed
Previously when attaching to a commit buffer (via gitsigns or fugitive),
gitsigns would set the revision to diff against to the parent so the
signs of that commit would be displayed.

Now that we have staged signs, they are now used for that purpose, and
so the base is no longer set to the parent.
2024-06-13 15:03:27 +01:00
Lewis Russell
b8cf5e8efa feat(signs): able staged signs by default 2024-06-13 12:01:16 +01:00
github-actions[bot]
0b04035bb7 chore(main): release 0.9.0 2024-06-13 11:56:19 +01:00
Lewis Russell
de18f6b749 fix(watcher): throttle watcher handler
Throttle (in addition to debounce) in case the debounce delay is not
enough and to prevent too many handlers from being launched (and
interleaved).
2024-06-12 16:42:16 +01:00
Lewis Russell
4a143f13e1 chore: add timestamp to debug messages 2024-06-07 13:24:11 +01:00
Lewis Russell
54b9df401b fix(attach): fix worktree attaching
Fixes #1020
2024-06-07 13:16:59 +01:00
dundargoc
805c17f150 chore: fix typo 2024-06-07 09:43:35 +01:00
Lewis Russell
4b53134ce5 fix(watcher): workaround weird annoying libuv bug
Fixes #1027
2024-06-07 07:56:34 +01:00
Lewis Russell
379a5a915a
chore: update bug report template 2024-06-05 14:17:17 +01:00
Lewis Russell
e31d2149d9 fix: add workaround for Lazy issue 2024-06-05 10:17:10 +01:00
Lewis Russell
75dc649106 fix(attach): detach on when the buffer name changes
Fixes #1021
2024-05-29 10:00:48 +01:00
Lewis Russell
af3fdad8dd fix: handle untracked files for custom bases
Fixes #1022
2024-05-28 10:02:32 +01:00
Lewis Russell
c96e3cf476 fix: scheduling in cwd watching 2024-05-28 09:41:58 +01:00
Lewis Russell
720061aa15 feat(setup)!: make setup() synchronous
Previously `setup()` was asynchronous in order to run a system command
to check the git version.

As support for v0.8 is dropped, this is no longer required.
2024-05-28 09:35:46 +01:00
Lewis Russell
cdfcd9d39d refactor: remove vimfn signs backend
Closes #941
2024-05-23 09:39:58 +01:00
Lewis Russell
d9d94e055a feat!: drop support for nvim v0.8 2024-05-23 09:39:58 +01:00
Josh Pencheon
20f305d63b fix(blame): avoid right-aligned blame overlapping buftext
When the blame text's length exceeds the available space to
the right of the buffer's text, the intention is to switch
to the 'eol' extmark placement. However, there were a number
of issues that could trip up the time at which it swtiches
to 'eol':

- if the buffer line or virtual text contain multibyte characters,
  they weren't counted properly in terms of screen cells that they'd
  consume
- incorrect window identifer was passed when calculating the
  available space, meaning that signs/folds/numbers columns
  weren't properly accounted for
2024-05-23 08:35:41 +01:00
Lewis Russell
a28bb1db50 fix(update): always get object contents from object names
Fixes #847
2024-05-22 16:29:01 +01:00
Lewis Russell
d6a3bf0b36 ci: add testing for Nvim v0.10.0 2024-05-22 16:26:32 +01:00
Yi Ming
805610a939 fix: wrong api name in stable 2024-05-06 15:57:25 +01:00
Yi Ming
bc933d24a6 fix: use latest api in 0.10 2024-05-04 12:02:45 +01:00
Lewis Russell
9cafac31a0 fix(attach): allow attaching inside .git/
Fixes #923
2024-05-01 10:50:33 +01:00
Lewis Russell
f65d1d8201 fix(util): close file after reading 2024-05-01 10:38:52 +01:00
Lewis Russell
790355f00a build: fix release please 2024-04-30 16:37:10 +01:00
github-actions[bot]
76927d14d3 chore(main): release 0.8.1 2024-04-30 16:34:47 +01:00
Lewis Russell
7aa9a56712 fix(reset): handle 'endofline' when resetting hunks 2024-04-30 16:31:45 +01:00
Yufan You
035da036e6 fix(yadm): correct ls-files check
`not` has higher precedence than `~=`,
so it was actually `(not #git_command(..)) ~= 0`.

To fix it, we can simplify the double negation as just a `==`.
2024-04-20 14:43:56 +01:00
Lewis Russell
7e38f07cab fix(blame): check win is valid after running blame 2024-04-18 10:13:44 +01:00
Lewis Russell
4475b3eed0 ci: fix luarocks version 2024-04-18 09:57:26 +01:00
Lewis Russell
43799bc369 ci: move luarocks upload to release workflow 2024-04-18 09:53:22 +01:00
Lewis Russell
9f8a1ed860 ci: tag release branch on release 2024-04-18 09:49:56 +01:00
Lewis Russell
e788ef7c6d ci: update lua action 2024-04-18 09:40:01 +01:00
github-actions[bot]
52f8da33cc chore(main): release 0.8.0 2024-04-17 17:19:33 +01:00
Lewis Russell
031abb0654 fix: release-please branch 2024-04-17 17:18:01 +01:00
Lewis Russell
f0447b734e ci: release-please 2024-04-17 17:16:07 +01:00
Lewis Russell
36181d6484 ci: adjust release-please config 2024-04-17 14:24:01 +01:00
Lewis Russell
42fda8e935 ci: add release-please config 2024-04-17 14:18:22 +01:00
Lewis Russell
2215c64cf6 ci: add release-please workflow 2024-04-17 14:08:40 +01:00
Lewis Russell
36d961d3d1 fix: #989 2024-04-17 13:46:03 +01:00
dundargoc
cd6c831a3a build: use downloaded lua-language-server
It currently assumes lua-language-server is in PATH, which may not be
true.
2024-04-17 11:04:25 +01:00
Lewis Russell
099784ef4d test: add luals checking 2024-04-17 10:26:47 +01:00
Lewis Russell
05226b4d41 fix: #986 2024-04-17 09:08:29 +01:00