New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selecting error lines #899
Comments
I'm not quite sure how often it could be useful (nor exactly what you mean by "so that subsequent change operations can be restricted to them"). Performing the same action on all error lines would mean that they all have the same error, which is not very likely if there are more than one. This said, I'm not against such a possibility either, and it wouldn't be intrusive. Could be done by a plugin, too, BTW. But as Neil would said, "I won't be working on this myself". |
Thanks for your thoughts. I was thinking perhaps an option on the change
dialog that restricted changes to lines with errors so that one knew one
was not dis-improving lines of code that had no errors when fixing compile
bugs thus providing a faster way of interacting with the linting capability.
More generally, I think my example illustrates that it might be useful to
have a capability where one could first select multiple disconnected
ranges of lines in a number of steps using various techniques and then
perform a series of operations on the selected lines. The lines in the
current selection might be indicated by hilighting the line number of the
selected lines. Find and change could then be optionally limited to these
lines. Such techniques would be of particular interest to users with big
files as the change everything in the document option of the change dialog
is to dangerous to use without first limiting its scope.
|
Geany does not support multiple selections. Adding it would require changing everything inthe Geany ecosystem, including all plugins to accept multiple selections. Since there are much more compelling use-cases for multiple selections, and they have not offered enough benefit for "somebody" to do the large amount of work needed, then this is unlikely to do so. Adding it in a plugin as @b4n said restricts what it would affect. |
@elextr while it's true we don't have special handling for multiple selections, it's only a missing feature and creating multiple selection won't break anything in Geany per se. The "only" problem is that they wouldn't be take into account in most code paths, so would have some somehow unexpected behavior. |
I urge that there be two types of selection. (1) Normal Selection - the normal one that continues to function exactly is. (2) Lines selection. I.e. for each edit line there is a bit that says Of course one could go much further and have several bits for each line The advantage to users with large files is that they could designate Thank you for your esteemed consideration of this feature which I think This minimizes disruption while allowing uses with large files to Thanks, Phil Philip R Brenan On Mon, Feb 8, 2016 at 10:41 PM, elextr notifications@github.com wrote:
|
@philiprbrenan Multiple separate selections are already supported by Scintilla, we don't really have to add anything here. And those selections are just line normal selections, but multiple: they can span any arbitrary range, it being a line or not. All we would have to add is means to create such selections, and logic in the various functions to handle them when they are created. |
Yes, thats why it would require changing lots. Even if a particular code path didn't break, the fact that it only worked on the first selection would be obvious enough to require fixing. Of course its a mere matter of programming :) |
Do you mean from error markers? IIUC scintilla supports the standard CTRL-swipe if its turned on. |
Please consider providing the ability to select all lines flagged with errors
so that subsequent change operations can be restricted to them.
I posted this on Scintilla and got:
Scintilla provides basic operations that can be combined by the application or
user into user commands.
This looks to me as if it would be best implemented as a user macro command or
language mode rather than as a Scintilla API or editor command. Its possible
that additions to Scintilla would make implementing such a macro easier but
that should be driven by the experience of people trying to implement this at a
higher level.
Thanks!
The text was updated successfully, but these errors were encountered: