Commit Graph

34 Commits

Author SHA1 Message Date
Lewis Russell
f41b934e70 fix: fileformat autocmd bug
Fixes #1123
2025-01-20 12:35:50 +00:00
Lewis Russell
76d88f3b58 fix: revision buffer name parsing for index buffers
Some checks are pending
CI / commit_lint (push) Waiting to run
CI / test (nightly) (push) Waiting to run
CI / test (v0.10.0) (push) Waiting to run
CI / test (v0.9.5) (push) Waiting to run
CI / lint (push) Waiting to run
CI / doc (push) Waiting to run
release-please / release-please (push) Waiting to run
release-please / luarocks-upload (push) Blocked by required conditions
release-please / update-doc (push) Blocked by required conditions
2025-01-14 17:11:25 +00:00
Lewis Russell
68114837e8 fix: improve support for worktrees in bare repos
Some checks failed
CI / commit_lint (push) Has been cancelled
CI / test (nightly) (push) Has been cancelled
CI / test (v0.10.0) (push) Has been cancelled
CI / test (v0.9.5) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / doc (push) Has been cancelled
release-please / release-please (push) Has been cancelled
release-please / luarocks-upload (push) Has been cancelled
release-please / update-doc (push) Has been cancelled
Fixes #1160
2025-01-09 11:16:46 +00:00
Lewis Russell
2b6c069cb4 refactor: update async.lua 2025-01-09 09:15:26 +00:00
Lewis Russell
ac5aba6dce feat: add type annotations for modules 2024-11-14 17:25:54 +00:00
Lewis Russell
f074844b60 feat: add submodule support for gitsigns urls
Fixes #1095
2024-07-25 14:41:16 +01:00
Lewis Russell
82bc6225e9 refactor: organize imports 2024-07-03 12:08:06 +01:00
Lewis Russell
8df63f2ddc fix(blame): update current_line_blame when attaching 2024-06-21 15:21:24 +01:00
Ben Elan
89a4dce7c9
fix(attach): resolve error viewing fugitive trees (#1058) 2024-06-20 08:54:06 +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
54b9df401b fix(attach): fix worktree attaching
Fixes #1020
2024-06-07 13:16:59 +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
9cafac31a0 fix(attach): allow attaching inside .git/
Fixes #923
2024-05-01 10:50:33 +01:00
Lewis Russell
05226b4d41 fix: #986 2024-04-17 09:08:29 +01:00
Lewis Russell
c02516144a
refacto: misc refactoring (#983) 2024-04-16 17:27:19 +01:00
Lewis Russell
81369ed540 fix: attach to fugitive and gitsigns buffers
Resolved #593
2024-04-05 16:14:48 +01:00
Lewis Russell
4e90cf984c feat(actions): add callback to async actions
- simplify async code

Fixes: #906, #766
2024-04-03 11:30:19 +01:00
Lewis Russell
5fc573f2d2 feat: interleave attaches on startup 2023-11-23 10:54:06 +00:00
Lewis Russell
287f937015 refactor: rename variable 2023-10-05 10:41:30 +01:00
Lewis Russell
73a95e68f1 fix: refresh on set bomb/eol 2023-10-05 10:37:34 +01:00
Lewis Russell
317c98d64c feat(diff): allow to diff against the working version
The `base` can now be set to `FILE` to diff against the working version.

Resolves #164
2023-10-02 12:14:20 +01:00
Lewis Russell
bdeba1cec3 perf(blame): better cache invalidation
The blame cache is now maintained in the CacheEntry object
and invalidated incrementally on buffer updates.

In addition git-blame is bypassed if the cursor line is within a hunk.
2023-09-24 17:01:12 +01:00
Lewis Russell
b018a2b139 perf(blame): run blame for entire file instead of per line
Previously current_line_blame would run a git-blame process per line
(via the `-L` flag) in an attempt to be more efficient. However after
some investigation it seems that running git-blame for the entire file
rarely exceeds 2x the time it takes to run for a single line, even for
large files.

This change alters current_line_blame to run git-blame for the entire
file after each buffer edit and caches that in memory. This makes the
first git-blame after an edit ~2x slower, but makes any cursor movements
after that instant.

A follow-up to this would be for current_line_blame to track buffer
updates to avoid the cache needing to be invalidated on every edit.
2023-09-22 12:24:42 +01:00
Lewis Russell
3885901f24 fix(attach): check cache status between async calls 2023-09-07 10:30:14 +01:00
Lewis Russell
bf6b0bbc52 fix: typing 2023-09-06 11:24:39 +01:00
Lewis Russell
5a2b120584 fix: check valid buffer when scheduling 2023-08-17 11:40:27 +01:00
Lewis Russell
55f8fc7b13 fix: typing 2023-08-15 13:28:36 +01:00
Lewis Russell
fd4d953614 docs: make gen_help.lua emmy aware 2023-07-10 13:52:01 +01:00
Lewis Russell
0daf763ed7 chore: run through stylua 2023-07-10 11:17:40 +01:00
Lewis Russell
76a013dc3d refactor: move gitdir watcher to separate module 2023-07-10 11:14:47 +01:00
Lewis Russell
f1378831b1 feat(watcher): move from libuv poll to file event watcher 2023-06-19 11:22:33 +01:00
Lewis Russell
92654646f8 refactor: post teal-pocolypse cleanup
- assume vim.iconv
2023-06-14 12:02:18 +01:00
Lewis Russell
4d63d996b0 refactor: remove teal 2023-06-13 15:32:14 +01:00
Lewis Russell
f965e3bad0 perf: reduce startup time 2023-03-01 16:34:52 +00:00