You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a list includes both filename and test matches for a substitution command, both values are modified. Modifying a filename produces an error "does not support adding or reordering quickfix items".
I am trying to substitute matching terms, excluding filename matches. I can do this by modifying my search (e.g. "foo_bar$"), but I wonder if ignoring filenames in the editor makes sense as a default behavior.
What is the significance of this feature?
nice to have
Additional details
No response
The text was updated successfully, but these errors were encountered:
I wish I could, but we need the filenames. When you save changes in the quickfix, I parse the buffer and for each line I try to match it to one of the quickfix entries. This is done by trying to match the filename + lnum.
The only thing I could think of that might work would be to change how the buffer is rendered and make the filename + lnum virtual text instead of real text. Would require rewriting a good bit of this plugin though, and I'm not 100% sure it would work perfectly with the editor.
@mike-ap I did the refactor I was talking about in #32. It actually worked better than I expected! I'm going to daily drive this for a while and then merge it in once I think it's stable enough. If you get a chance please try it out and let me know if you encounter any bugs or usability issues.
Did you check existing requests?
Describe the feature
First, thanks for another great plugin!
When a list includes both filename and test matches for a substitution command, both values are modified. Modifying a filename produces an error "does not support adding or reordering quickfix items".
list:
app/controllers/foo_bar.rb ┃ 54┃@foo_bar = "baz"
substituter:
%s/foo_bar/foo_baz
Provide background
I am trying to substitute matching terms, excluding filename matches. I can do this by modifying my search (e.g. "foo_bar$"), but I wonder if ignoring filenames in the editor makes sense as a default behavior.
What is the significance of this feature?
nice to have
Additional details
No response
The text was updated successfully, but these errors were encountered: