• Add command icon?

    2
    0 Votes
    2 Posts
    194 Views
    Alan KilbornA

    @Dick-Douglas You can try the Customize Toolbar plugin, but some people have found it balky.

    Ctrl+Alt+s is the default shortcut keycombo – that’s a fairly fast option.
    Also, pressing Alt+f, releasing that and then pressing “a” is pretty fast.
    And SaveAs is present on the menu that appears when you right-click a tab.
    If all that is not to your liking, it is also possible to add it to the right-click context menu (that appears when you right-click on the text you are editing), although I hardly see the advantage to that over right-clicking the tab.

    A lot of options presented here, without having to resort to using a plugin to get a toolbar icon…

  • Updating through npp occurs very late

    12
    0 Votes
    12 Posts
    673 Views
  • Line wrap in the current version

    36
    0 Votes
    36 Posts
    6k Views
    Alan KilbornA

    @Alan-Kilborn said in Line wrap in the current version:

    So I came up with an In Selection Replace All action that will do the joining of lines and reduce any leading indents down to one space

    I didn’t explicitly say it, but hopefully it was understood that I would use that on groups of lines that start out indented at the same level, NOT on a whole big set of lines that has various sections indented to differing levels. That wouldn’t work (well, it would work but wouldn’t provide a desired outcome).

  • Find Begin/End setting

    21
    0 Votes
    21 Posts
    8k Views
    Javier RivasJ

    @guy038 thank you

  • Find option

    2
    0 Votes
    2 Posts
    278 Views
    guy038G

    Hello, @mathenay-lankou and All,

    Here is a regex solution :

    Open your list of strings. For instance : France Table Street England StreetView

    Open the Replace dialog ( Ctrl + H )

    SEARCH (?-is)^(Street)$|(.*(?1).*)|(.+)

    REPLACE $0(?1 100%)(?2 50%)(?3 0%)

    Tick the Wrap around, preferably

    Select the Regular expression search mode

    Click on the Replace All button

    => You should get the expected list, below :

    France 0% Table 0% Street 100% England 0% StreetView 50%

    If I’m on the right way, I’ll explain you the regex details, next time ;-))

    Best Regards,

    guy038

  • Find, Replace, and Count

    26
    0 Votes
    26 Posts
    1k Views
    Javier RivasJ

    @Ekopalypse good night, and thank you for all the help, it would be cool if it can just set it up automatically, I will provide when I get the chance, a timestamp we use

  • Apply sentence case while typing in markdown files

    10
    0 Votes
    10 Posts
    531 Views
    EkopalypseE

    There also seems to be free stuff here.
    https://languagetoolplus.com/http-api/#/default

  • A little help please

    6
    0 Votes
    6 Posts
    341 Views
    Alan KilbornA

    @astrosofista said in A little help please:

    To take advantage of the “copy marked text” option you need v7.9.1.

    …or later!

  • Restore right margin word wrap as in 7.8.5

    18
    2 Votes
    18 Posts
    2k Views
    dinkumoilD

    @Alan-Kilborn

    Yes, I have seen this effect, too. It seems like character spacing is slightly smaller when DirectWrite rendering is activated. I tested some minutes ago with Npp v7.9.1 and saw that with DirectWrite the Scintilla window showed 85 characters and with standard rendering it showed 83 characters. In pixels the difference was 17 px.

    Here are screen shots from my test, captured with a screen magnifier:

    ca999e07-59f7-4bbe-a633-d6f651f7dfea-grafik.png

    561a4be7-53af-4fd8-b457-1b661f0b2804-grafik.png

    Unfortunately this issue causes the Horizontal Ruler plugin to draw an inaccurate ruler - Scintilla’s edge line is drawn at the correct position (after column 80) but the plugin’s ruler shows column number 88 at this postion:

    bf029625-d4bf-46a9-ac17-0b7af81c3344-grafik.png

  • BUG: Replace "In selection" greyed out

    7
    1 Votes
    7 Posts
    4k Views
    mkupperM

    Here are some more comments that may help with understanding and debugging what’s happening.

    The updating of the ‘In selection’ area seems to happen well after the Find/replace dialog box is painted.

    In step one where the cursor is in a blank area of the file and no text is selected do Ctrl-H and watch the ‘In selection’ area. If it shows a black box and ‘In selection’ in black then press Esc and then Ctrl-H again while continuing to watch the ‘In selection’ area. Eventually you will see black box and ‘In selection’ in black pop up and then quickly change to gray. It looks like the words ‘In selection’ go gray first and then the box.

    Once you have a gray box and ‘In selection’ then press Esc to close the dialog box and select some text. The size of the selected area does not matter. It can be one character or the entire file. The method of selection does not seem to matter. You can use the mouse or keyboard. Now do Ctrl-H. You will see that ‘In selection’ and its box are grayed out. This is the random grayness people have been seeing. Press Esc to close the dialog box and Ctrl-H again while watching where ‘In selection’ will be painted. You should see the ‘In selection’ box being painted in black shortly after the dialog box has been opened. It’s possible both the box and the words ‘In selection’ were in gray but on my machine the repainting to black is too fast for me to confirm it’s all gray and then repainted. I am seeing the black box painted after the dialog box is up.

    Also, while I have been switching to the ‘Find’ tab and back to ‘Replace’ to fix an undesired grayed out ‘In selection’ I found that it does not matter which tab of the dialog box you use. You can switch to ‘Find in Files’, which does not have an ‘In selection’ field and back or you can switch to ‘Mark’ and back. When switching to ‘Find’ and ‘Mark’ you’ll see that ‘In selection’ is in black.

    This issue can also be reproduced using Ctrl-F for Find or Ctrl-M for Mark. The buggy behavior with the grayed ‘In selection’ is the same as with using Ctrl-H for Replace.

  • Fake site "not t epad-plus-plus.org"

    11
    5 Votes
    11 Posts
    1k Views
    Alan KilbornA

    @donho said in Fake site "not t epad-plus-plus.org":

    https://twitter.com/Notepad_plus/status/1347757857056423936

    At that twitter link @donho has 2 links where we can go to report the bad nottepad site. If a lot of people follow the links and do it, I’d think it would help.

  • disable automatic line wrap

    4
    0 Votes
    4 Posts
    3k Views
    PeterJonesP

    @When-you-read-the-comments-I-will-be-there

    … or clicking the Word Wrap toolbar icon: d0dbf978-400a-4dfb-aeb5-217810bc2f54-image.png

  • Copy and replace text question

    2
    0 Votes
    2 Posts
    168 Views
    Terry RT

    @Mike-Casey said in Copy and replace text question:

    Is there a way to save only the data after the the colon in my example?

    Possibly. If this is a complete line then you would use a regular expression to capture from start of line until the first colon found. Then all these characters would be deleted.

    To give us a better understanding can you present complete lines in your next post. After inserting them, select them and click on the </> button above the posting window. This encapsulates the text within a black box and prevents the posting engine from possibly altering the text as it tries to format the post.

    Terry

  • 0 Votes
    5 Posts
    289 Views
    R YR

    @PeterJones That is difficult to find a suitable font to show the special character.

  • 0 Votes
    5 Posts
    2k Views
    Terry RT

    @R-k said in Keep 1st,4th,8th,12th.....so on lines, multiple of 4 and delete rest.:

    When i run macros multiple files, i get empty files. It delets every thing. But works file on single text file.

    I actually came up with another idea. When used with the “Find In Files” function it should work.
    You would record the following in the macro.

    Ctrl + Home keys (takes you to the first line) Line down by using down arrow, cursor should be in the first position. Add a space and a carriage return/line feed Use the “Find In Files” function with
    Find What:(?-s)^(.+\R){3}(.+\R)
    Replace With:\2
    This selects groups of 4 lines and leaves just the last one. As the first line is now followed by a blank line it’s the blank line that is deleted, not the first line. As nothing has been mentioned with regards any remaining lines (less than 4) this step is yet to be determined. It could be anther regex for when 3 lines exist, or 2 lines, or even just 1 line, returning how many required and deleting the others.

    So for your next question, likely you get empty files as using ctrl-tab cycles through the open files within Notepad++. f you don’t close (and save) that tab you will find it cycles back to that tab again I think and performs the same operation again. Although I’d suggest it would leave just 1 line in each tab, yes?

    When recording a macro you select the function, then supply the regex. I think a better option would be to use the Find in Files function. This will work through files in 1 or more folders. The files don’t need to be opened in Notepad++. So you will need to create a new macro using that function, unless you are good at editing the macro, they are fiendish to do so.

    Terry

  • "Save All" option not working

    2
    0 Votes
    2 Posts
    213 Views
    Alan KilbornA

    @soghjfik

    Can you walk us thru a series of steps you are doing (step by step, exactly; don’t generalize, don’t leave stuff out) so that we can understand better, and perhaps tell you where things are going wrong?

  • shortcuts.xml <Action> tag

    6
    0 Votes
    6 Posts
    1k Views
    prahladmifourP

    Hello,@SusiKette
    Please try this code, To shortcuts.xml <Action> tag.

    In Windows 7|8|10 C:\Users%username%\AppData\Roaming\Notepad++\shortcuts.xml

    Code:

    <NotepadPlus> <InternalCommands /> <Macros> <Macro name="Trim Trailing and save" Ctrl="no" Alt="yes" Shift="yes" Key="83"> <Action type="2" message="0" wParam="42024" lParam="0" sParam="" /> <Action type="2" message="0" wParam="41006" lParam="0" sParam="" /> </Macro> <Macro name="abc" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="1" message="2170" wParam="0" lParam="0" sParam="a" /> <Action type="1" message="2170" wParam="0" lParam="0" sParam="b" /> <Action type="1" message="2170" wParam="0" lParam="0" sParam="c" /> </Macro> </Macros> <UserDefinedCommands>....

    I hope this code will be useful to you.
    Thank you.

  • Customizing Style Configuration

    2
    0 Votes
    2 Posts
    195 Views
    EkopalypseE

    The style configuration depends on the lexer you are using.
    So, to be able to give you some advice, may I ask you which lexer (aka language) you are using. HTML, Java, C# … ??

  • Yippee...

    1
    6 Votes
    1 Posts
    137 Views
    No one has replied
  • Issue printing files with Notepadd++

    4
    0 Votes
    4 Posts
    953 Views
    deus exD

    @Andreas-Neff

    As a workaround, try printing to a PDF-file instead. This way you have a WYSIWYG level of control, printing the generated PDF should give you the output result you are looking for.