Skip to content

feat: quickfix#11

Merged
cachebag merged 2 commits into
cachebag:masterfrom
LOTaher:feat/quickfix
May 21, 2026
Merged

feat: quickfix#11
cachebag merged 2 commits into
cachebag:masterfrom
LOTaher:feat/quickfix

Conversation

@LOTaher
Copy link
Copy Markdown
Contributor

@LOTaher LOTaher commented May 21, 2026

Added support for adding active hunks in all buffers to quickfix. Currently, the quickfix window only displays the first added line in the hunk, but this can be customized as much as needed.

Added the following functions:

  • In render:
    • get_all_states(): this function gets all states within all active buffers
  • In navigate
    • _transform_hunks_to_quickfix: helper function which takes all the hunks within each state and populates a new table with necessary keys required for vim.fn.setqflist
    • add_hunks_to_quickfix: function that runs on <leader>q. Gets all the states, calls the transformer, populates the qf list and opens it.

Below is a recorded demo:

https://youtu.be/ceJi71hGQK0

@LOTaher LOTaher requested a review from cachebag as a code owner May 21, 2026 17:50
@cachebag cachebag added feature New functionality ux User experience or polish area:render Extmarks, virtual lines, highlights area:navigation Hunk movement, accept/reject flow labels May 21, 2026
Copy link
Copy Markdown
Owner

@cachebag cachebag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fucking awesome. LGTM

@cachebag cachebag merged commit 2ad846d into cachebag:master May 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:navigation Hunk movement, accept/reject flow area:render Extmarks, virtual lines, highlights feature New functionality ux User experience or polish

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants