feat: add an action to add the current file to the qflist upon leaving Canola #281
Labels
No labels
autorelease: pending
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream/digest
upstream/pr
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/canola.nvim#281
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Prerequisites
Problem
Currently, the only quickfix integration offered by Canola is
send_to_qflist- but this sends all the files on the screen to the qflist. Sometimes, it's useful to only add one or two files to the qflist. The workaround for this is a custom search pattern, but I think that's rather silly. I'm not typing/foo.txt\|bar.txt\|baz.txtevery time!Proposed solution
An action could be added that adds the currently hovered entry to the qflist upon existing Canola. I only created this issue because I actually already have an action that does this, and thought upstreaming it would be nice:
And the ftplugin contains this bit of code:
Before upstreaming, this needs some polish. A few things off the top of my head
Adding 'canola.txt' to qflistwould be nice. Maybe there's a way to display the qflist in a buffer without switching to it, so we can see the changes in real time?Anyways, I don't have the energy to PR a polished version of this at the moment. I thought I'd create the issue to establish the demand, and see if you're interested in getting this over the finish line.
Alternatives considered
This doesn't have to be upstreamed - I'm happy with my custom action. I just thought it would be a nice thing to offer for everyone.
see #284. the open qfl on leave is too-specific to your workflow to warrant that.
you can now use
add_to_qflfor adding singular entriesReasonable - I'll take what I can get. Thanks!
thanks for using :DDD