• Show only lines that contain a given search argument

    9
    0 Votes
    9 Posts
    694 Views
    Petra HandwergP

    @Alan-Kilborn said in Show only lines that contain a given search argument:

    And more of what you maybe didn’t know: If you right-click in the Search results window, the popup menu will have a Copy choice and a Copy Lines choice – Copy will get the “Line nn:” info with the line data, whereas Copy Lines will get ONLY the line data.

    Oh, great tip, thank you! I wasn’t aware that the result section has its own context menu.

    Good to know!

  • Run .bat from Notepad++

    10
    0 Votes
    10 Posts
    7k Views
    Alan KilbornA

    Can I use any of the menus in Notepad++ like Run … just to execute the .bat file. If you ask me to open Run command, then I can just go the back to the desktop to run the file which is more easy.

    If you create a Run menu item for this and then pick a keycombo that will execute this item, how much more easy can it get than to press the chosen keycombo when you want to run it? Certainly this is much easier than mousing over to the desktop and double-clicking something.

  • Notepad++ for Android

    Locked
    18
    0 Votes
    18 Posts
    124k Views
    PeterJonesP

    @Alan-Kilborn ,

    Indeed. This discussion played out all pertinent information years ago. I am locking it, as it seems to be attracting AI-generated recommendations for other software, or attracting posts by people who write essentially the same stuff.

  • Add option to "switch"

    3
    5 Votes
    3 Posts
    230 Views
    Alan KilbornA

    If Rotate to right and Rotate to left were made into commands in the N++ menu system (instead of just things on a popup menu for the view splitter control), then it would already be possible to make a macro that would execute one of them twice, thus providing the requested functionality.

    So maybe an equally good new feature request would be for such new menu command items.

  • Closing an unsaved tab and losing (valuable) data

    4
    2 Votes
    4 Posts
    385 Views
    Alan KilbornA

    @Alan-Kilborn said in Closing an unsaved tab and losing (valuable) data:

    What exactly IS the question?

    Apparently there was no question, just someone seeking an upvote so they could spam…
    Find something to do, losers, maybe go outside and enjoy nature…anything is better.

  • Setting right column limit

    5
    0 Votes
    5 Posts
    6k Views
    mildlymoronicM

    @PeterJones been manually making documents 128 characters wide for the longest time, thank you for explaining how notepad++ can do it for you

  • quick toggle multi-line tab on/off.

    5
    0 Votes
    5 Posts
    636 Views
    Alan KilbornA

    @Teasy said in quick toggle multi-line tab on/off.:

    it’s possible to toggle the tab bar with a single shortcut key

    Well, what you linked to isn’t exactly what @Jergen-Ross-Estaco wants.
    What you linked to will toggle between having the tabs visible in their current state (either single line or multi-line) and the tabs invisible.

    That’s different from wanting to toggle between single-line tabs and multi-line tabs.

  • 1 Votes
    2 Posts
    178 Views
    CoisesC

    For what it’s worth, here’s my best try (until I think of another wrinkle) as to how it should work:

    These points apply when the clipboard contains more than one line and the current selection is a rectangular or thin selection. Other cases are not affected.

    Pasting into a rectangular selections always treats each line of the clipboard as corresponding to a new line in the selection. It doesn’t matter whether the original was an ordinary stream selection, a multiple selection or a rectangular selection.

    The paste affects the lesser of the number of lines in the clipboard and the number of lines in the selection. If there are more lines in the clipboard than in the selection, they are ignored; if there are more lines in the selection than in the clipboard, the excess lines are left alone (not deleted, as they are now).

    If the rectangular selection is zero-width (or is a thin selection), each line of the clipboard is pasted as-is into the corresponding line of the selection.

    If the rectangular selection is not zero-width, the clipboard lines are blank-padded to match the length of the longest line in the clipboard, except that if the selection in a line ends at or after (i.e., in virtual space) the end of a line, the replacement text is not padded; and if the selection in a line ends with a tab character, the replacement text is not padded, and the final tab character is retained unless the replacement text also ends with a tab character.

    If the rectangular selection was zero-width, the same selection remains after the paste.

    If the rectangular selection was not zero-width, after the paste create a zero-width rectangular selection at the right boundary of the pasted content. (This will included retained tabs or virtual space as needed.)

    But even I think that’s too complicated, and bound to have unforeseen problems. I might implement it as an option in my plugin, but I think it’s unrealistic as a part of the main program.

  • Changing icons in Notepad++

    10
    3 Votes
    10 Posts
    8k Views
    PeterJonesP

    @ClearView said in Changing icons in Notepad++:

    This is the first time I looked for the Notepad plus plus discussions and was a bit unsure where posts are actively monitored - here or at Github

    It depends on what you mean by “monitored”: if you just mean, “someone will read and maybe respond”, then both are monitored; if you mean, “someone with the authority to decide whether to implement a change will read and track the request”, then it’s only at GitHub. Here, we are just a bunch of Notepad++ users, trying to help each other. There, it is the official feature-request and bug/issue tracker where the Developer gets to make decisions on what to implement/fix and what not to.

    In general: discussions and questions go here, in the Community Forum; official feature requests and bug reports must go in the GitHub issues tracker.

    (I put in the cross-links between the two, not to discourage you, but so that someone who was only reading here would know there was also an issue that might potentially be implemented over there; and so that if someone was reading it only on GitHub, they could come see the context of any discussion that came here.)

  • I have a problem.

    4
    1 Votes
    4 Posts
    1k Views
    G

    As for 15.05.2024 most recent update there is no sex.
    “The best things in life is free. NotePad++ is free so Notepad++ is the best.”
    Is what writen right now. I just surprised that it got changed.

  • Unable to install Compare Plugin

    12
    0 Votes
    12 Posts
    85k Views
    pnedevP

    @BlaBlaCai ,
    Yes, ComparePlus can fully replace the older Compare plugin (it is Compare plugin’s clone with lots of improvements and additions).
    Using Compare plugin is a matter of user preference (if you don’t need the new functionality and you like more the synchronization between the views in compare mode - Compare plugin inserts empty lines to synchronize the documents which disables the undo possibility and ComparePlus uses another method to synchronize documents that appear to the user a bit “jumpy” but the undo is kept functional).
    I am no longer supporting Compare plugin, IDK if it is still supported by other people.

  • HTML & User-defined keywords

    13
    0 Votes
    13 Posts
    997 Views
    DomOBUD

    @PeterJones
    @mpheath

    Thanks for the solution, which will be implemented in v8.6.7.

  • Move to Other View moves the wrong file

    21
    0 Votes
    21 Posts
    5k Views
    mkupperM

    I’m thinking that it’s a design choice that the primary/secondary names of the views is not displayed. You can move files from one view to the “other” view. You can rotate the views. If you rotate twice then you have swapped them. When you close the last file in view then it vanishes and the remaining view runs in full screen mode.

    The default is the primary view on the left and secondary view on the right. When both views have files and thus are visible you can:

    Switch the focus between the views using F8. Snap a view to “full” screen using the little arrows at the top and bottom of the view divider. This is a bit confusing as you can’t snap back to the divided 2-view mode but instead need to drag the divider. The confusion increases after snapping when you see the little arrows pointing towards the outside edge of Notepad++ but they don’t do anything when clicked. The F8 switch between views does “nothing.” The first time you use the F8 toggle it shoves the divider over a few pixels but not enough to make the other view usable. Right click the divider bar and rotate the views. You can rotate right (which means clockwise) or left (which means counter-clockwise). If you rotate in the same direction twice you have reversed the positions of the views. A confusing aspect is when you have a view snapped to be visible and then do rotate twice then it snaps to the other view.

    One more detail that can be confusing is the handling of empty new # tabs. If an empty new # tab is the only thing in a view and then you move either a normal file or another new # (empty not) then the empty new # tab vanishes, if, and only if, it also does not have an undo buffer. Normally you can Ctrl+W close an empty new # and it’s silently destroyed, even if it has an undo buffer and is thus dirty. Notepad++ has an exception where it won’t auto-destroy a dirty new # tab if it’s the only thing in a destination view.

    When you close or move-out all of the tabs in the primary view then the secondary view snaps to full screen without a divider bar. The OP that started this thread was confused when then then did a “move to other view” which made the primary view visible. The OP does not mention rotating and so I assume that means the primary view was restored to the left side of the divider. The OP either had forgotten the view that had been looking at was the secondary view or had made the assumption that if only one view is visible that it must be the primary. The OP was confused that the “other” view popped up on the left when they had expected it to be on the right.

    Thus, while the view system has its quirks I don’t see a compelling case to make any changes to it. It may help to know why @Tim-Jarrett, the OP, or others are using the view system.

  • Replace all words that start with the letter F

    2
  • Auto-Insert Unicode characters does not work

    4
    0 Votes
    4 Posts
    489 Views
  • Need help for CNC code.

    6
    0 Votes
    6 Posts
    622 Views
    Terry RT

    @Radomir-Stojanović said in Need help for CNC code.:

    I have a recurring issue with the beginning and end of my code. I always have to replace the generic text with ‘%’ and manually add an ‘E’ at the end of the program whenever I rewrite it. Is there a way to automate this process?
    Whenever I get a new program, I have to correct F400. F200. (or any Fxxx. not to have a period at the end of Fxxx). Can I automate that as well?

    This can easily be done with 3 regular expressions (regex), however the 3rd one won’t be completely sorted, I will speak to that later.

    So using the Replace function we have the first one which deals with the “generic text issue”.
    Search mode must be regular expression for all 3 regex I’m showing.
    Find What:(?-s)\A(\([^)]+\)(\R))+
    Replace With:N0 %${2}
    Click on Replace All

    Now we deal with all the Fxxx. sequences.
    Find What:(F\d+)\.
    Replace With:${1}
    Again click on Replace All

    Finally the end line for the code. The primary problem here is that regex cannot count. So there isn’t an easy way for the regex to add 1 to the last line and write a new line with the incremented number and and E. So what my regex does is to write it with xx as the line number. So you would still need to change the xx for the real line number. Although I have provided this regex, I think it would be of limited value as you would still need to edit that last line.
    Find What:(?-s)(\R).+\K\z
    Replace With:${1}Nxx E

    These 2 (or 3) regex can be combined into a macro which is essentially the keystrokes recorded as you type them and once saved (with a name) can be re-run whenever you wish.

    Terry

  • Feature Request: Toggle Search Results Pane

    3
    0 Votes
    3 Posts
    247 Views
    Michael VincentM

    @Barry-Seymour said in Feature Request: Toggle Search Results Pane:

    If the search results pane has focus

    Press ESC = hide the panel

    Not a “toggle”, but a single simple keypress.

    Cheers.

  • 0 Votes
    3 Posts
    1k Views
    mr blintM

    Thank you for those tips. They are very useful.

  • How to change the Vertical Cursor (caret) color

    3
    0 Votes
    3 Posts
    577 Views
    James RichtersJ

    @PeterJones Thank you very much for the quick response and for the instructions on how to get the multi-edit carets color! Indeed I have a custom theme, and I did not realize it would not be updated automatically, or even that it was the theme that created the options in the style configurator.

    I added the line you suggested, as well as some others I noticed I was missing and it’s working GREAT now!

  • Search & F3

    4
    1 Votes
    4 Posts
    2k Views
    Alan KilbornA

    Notepad++ 8.6.6 will allow F3 and Shift+F3 to work while the Find or Replace windows have input focus.
    See point #6 here: https://community.notepad-plus-plus.org/topic/25742/notepad-v8-6-6-release-candidate