• Selected text color issue?

    5
    0 Votes
    5 Posts
    655 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
    255 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
    190 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
    18k Views
    CésarC

    @Diego-Raguindin This worked perfectly ¡Gracias!

  • Can't report bug on Github

    5
    0 Votes
    5 Posts
    295 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
    606 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
    252 Views
    _daavidoe__

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

  • 0 Votes
    17 Posts
    1k 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
    3k 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

  • Copy using Ctrl-Left mouse

    3
    0 Votes
    3 Posts
    668 Views
    Eduardo GameroE

    @Alan-Kilborn Yes, you are right: I meant “drag copy”. Thank you very much for the info!

  • UDL - forbid number highlight in variable name

    1
    2 Votes
    1 Posts
    163 Views
    No one has replied
  • Keyboard shortcut to select current line to complement triple click

    7
    1 Votes
    7 Posts
    2k Views
    Alan KilbornA

    Not that the OP wants this, but, in addition to the macro approach, it can be done with a PythonScript that is tied to a shortcut keycombo.

    # -*- coding: utf-8 -*- from __future__ import print_function # refs: # https://community.notepad-plus-plus.org/topic/25408/keyboard-shortcut-to-select-current-line-to-complement-triple-click # for newbie info on PythonScripts, see https://community.notepad-plus-plus.org/topic/23039/faq-desk-how-to-install-and-run-a-script-in-pythonscript from Npp import * def select_line(line_number=None): if line_number is None: line_number = editor.lineFromPosition(editor.getCurrentPos()) p1 = editor.positionFromLine(line_number) p2 = editor.positionAfter(editor.getLineEndPosition(line_number)) editor.setSel(p1, p2) select_line()
  • drag it out and drop as a copy

    6
    0 Votes
    6 Posts
    3k Views
    Doan DanD
    Select text Drag the selected text to the position you want to drop Press Ctrl and release mouse button Done
  • Increment only bookmarked lines 1->1000

    3
    0 Votes
    3 Posts
    328 Views
    Mark OlsonM

    The Columns++ approach is a good one, and if your file isn’t several megabytes or larger, I would just stick with that and ignore the rest of this post.

    That said, you could get better performance on very large files using PythonScript, with the following script:

    import re x = [0] def on_match(m): x[0] += 1 return m.group(1) + str(x[0]) editor.setText(re.sub('(abc_)1', on_match, editor.getText()))

    Note that there’s a superficially similar script you could write with PythonScript that uses editor.rereplace instead of re.sub, but editor.rereplace will be much slower than re.sub for very large files.

  • 0 Votes
    8 Posts
    2k Views
    PeterJonesP

    Even better would be taking the freedom to select the checkbox once the user highlights a certain plugin name. A little aggressive, but serves in a beneficial way, plus, if the user does not want to select multiple plugin at once, he unchecks them.

    I wasn’t stating my opinion of what would be best. I was stating what is.

    If you feel strongly enough that it would change, you may read our FAQ about making a feature request and follow the instructions there to put a feature request in the right place.

    Personally, I feel that either implementation will be equally annoying to a similar-sized subset of the user base. If you’re going to annoy half the users either way, why not just leave it as is. But my stating my opinion in no way prevents you from maintaining your opinion or from making an official feature request.

    Addendum: Not everyone uses the mouse for everything, either. Imagine someone who has difficulty using scrollbars with a mouse, so they click on the name of the first plugin in the list, then use arrow keys to scroll down until they find the right plugin. Under the current implementation, they they hit spacebar on only the right plugin to mark the checkbox, and then use TAB or Alt+I to install that one plugin. Under your system, that initial click (and probably every arrow key, because every time you arrow, it highlights the next plugin in exactly the same way a click does) would actually checkmark the plugins as they were trying to navigate to the one they want. Now instead of installing one plugin, choosing Install would actually install at least two (the first, and the one they wanted) and maybe even all the ones in between (if there’s no way to distinguish between clicking on a plugin name and arrowing to a plugin name).

  • Use different metakey for multi-edit

    2
    0 Votes
    2 Posts
    180 Views
    PeterJonesP

    @tebiodl ,

    That is not currently an option, sorry. (You could put in a feature request, as described in our FAQ section, but I wouldn’t expect it to be changed)

    (Are you the same person as @supsm, and just thought you could “speed up” an answer to this earlier question by asking again from a new account? Or did the dice just roll really weirdly today that two completely random users happened to have the same complaint today?)

  • Multi-edit modes

    7
    3 Votes
    7 Posts
    549 Views
    zbrush zbrusherZ

    @mkupper Thanks for magical settings “noColumnToMultiSelect.xml”.

  • Slow to open large files...

    7
    0 Votes
    7 Posts
    2k Views
    PeterJonesP

    @AndersWa said in Slow to open large files...:

    N++ without Plugins is painfully slow editing large XML files.

    Which is why Notepad++ has Settings > Preferences > Performance, where you can define a threshold to stop doing things like syntax highlighting if a file is large enough that it slows down your editing.

  • File is not getting minified.

    3
    0 Votes
    3 Posts
    575 Views
    lokesh shindeL

    I tried the above solution and it works perfectly. Nicely explain with screen shot.Thank you so much for your help. Really grateful.

  • Must-Have plugins, what are yours?

    15
    4 Votes
    15 Posts
    33k Views
    mkupperM

    @Barry-Patterson said in Must-Have plugins, what are yours?:

    I don’t see anyone mentioning the “NPP TextFX2” plugin.

    I suspect that’s because nearly all of the TextFX / TextFX 2 features are now built into Notepad++. Some accuse Notepad++ of then becoming bloatware.