• Perl folding fails on comment with right curley brace "#}"

    4
    0 Votes
    4 Posts
    549 Views
    mpheathM

    @CodeBiene said in Perl folding fails on comment with right curley brace "#}":

    So it has nothing to do with the fact that there are several consecutive comment lines.

    I agree that It is something that has not been mentioned yet.

    The hexadecimal 3FF displayed in the margin is negative folding caused by unbalanced braces.

    perl_fold4.gif

    2 frames alternate every 4 seconds displaying the default lexer property value of

    fold.perl.comment.explicit=1

    and the changed value of

    fold.perl.comment.explicit=0

    Comment explicit enabled for the lexer is usually the leading comment character(s) followed with a brace. Perl comment explicit is #{ as a open fold and #} as a close fold.

    Notice the line with #} { shows fold flags of 402 401 which means it is closing a fold. The next frame with that same line shows fold flags as 402 402 which means that there is no change in the folding state.

    The Ctrl+Q key sequence changes } { to # } { which is not recognized as a fold by comment explicit as to the space after the # symbol.

    PythonScript can be used to disable the comment explicit option which is enabled with the value of 1 by default:

    editor.setProperty('fold.perl.comment.explicit', 0)

    This setting will not survive changing buffers so may need a callback to be setup.

  • Remote linux agent to trigger a local edit?

    1
    1 Votes
    1 Posts
    293 Views
    No one has replied
  • [feature request] cloned tab lighting

    12
    1 Votes
    12 Posts
    2k Views
    Lycan ThropeL

    @Alan-Kilborn ,
    Thanks to you, (grumble :) ) I’ve started checking out the YT videos by Chris Amit to check out some of the other things NPP and Plugins do that I’ve not been using and already have enabled 3 more plugins. ::sigh:: Ignorance was bliss, now that I’ve eaten the apple, like Adam, I’m screwed. :)

  • Merge files in one - How does it work?

    1
    0 Votes
    1 Posts
    321 Views
    No one has replied
  • WinGup update waiting...

    4
    0 Votes
    4 Posts
    955 Views
    PeterJonesP

    @mattesh ,

    I’ll put it there little later

    I actually already pointed it out to Don here, and he has tagged wingup 5.2.8. He has incorporated that new wingup into Notepad++ v8.6.3-RC2

    seems that this fix might even not be enough for some use cases

    If you find a use case that isn’t covered by wingup 5.2.8, you will have to create a new wingup issue. A fix for a new issue (likely) won’t make it into the final Notepad++ v8.6.3 release, but it should make it eventually (assuming he is able to come up with a fix).

  • Weird 'Find Window' situation with search text box

    8
    1 Votes
    8 Posts
    901 Views
    Mark OlsonM

    @big_guitar
    If you’re using JsonTools 4.4, you should upgrade to v6.1.1 or v7 even if it’s not responsible for your problem (and I seriously doubt it is).

  • Getting project data when using external execution.

    10
    0 Votes
    10 Posts
    2k Views
    G

    @PeterJones
    OK. I get the picture now. Although notepad++ has many features - great editing and the ability to run external programs - it lacks the ability to handle projects properly.

    The ability to have $(CURRENT_PROJECT_FILE) and $(CURRENT_PROJECT_NAME) is all it would take.

    Although notepad++ is my editor of choice I will just have to ‘bite the bullet’ and carry on as I currently do. I manually create a file containing the file list and compile that.

    I can currently do what I require by creating the panel information file in my data directory with the extension npp then looking for this file in the current addressed directory. Only one project/directory allowed.

  • "Summary" feature improvement

    31
    3 Votes
    31 Posts
    6k Views
    Alan KilbornA

    @guy038 said in Improved version of the "Summary" feature, ...:

    what do you think of ?

    I wouldn’t bother trying to rename things at this point.
    It’s no problem simply because I was confused (that’s MY problem). :-)
    Carry on… :-)

  • Full line selection and keyboard shortcut

    12
    0 Votes
    12 Posts
    11k Views
    Alan KilbornA

    @SoCu said in Full line selection and keyboard shortcut:

    you can see that with each update you have to reconfigure everything that has been changed, I think this would not have to be changing with each update.

    No, that’s not true.
    However, if the author of Notepad++ “adjusts” keycombos for a new release (there’s been some mumbo jumbo with Ctrl+c lately), then you might have to.

  • [Bug] Npp loses all open files after restarting as Admin

    20
  • Windows 11

    17
    0 Votes
    17 Posts
    8k Views
  • Selected text color issue?

    5
    0 Votes
    5 Posts
    997 Views
    Diehl WithItD

    @PeterJones Legit, you the man.
    13048f20-e1b3-40ad-bbb4-1371331f4532-image.png

    There were many styles I was missing so I’ve updated my styles.xml with them all now.

    Thanks.

  • How do you open a new tab next to the current?

    2
    0 Votes
    2 Posts
    395 Views
    Alan KilbornA

    @PiotrMP006

    I don’t believe it can be done by Notepad++ itself.

    If by “next to” you mean “to the right of”, then the following PythonScript script can do it:

    # -*- coding: utf-8 -*- from Npp import * curr_view = notepad.getCurrentView() total_tabs_in_view = 0 for (pathname, buffer_id, index, view) in notepad.getFiles(): if view == curr_view: total_tabs_in_view += 1 curr_tab_index = notepad.getCurrentDocIndex(curr_view) notepad.new() for __ in range(total_tabs_in_view - curr_tab_index - 1): notepad.menuCommand(MENUCOMMAND.VIEW_TAB_MOVEBACKWARD)
  • Apply the update while exiting Notepad++ instead of starting up

    2
    0 Votes
    2 Posts
    325 Views
    Alan KilbornA

    @Merci-chao

    It’s somewhat of a frequently-requested feature; see HERE for one such request, with some links to others.

  • Combine Plugin Gone!?

    10
    0 Votes
    10 Posts
    20k Views
    CésarC

    @Diego-Raguindin This worked perfectly ¡Gracias!

  • Can't report bug on Github

    5
    0 Votes
    5 Posts
    571 Views
    rdipardoR

    A similar issue was reported recently that turned out to be a faulty graphics driver (or a lemon PC, as suggested by the closing comment): https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14581

    @Terry-R said in Can't report bug on Github:

    it might be a plug-in.

    @gerdb42’s observation applies to plugins as well. A Windows DLL does not execute in kernel mode (as drivers do). Unless the plugin is directly interfacing with a driver, it would not be able to crash the OS.

  • When Running Python from NPP, the Script Can't Find Local Image Files

    8
    0 Votes
    8 Posts
    972 Views
    Ron Tarrant 1R

    @Ron-Tarrant-1
    It’s okay. I found the answer on Stackoverflow. In case someone else comes looking for this, here’s the entire script (note the ‘-u’ arg after ‘py’):

    NPP_SAVE cd "$(CURRENT_DIRECTORY)" cmd.exe /c py -u "$(FILE_NAME)"

    Thanks again for all the help.

  • 0 Votes
    3 Posts
    411 Views
    _daavidoe__

    @Alan-Kilborn
    example 09ffec8c-4526-4d96-91f2-ad36c1c943da-image.png
    there are 4 duplica

  • 0 Votes
    17 Posts
    2k Views
    mkupperM

    @Stefan-Ozminski said in Hazardous blank operations operate on whole file when no selected text, need to evolve safer approach:

    think the most unusual thing needed to make this last approach work would be to leave the menu open when “Require selected text for operation” or “Allow operation without selected text” is clicked

    Hmm, that is a good point and I’d need think about if it’s possible without a lot of code within Notepad++. One of the things Windows offers to all applications is the availability to define menus. The part where the user can pull down a menu, select sub-menus, etc. is handled by Windows. When a menu option is selected Windows closes the menu, parent menu, etc. and then tells the application that someone has selected a menu item and which one it was. Menus and sub-menus are handled as separate “windows” that are layered on top of the application.

    It’s possible for applications to to define what they call window message handlers. Custom window message handlers for the menu “windows” are not very common meaning there will be few good examples to use, particularly for something unusual such as keeping a holding a menu open while flags get enabled/disabled.

  • How to randomize lines on repeat order

    19
    1 Votes
    19 Posts
    4k Views
    Benhur MarxsB

    I renew my thanks to all you : my last request !
    My file at the end seem like this ;
    ( usually is 10 or 11 rows total ,and I want to save only the 8th row from the end )
    before

    @@4E6B5083D6D4C3544B @@8DA0B77B6EE18D3829 @@F869AD9ED3CBB6DB3C @@@@@@@@0749C1720F5BD082D8 @@@@@@@@@@@@@@3FDE5EB1251D1E3C50 @@@@@@@@@@@@@@7A6C9A03F3CD09E1E3 @@@@@@@@@@@@@@@@0B45821F59A2E7FD7A @@@@@@@@@@@@@@@@5DB580A75A8FA52876 @@@@@@@@@@@@@@@@89322A86A9F9A6B04C @@@@@@@@@@@@@@@@E67753DC737A97F917 @@@@@@@@@@@@@@@@E7BFC47C3A067CDFC5

    after
    0749C1720F5BD082D8

    thank you