• Click link and paste new link

    11
    0 Votes
    11 Posts
    5k Views
    Alan KilbornA

    This behavior is easy to write a script for, and as scripts can be configured to run from the editor’s right-click menu, a script solution seems to “check all the boxes”.

    Here’s UrlLinkSelectOrPasteover.py:

    # -*- coding: utf-8 -*- from __future__ import print_function ######################################### # # UrlLinkSelectOrPasteover (ULSOP) # ######################################### # references: # https://community.notepad-plus-plus.org/topic/24893/click-link-and-paste-new-link # https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14114 # 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 * #------------------------------------------------------------------------------- class ULSOP(object): def __init__(self): URL_INDIC = 8 curr_pos = editor.getCurrentPos() pasting = False if editor.indicatorValueAt(URL_INDIC, curr_pos): editor.setSel(editor.indicatorStart(URL_INDIC, curr_pos), editor.indicatorEnd(URL_INDIC, curr_pos)) if pasting: editor.paste() #------------------------------------------------------------------------------- if __name__ == '__main__': ULSOP()

    If you want pasting behavior rather than selection behavior, change pasting = False to pasting = True. If you want both behaviors (in, say, two context menu entries), then you’ll need a second script (virtually a copy of the first).

  • Request Feature Convert Case snake_case camelCase

    7
    0 Votes
    7 Posts
    1k Views
    Mark OlsonM

    @Fenimoreson-Alvaro
    It sounds like you’re using generative AI to create responses to topics in the forum. That can be a useful utility for developers and anyone working with code. Unfortunately, use of generative AI to respond to posts on this forum is banned.

    If that’s not what’s happening, and your post just happened to have the style of a ChatGPT response, then I apologize.

  • Double View Save and Reload Conflict

    2
    0 Votes
    2 Posts
    285 Views
    Alan KilbornA

    @Fern99

    If you have a look at the 8.5.7 release notes HERE, you’ll see number 7:

    Fix cloned document disassociated issue after Notepad++ being relaunched

    It sounds to me from your problem description that you should try this new (week-old) release.

  • 0 Votes
    9 Posts
    808 Views
    mkupperM

    It looks like the icon within the tabs and the font used got larger between v8.5.3 and v8.5.4

    The 8.5.4 release notes are silent on this unless it’s item 14 “Several GUI Enhancements”
    https://notepad-plus-plus.org/downloads/v8.5.4/

  • Sort search results window.

    1
    0 Votes
    1 Posts
    159 Views
    No one has replied
  • New Forum Interface. I hate it.

    21
    1 Votes
    21 Posts
    2k Views
    PeterJonesP

    @mkupper said in New Forum Interface. I hate it.:

    Can the normal light background default skin be put back?

    I think I fixed it.

  • CVEs in Notepad++ V8.5.6 and Prior

    2
    -3 Votes
    2 Posts
    588 Views
    PeterJonesP

    @Murray-Sobol-1 said in CVEs in Notepad++ V8.5.6 and Prior:

    The following CVEs have been reported in Notepad++ V8.5.6 and Prior

    Already addressed:
    https://community.notepad-plus-plus.org/topic/24889/notepad-v8-5-7-release-candidate

    For all of the above CVEs, As of time of publication, no known patches are available in existing versions of Notepad++.

    Notepad++ does not do “patch” releases. It just releases new versions. And the new version implementing the fixes is available in release-candidate, and will be switched to full release soon,

  • 0 Votes
    4 Posts
    301 Views
    PeterJonesP

    I also saw that I could remove the useless “groups” button, since we don’t use the “groups” feature of the forum software. So that’s removed extra clutter now.

  • Using Find All results

    15
    0 Votes
    15 Posts
    1k Views
    PeterJonesP

    @Larry-Schwartz said in Using Find All results:

    licking on result’s 1 and 2 in the resultant “Line 1” or “Line 2” highlighted the string TV in BOTH lines in the file.

    Ah, you are confusing the search’s selection and active line with the “smart highlighting” feature of Notepad++.

    Go into the editor; double-click on tv. If you are using default colors, you will see 3 colors involved:
    e2ea2811-edd8-4dc4-857b-342f8ce45cf3-image.png

    Line 1 has the “Current Line Background” (the bluish-gray) Line 1’s tv is highlighted with both the “Selected Text Colour” background (darker gray) and the “Smart Highlighting” (bright green) background, which combine to make a darker greeen background Line 2’s tv is highlighted with just the “Smart Highlighting” (bright green) background

    When you use Find All’s Search Results window, double-clicking on the result line will (1) set that line active (give it “Current Line Background”) and 2) select the match (tv) with the active editor selection (“Selected Text Colour”), and 3) if you have Smart Highlighting enabled (it is by default; see Settings > Preferences > Highlighting > Smart Highlighting)

    It is both selecting the active match and doing the Smart Highlighting. If you don’t like Smart Highlighting, turn it off – if you do, then it will look more like this new screenshot, and will no longer have the green Smart Highlighting, so you can better tell which match is being selected:
    0f7e4e70-26e6-4194-8bb8-b4f34db50aed-image.png

    Please note that by default, Smart Highlight only works on complete words… so if you had searched for ntr from the entry, or done a regular expression search [nt] tv (which matches n tv from verizon tv and t tv from comcast tv), then it would not have shown the Smart Highlighting (unless you, like I, un-checked the ☐ Match whole word only setting, in which case it would show smart highlighting for just the ones that are exact matches with the active selection, regardless of whether the regular expression would have selected more)
    b120d613-1932-4fce-b8df-e0fc8daf0e7f-image.png

    References

    User Manual: Style Configurator > Global Styles: describes the “Current Line Background”, “Selected Text Colour”, and “Smart Highlighting” style definitions User Manual: Settings > Preferences > Highlighting: describes Smart Highlighting
  • Bookmark for saved files

    14
    1 Votes
    14 Posts
    2k Views
    Karlo-FK

    Wait…
    What about Project Panels?
    https://npp-user-manual.org/docs/session/#project-panels

    The Project Panels are similar to the Folder as Workspace panel, but allow you to organize the tree view to your liking, rather than being forced to follow the Windows filesystem hiearchy.

    Double-clicking on a file from the tree-view will open it as a new tab in the Notepad++ editor (or will activate that tab if it’s already open). Closing the tab for a file from the Project will not remove it from the Project panel, so it’s easy to re-open that file.

    I have a list of often used files sorted by folders (according to my needs, not by Windows filesystem hierarchy) and it works fine for me. And works fine with spaces in file names.

  • Автоматический перенос строки

    29
    0 Votes
    29 Posts
    9k Views
    PeterJonesP

    @Vio-Ru ,

    Yes, your wider screenshot shows that you started a comment before the <Macro name="aa" and never closed it. Close your comment, and save and restart, and things should work.

    edit: sorry, I was typing my reply when you posted your “I found my mistake” message

  • Regular Expressions slightly broken in 6.9.1?

    14
    0 Votes
    14 Posts
    8k Views
    user21760U

    @Jim-Dailey said in Regular Expressions slightly broken in 6.9.1?:

    @dail I tried

    x[^x\R]+$

    but it made no difference. But, sure enough, this does work:

    x[^x\r\n]+$

    Any idea why \R doesn’t work in this case?

    \R and \N lose their special meaning inside a bracketed character class. There, they represent the characters R and N, respectively.

    https://perldoc.perl.org/perlrecharclass#Backslash-Sequences
    https://perldoc.perl.org/perlrebackslash#All-the-sequences-and-escapes

  • FindInFiles results display

    7
    0 Votes
    7 Posts
    621 Views
    PeterJonesP

    @havkicker ,

    This FAQ was added today because this question is starting to come up frequently enough to warrant its own FAQ entry.

  • Open/Save File Dialog - Session

    7
    0 Votes
    7 Posts
    414 Views
    Alan KilbornA

    @mkupper

    Thanks for the info. I’ll probably keep linking that way, though, as it is expedient for a lot of people (using other browsers) and is also fast for me to supply.

  • JavaScript keywords in langs.model.xml

    4
    0 Votes
    4 Posts
    440 Views
    NicholasN

    @Mark-Olson Yes, that is my plan. At the moment I just want some feedback from the community on some of my suggested changes.

  • Can't connect to your web-site

    8
    1 Votes
    8 Posts
    2k Views
    PeterJonesP

    @Murray-Sobol-1 said in Can’t connect to your web-site:

    @PeterJones
    Thanks, Peter, for fixing the issue.

    I had nothing to do with the fixing of the issue. As I said before, the Notepad++ Community is the community of users of Notepad++. We do not own Notepad++ nor its domain.

    The owner of Notepad++ and the various Notepad++ domains is the one who fixed the problem.

    I just pointed you to where to report a problem, and then updated it with a link to the issue where someone else had already reported the problem, and then I posted another reply when I saw that the problem had been fixed.

    In the future, when maintenance needs to be done on this website (I suspect that this was the root cause of this problem)

    You suspect wrong. There was apparently some accidental problem that happened, which took the website down, unbeknownst to the owner of the website. When this was pointed out to him through the github issue, he then had to spend a couple hours trying to get the problem fixed.

    please post a page stating that the web site is down for maintenance.

    That’s rather hard for the owner to do when it wasn’t down for intentional maintenance, and the only way to get it working enough to be able to show a “down for maintenance” message would be to get it working enough that it could show the real website anyway.

  • "Folder as Workspace" refresh view

    4
    0 Votes
    4 Posts
    541 Views
    mkupperM

    @David-Morrison The Windows API includes a function, ReadDirectoryChangesW() that Notepad++ uses to watch for changes to files and folders.

    ReadDirectoryChangesW() is not reliable for network shares. If you Google for ReadDirectoryChangesW network drive you will find others seeing the same issue you are having. My guess is that the Raspberry Pi supports an older version of SMB protocol.

  • Silly rant.

    4
    0 Votes
    4 Posts
    456 Views
    mkupperM

    @SteveRMann I dug into this a bit and discovered the dialog box about updating Notepad++ comes from GUP.exe, not Notepad++.

    I reported this to GUP’s developer at https://github.com/gup4win/wingup/issues/46

  • How to remove these dots/lines?

    4
    0 Votes
    4 Posts
    519 Views
    ms appleM

    @PeterJones Thank you Peter.

  • [Feature request] right-to-left editing for each tab

    10
    0 Votes
    10 Posts
    820 Views
    maimonid toledanoM

    @Alan-Kilborn Thank you Alan. I will try it.