Giter Site home page Giter Site logo

Comments (6)

alankilborn avatar alankilborn commented on July 23, 2024 1

Modify the default behavior of commands to affect the entire block of selected text.

I don't think this can be taken seriously as a "blanket" thing, i.e., "...behavior of ALL commands should be...".

If you want to specifically list the commands whose current actions bother you, that would probably be better.

from notepad-plus-plus.

alankilborn avatar alankilborn commented on July 23, 2024 1

@Bartolomeus-649

Another thing I just noticed: Your issue title isn't likely to get developers interested in your issue, as it appears to be sarcasm/criticism. You might want to rename it (titles are editable by their creator) to something more indicative of what you issue actually is.

from notepad-plus-plus.

Bartolomeus-649 avatar Bartolomeus-649 commented on July 23, 2024

which commands that modify or apply an effect to text would you not want to be applied to only the selected text instead of to just the current line or the entire text?

Isn't it likely that if a user bothered to select some text before issuing a command, then that user want to apply that command to that selection?

Many commands use the current selection and only modify or apply an effect to the text within it.
I argue that the same reason those commands only modify or apply an effect to the selected text should be used for all other commands which ignore the selection.

An example of a command which ignore the current selection is Collapse/Uncollapse current level on the View-menu.

from notepad-plus-plus.

alankilborn avatar alankilborn commented on July 23, 2024

@Bartolomeus-649

Now that I ponder it further... IIRC, someone, and I think it was @ArkadiuszMichalski , spent a good deal of effort recently (in the past year or so) working on what you're asking for. I believe some of his efforts were accepted into Notepad++, but definitely not in a blanket way; it turned out it is more of a difficult "problem" to solve than simply saying "Modify the default behavior of commands to affect the entire block of selected text. "

from notepad-plus-plus.

Bartolomeus-649 avatar Bartolomeus-649 commented on July 23, 2024

I can't see why it should not be rather straight forward. Either the effect is for the current line, in which case you could just do a foreach(row in selection) ApplyCommand(row).
Or it applies to the entire text, in which case the selected text could be put into a temporary new document, and then the command could be applied to that entire text there, then the old text is deleted, and the modified text inserted in its place.

Sure, there will be some cases where it is tricky, but don't let those block the entire thing, do the easy first.

from notepad-plus-plus.

alankilborn avatar alankilborn commented on July 23, 2024

I can't see why it should not be rather straight forward

Users often make this mistake in thinking.


As I said, someone has previously spent a lot of time/effort on it, with only partial success.
If you'd like to try your hand at it, due to what you think is its straightforward nature, feel free -- Notepad++ accepts user contributed code (but there's no guarantee of acceptance).

from notepad-plus-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.