• 0 Votes
    5 Posts
    332 Views

    Hi @mark-marques, @ekopalypse, @alan-kilborn and All,

    To control which plugin(s) is/are loaded on Notepad++ start :

    Close any opened N++ instance

    Reach your active plugins location

    For any plugin , NOT desired, simply change the name of its folder ( for instance, add a simple character at beginning or end of each name ! )

    Restart Notepad++

    For instance, my own 7.8.5 plugins folder contains the following subfolders :

    BetterMultiSelection ComparePlus Config doc DSpellCheck ElasticTabstops mimeTools NppConverter NppExport NppPluginDemo

    If I want to open Notepad++, without, let’s say, the DSpellCheck and the Npp PluginDemo plugins, simply rename these 2 subfolders, like below :

    BetterMultiSelection ComparePlus Config doc -DSpellCheck ElasticTabstops mimeTools NppConverter NppExport -NppPluginDemo

    OR

    BetterMultiSelection ComparePlus Config doc DSpellCheck_0 ElasticTabstops mimeTools NppConverter NppExport NppPluginDemo_0

    Best Regards,

    guy038

  • Compile and run didn't show cmd

    Mar 21, 2020, 10:30 AM
    0 Votes
    4 Posts
    271 Views

    @Darisky

    Sorry, but I don’t understand your last post.
    Did you try my suggestion about using hello.cpp instead of hello.

  • BUG: syntax highlighting not working

    Jan 31, 2019, 2:01 PM
    0 Votes
    11 Posts
    10k Views

    I had the same issue for PHP files.

    The solution was to include the opening tag <?.

    The file I was using was just a scratch bit of PHP thus no tag was included. The same is true for HTML files. The opening tag, <html would be required.

    Languages like Javascript, SQL, etc., that don’t require tags work as expected.

  • Removing Spaces after | sysmbol

    Mar 2, 2020, 4:25 PM
    0 Votes
    6 Posts
    514 Views

    Sorry people, here is the working link to the animated gif (couldn’t edit it in time):

    https://giphy.com/gifs/eKh1aKIxZOEUB2308F

    @astrosofista said in Removing Spaces after | sysmbol:

    Hi:

    OK, just for the non-regex oriented people in the list, let me suggest you an alternative approach to delete those unwanted blank spaces.

    This little thingy requires the BetterMultiSelection plugin to get the job done, as follows:

    giphy

    In case you couldn’t read the instructions while the gif is playing:

    Insert a multi-selection ( Click, Shift + Alt + Down Arrow ) Press the End key Then, Control + Left Arrow Finally, press Back-Space.
  • 3 Votes
    17 Posts
    3k Views

    @Stan-Dm said in feature request - word wrap per tab:

    +1 for this feature request, I have to flip my word wrap settings back and forth all the time, it’s getting annoying!

    Might be a good idea. But +1-ing it here won’t affect the status of the feature request at https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5232 .

    if it’s annoying for you, both this forum and the issues page show a PythonScript workaround that you can use while you are waiting to see if the feature is ever accepted or implemented. But given there’s a simple PythonScript workaround, there’s a good chance it never will be. (The developer philosophy for this project is that if it can easily be or has been implemented using a plugin, it’s not likely to be implemented as a native feature.)

  • 0 Votes
    2 Posts
    647 Views

    @John-BPC

    The Escape key, maybe?

  • 0 Votes
    10 Posts
    900 Views

    Alright, thank you!

  • 1 Votes
    3 Posts
    2k Views

    @Stan-Dm

    Why do you need it?
    It would annoy most people, because a single click is what you do when you want to reposition the caret in a text editor. If doing so took one off to browser-land it could get annoying fast.

  • 0 Votes
    5 Posts
    877 Views

    @Alan-Kilborn
    I’ve found a workaround anyway (I put npp in ‘C:\Users\<user-name>\Util\npp’ in my case) :

    Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\Shell\MuiCache] "C:\\Users\\<user-name>\\Util\\npp\\notepad++.exe.FriendlyAppName"="Notepad++"
  • 2 Votes
    7 Posts
    2k Views

    @maxitrol said in Macro Sidebar:

    This is great idea.

    Hmm. :-)

    Windows tool that would allow me to enter text snippets which I can later simply copy paste

    Well, Notepad++ offers some text snippet plugins…
    At the Windows level, maybe what you want is a clipboard utility? There’s a good one called Ditto out there.

  • Una sola linea

    Mar 21, 2020, 3:05 PM
    0 Votes
    3 Posts
    2k Views

    @Ignasi-Viñas

    gpx? Isn’t that guitar pro tab file format? If so, it is binary, isn’t it?

  • 0 Votes
    9 Posts
    4k Views

    My bad. I should have stated the original search like this, I suppose:

    Find what box: (?-s)^(?=.*def)(?=.*phone).+
    Match case checkbox: unticked or ticked <------ as you need

    Not everyone knows that:

    leading off your regex with a variant of (?i) will search case INSENSITIVELY (the i is for Insensitive) leading off your regex with a variant of (?-i) will search case SENSITIVELY (the -i is for NOT [or “minus”] Insensive)

    and that these little strings, if used, override the setting of the Match case checkbox, since they are logically processed after the checkbox setting.

    However, the misunderstanding could have been avoided had some sample data been provided along with the original question.

  • 0 Votes
    8 Posts
    510 Views

    With merging this PR npp uses new code to calculate where the find dialog
    needs to be shown. I hope/assume that it will be used in other areas
    as well once it is known as a stable feature.

  • Recovering temp "new" tabs

    Mar 22, 2020, 1:24 AM
    0 Votes
    2 Posts
    252 Views

    @blcartwright What version of N++?

    I observed this behavior in that situation, with N++ 7.8.4:

    A modified “Unnamed/unsaved” file cloned; right-click Close that file in one of the views: Notepad++ prompts to save that file. If answer No, Notepad++ closes that view and leaves the file tab open in the other view.

    Interestingly, after letting N++ sit for a bit, and then attempting to close it (single-viewed unnamed/unsaved doc still open), Notepad++ prompts with “Your backup file cannot be found (deleted from outside). Save it otherwise your data will be lost. Do you want to save the file?”

  • 0 Votes
    2 Posts
    236 Views

    Hello @geertsj, and All,

    In your macro, probably some values are incorrect. The value of the lParam attribute, in the last line of your macros should be 1 !

    <Macro name="xxxxxxxxxxx" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="3" message="1700" wParam="0" lParam="0" sParam="" /> .................................................................... .................................................................... .................................................................... <Action type="3" message="1702" wParam="0" lParam="N" sParam="" /> <Action type="3" message="1701" wParam="0" lParam="1" sParam="" /> </Macro>

    Refer to this other post, below, and all the following ones for further information :

    https://community.notepad-plus-plus.org/post/51407

    A fix of that issue, from @don-ho, will come with the next release !

    Also, in summary, presently :

    If the value of lParam is 1723, in the 1701 message : change this value 1723 to 1 and make sure that the 1702 message contains a 512 bitweighting, in number N ( Forward search )

    If the value of lParam is 1721, in the 1701 message : change this value 1721 to 1 and make sure that the 1702 message does not contain a 512 bitweighting, in number N ( Backward search )

    Best Regards,

    guy038

  • Persist folding between sessions?

    Mar 20, 2020, 9:34 PM
    1 Votes
    7 Posts
    2k Views

    Fortunately, if you try to fold an unfoldable line, nothing happens (at least in my experiments). As far as I know, no data can be lost from improper folding (View > Unfold All should always show everything again). And I did try to make it clear that “if [the] original file changes between the save and the load, the state is unpredictable.”

    In case I wasn’t clear enough:

    warning / disclaimer

    @Sal-Ricciardi, the PythonScript solution shown is only a hack for solving a very limited subset of the problem, as a proof of concept – specifically, re-applying the same fold levels to the exact same state of a particular file. You are responsible for keeping proper backups of important data. You are responsible for ensuring you load the correct fold-save file for a given file. You are responsible for making sure that the file doesn’t change between loads.

    If you would like more features, you may feel free to develop the above script into a more feature-rich version of the PythonScript, or use the PythonScript shown as a basis for a full-fledged plugin.

    I make no guarantees or warranties. But I do hope this helps you.

  • Files of type:

    Mar 18, 2020, 1:22 PM
    0 Votes
    5 Posts
    397 Views

    @Prahlad-Makwana4145 ,

    While I applaud your desire to help, the question @Scott-Bolton asked was about the file type extension lists in the File > Open and File > Save dialog boxes. The changes to lexer syntax highlighting settings will not affect the Open or Save dialogs at all.

  • "Tab X of Y" in Title Bar

    Mar 19, 2020, 10:28 PM
    0 Votes
    4 Posts
    5k Views

    @Stefan-Travis said in "Tab X of Y" in Title Bar:

    it can get tricky remembering which tab has which file. I think a numbering system would help

    Isn’t there already a numbering system?:

    f783be9c-3bab-4869-b42c-d7047f329967-image.png

  • 1 Votes
    28 Posts
    18k Views

    @gstavi ,

    Good points.

    I hope you indeed fixed ALL the races

    I did. Those related to periodic backups.

    I am not convinced about disk caching explanation because this should have made it a common problem for lots of application.

    It is apparently a common problem for other applications too.
    Here is another debate on the topic:
    https://community.notepad-plus-plus.org/post/48725

    Your patch looks good but to avoid the disk caching problems you need to use FILE_FLAG_WRITE_THROUGH (or in your used Win API it should be _WRITE_THROUGH, I’m not sure) when creating/opening the files.

    As I’ve written before in several places the problems are two:

    fopen erases file contents on open with write permissions. This is causing the “no-space on disk” file contents loss problem and perhaps the problem you have encountered and are mentioning here. File contents loss on reboot/power loss (even when files are edited and saved) are caused by disk write caching (defined by Microsoft as “lazy writer” in some of their documents).

    Perhaps a combination of reasons will convince @donho at some point.

    I doubt it. A lot of people (including me) had given him a lot of reasons already including the root cause of the problems and a possible fix.

    Do remember it if you ever choose to fix the out-of-space bug by creating a new file

    I though about it in the beginning when I was trying to figure out the cause of the write issues.

    In my PR I actually use native Win32 file handling API as you do in your patch to avoid the fopen file contents erasure. There is no need to create new file in that case - forget that I mentioned it (it was just a possible and sub-optimal workaround to the first problem I gave above).

  • 0 Votes
    1 Posts
    316 Views
    No one has replied