• 0 Votes
    3 Posts
    291 Views

    @PeterJones ,

    Thanks for such a thorough investigation.
    Knowing that something is impossible is better than assuming it may be.
    The alternative with TARGET suits me very well, I’ll take it.

    Thank you!

  • 0 Votes
    6 Posts
    3k Views

    in autohotkey, create a script that sends Ctrl+Alt+b when you ctrl+click.
    This is just one of the scripts I use to help me code in Notepad++

    #If WinActive(“ahk_class Notepad++”)
    ;; Ctrl+LButton to select what’s between brackets/parentheses
    ~^LButton::
    keywait, LButton
    if (A_TimeSinceThisHotkey<150){
    send, {lButton}
    send, ^!b
    send, {Shift Up}{Alt up}{Ctrl up}
    send, {sc0E9}
    }
    return

    #If

  • 1 Votes
    8 Posts
    411 Views
  • 1 Votes
    5 Posts
    581 Views

    @Alan-Kilborn said in Select file with one click in Project Panel ::

    @PeterJones said in Select file with one click in Project Panel ::

    For one-click switching, that might really annoy some people (like me), because some do a single-click on the filename to make sure it’s selected, then right-click to get the right-click menu, but don’t want to have that initial single-click immediately open the file or change the active file. So if you do end up requesting this feature, please make sure it’s an option to be single-click vs double-click, with the default in the double-click that people are used to.

    An additional “problem” for one-click: Sometimes, single clicks are “errant”, and big effects from such accidental clicks are annoying, because you then have to undo an action you didn’t intend in the first place.

    But if an selection option single/double click feature( like say PeterJones ) only for file switch no problem and make work easier .

  • 0 Votes
    3 Posts
    275 Views

    @PeterJones Thanks. I found the github login that was used and fixed the email.

  • 1 Votes
    11 Posts
    2k Views

    @Dr-N ,@Coises ,@PeterJones
    @guy038 said in Replace Unix timestamp:

    I think that your result 2024-01-04 19:39:53 exceeds the right answer of one hour !

    Thanks for pointing this out!

    Indeed, in my example, my local time zone has been automatically included into the calculation.
    In case it should be UTC ( which is one hour west of my location) this should be indicated by a “!” in the format string.
    So the Replace of my (two) Cature Group example should look like this .

    Previous example with local time zone (Thu Jan 4 19:39:53 2024):
    set(CAP1..os.date("%c", math.floor(CAP2/1000)))

    New example with UTC time (Thu Jan 4 18:39:53 2024):
    set(CAP1..os.date("!%c", math.floor(CAP2/1000)))

    Details are described here:
    Lua os.date description

  • 0 Votes
    5 Posts
    648 Views

    I wanted to thank you for the assistance. Some of the themes I was using were Hyper, Obsidian PyCs, VS2019-Dark for example and a few more. I know those are old. Also it appeared I had duplicate copies of the original themes pre 8.6 in app data which i was not paying attention to so I needed another brain or two to jog my memory. I guess those were overriding anything new apparently.

    I just did a test and was able to add those setting to the older themes as I did not know a setting had to be present since the new release. They worked successfully. I appreciated the help on this matter!

    Hopefully this thread could potentially assist someone else :)

    PS i was not able to quote names in this thread as it would not let me

  • 1 Votes
    4 Posts
    1k Views

    @lon-from-appleton

    One particular .srt file, or all .srt files?

    If all .srt files, as an experiment, if you rename one of the files to have .txt instead of .srt as the file extension, can Notepad++ open it?

    Also, please copy and post the output from Debug Info… on the menu opened from the question mark at the right of the Notepad++ main menu.

  • 3 Votes
    16 Posts
    4k Views

    https://xkcd.com/1171/
    8992aaa5-536d-40a3-bb79-ea959b8934ec-Untitled.png

    @Mark-Olson I prefer this quote from 12 Aug 1997:

    http://regex.info/blog/2006-09-15/247

    Some people, when confronted with a problem, think
    “I know, I’ll use regular expressions.” Now they have two problems.

  • notepad++ mass save

    Jan 5, 2024, 1:31 PM
    0 Votes
    6 Posts
    5k Views

    @sdsds-rgdsfds If you’re not too concerned about the file names, you can just copy the backups from %APPDATA%\Notepad++\backup to another location.

  • 1 Votes
    3 Posts
    234 Views

    @Terry-R Thanks, I will take a look at that

  • 0 Votes
    10 Posts
    793 Views

    @PeterJones said in Feature request: tab names without file extensions:

    comment on that request

    Another comment supporting this feature has been added to GitHub

  • 0 Votes
    5 Posts
    6k Views

    @hania-amir said in Increase the size of Fonts in Notepad ++ dialogs:

    Navigate to “Settings” > “Style Configurator” and modify the font size for the desired elements

    The “desired elements” are dialog box font, which are not controlled by the Style Configurator (or any other location in the Notepad++ settings), so your advice will not help.

  • 1 Votes
    10 Posts
    8k Views

    @mkupper said in Notepad++ in Right-To-Left (RTL) mode:

    Keep in mind that while something like Notepad++ looks like text it’s a graphical display.

    This really is the heart of the issue. What the end-user sees in the edit window gets there by a system-dependant pipeline that starts by loading the font file, mapping a character to physical keystrokes (or IME input), measuring the size of the client area to be filled by the character, drawing it, then recomposing the client area all over again by shifting every other character that was already there. By that point, we are as far removed from Scintilla and Notepad++ as this conversation has come.

    Text direction is entirely up to the graphics device, which varies widely across platforms, and Scintilla has to maintain support for 3 of them (maybe 4, if we include Qt, which is really just an obsessively object-oriented wrapper atop the C-language libraries underpinning the given operating system). Worse, Notepad++ has always used the oldest, most backward-compatible APIs the Windows platform has to offer, and legacy GDI’s concept of RTL is literally a geometric flip called “mirroring”: https://learn.microsoft.com/en-us/globalization/localizability/mirroring-in-win32

    @JamesWebb said in Notepad++ in Right-To-Left (RTL) mode:

    @mkupper said in Notepad++ in Right-To-Left (RTL) mode:

    We are surrounded by structural racism and/or discrimination.

    Reply

    Apology. But I’m not agree. 😉

    I think @mkupper was talking more about 30 years ago, when, for example, the GDI interface was written, by American engineers, who obviously didn’t care enough about international users to bother writing APIs that could properly draw “foreign” languages. Their design choices actually do prejudice the user experience of Persian, Arabic and Hebrew speakers. But nobody on this forum can do anything about that, or needs to apologize for it.

    There is no shortage of word processing software that can intelligently produce text in a variety of international languages. Notepad++ is currently not one of them.

  • Notepadd++ freeze

    Dec 27, 2023, 10:02 AM
    1 Votes
    4 Posts
    717 Views

    @Lhuillier-Sébastien asked:

    Is there alternatives for these plugin (just for Internet languages : php, html, css and Javascript)

    Usually, freezing is caused by a combination of things. Remove one element and the application does not freeze or does to less often. The current goal is to figure out which element(s) trigger the freezing you are experiencing.

    At present the plan is to disable plugins to see they are the cause of the freezing you are experiencing. If a particular plugin, or set of plugins, is found the the cause of the freezes then you will be able to re-enable the other plugins. You then also will have a choice to either not use or find a replacement for plugins that cause Notepad++ to freeze, or you can install those too and live with the freezing.

  • Disable Code Folding?

    Jun 23, 2021, 9:52 PM
    0 Votes
    16 Posts
    3k Views

    @Marc said in Disable Code Folding?:

    Presently, in Dec. 2023, this works:

    Settings —> Preferences —> Editing (on the left side)

    Then find the box that says “Folder Margin Style”, and select “None”.

    Multiple problems with these statements:

    “In Dec. 2023” doesn’t convey much information. Saying “In Notepad++ 8.6” would be much better, as that version is current in Dec 2023. (but, see the next point…)

    “Folder Margin Style” does NOT appear in “Settings —> Preferences —> Editing” as you state. It appears exactly where the previous poster said, in “Settings —> Preferences —> Margins/Border/Edge”

    So, basically your whole posting is wrong and indeed unnecessary. Sorry if that sounds harsh.

  • Horizontal Caret

    Dec 23, 2023, 7:49 PM
    0 Votes
    22 Posts
    2k Views

    @mkupper Many thanks for your help and advice. Your explanation about open-source project was like a crash course for me. I’m not a coder, so I don’t know much about it.

    Regarding the issue with the dash cursor, I realized that it’s not worth the effort since it doesn’t add much value. Also, since I have no coding knowledge, I can’t create my own repacked version of NP++ 😑.

    I have a question about selecting words in RTL. Whenever I try to select a word or words, if the line is left-aligned, the selection appears like a rolling film strip, making it difficult for me to see which word I’m selecting. However, if the line is right-aligned, the selection works normally, and I can see which word I’m selecting:

    https://mega.nz/file/R9YTASzC#cwWjdDfJG5XRGsqfUWrTuJBfF_iDPKA3NX_Oac9O5RM

    Do you know why NP++ has such odd behaviour? Is there any solution?

  • 1 Votes
    2 Posts
    222 Views

    @Lumoryel ,

    On a standard US keyboard, the # shares the same key with 3, and to type a # you would use Shift+3. So for Shortcut Mapper, the Ctrl+# sequence is really Ctrl+Shift+3

    Update 1: In this post, @guy038 has shared all the possible combinations available to the shortcut mapper._

    Update 2: In another discussion, @dinkumoil shared how some of the german keyboard virtual-key codes (VK) line up with the Shortcut Mapper: that one shows that there is a separate # key, which has the same VK_OEM_2 as the / ? key on the US keyboard, so, for shortcuts, the # key on a German keyboard is / in Shortcut Mapper. (Given that you’re asking about the # key, I am guessing you might be using a German keyboard; but it’s just a guess.)

    Update 3: @guy038’s original list of combos has been moved to the FAQ section; @dinkumoil’s post has been replicated in that FAQ; and I have added a reference at the end of the FAQ to be able to easily explore the VK for any given keyboard, so that if you’re not using US, French, or German keyboards, you can still find out what VK each key is.

  • 0 Votes
    6 Posts
    585 Views

    @guy038, @peterjones, and others.

    It turns out the \c☒ topic gets fairly messy, and is far too messy to document the details in the manual. I started playing with ANSI…

    \c☒ with ANSI or ASCII codes \x00 to \x7F works well and searches for the lower five bits of the ☒ character. Realistically, you should only do it with A-Z or a-z. Better yet is to use x## or x{####} style expressions as it’s clearer as to what is being searched for.

    A case sensitive search for \c☒ using ANSI codes \x80 to \xFF matches ANSI codes in the \xE0 to \xFF range, with some exceptions… The logic first extracts the lower five bits of ☒ and then bitwise-or that with 11100000 or 0xE0. For example, all of these will match ANSI character 0xEC which is ì.

    Hex Pattern \x8C \cŒ \xAC \c¬ \xCC \cÌ \xEC \cì

    The lower five bits of the above hex codes ‘\x8C’, ‘\xAC’, ‘\xCC’, and ‘\xEC’ is 01100 or \x0C and we bitwise-or that result with 11100000 or 0xE0 to search for \xEC.

    It turns out that with one exception, all of the ANSI characters in the \xE0 to \xFF range are lower case letters. A case-insensitive search for \c☒ using ANSI codes \x80 to \xFF works just like the case-insensitive version I just described but also matches the upper case forms of the letters in \xE0 to \xFF range.

    The one exception is ANSI character code \xF7 which is a divide by sign ÷. A search for \c—, \c·, \c×, or \c÷ only matches ÷ when you use a case-insensitive search.

    Searching for \c (\x20), \c@ (\x40), \c` (\x60), \c€ (\x80), \c  (\xA0), \cÀ (\xC0), and \cà (\xE0) all match NUL (\x00) in ANSI encoded files. With one exception also match NUL (\x{0000}) in UTF-8 encoded files. The exception is searching for \c€ (\x80) matches \x{000C} (form feed) and not NUL \x{0000}.

    Because searches for \c€ (\x80), \c  (\xA0), \cÀ (\xC0), and \cà (\xE0) all match NUL (\x00) in ANSI files it means you can’t use them to match the lower case à at ANSI character \xE0 nor it’s upper-case À at \xC0.

    I also ran across that while Notepad++ supports searching for \x00 or \x{0000} both which match a NUL (\x00 or \x{0000}) in a file using \x00 or \x{0000} in the replacement part both results in the replacement string getting terminated at the NUL (\x00 or \x{0000}) character.

    As replacement strings are terminated at the NUL using \c~ where the ~ is a NUL (\x00) returns Invalid Regular Expression with the details being:

    ASCII escape sequence terminated prematurely. The error occurred while parsing the regular expression: '>>>HERE>>>\c'.

    Using a search for xxx and replace of aaa\x00zzz or aaa\x{0000}zzz both result in xxx being replaced with aaa as the replacement string was terminated at the NUL. Apparently the engine first does a pass where it converted the \x☒☒ and \x{☒☒☒☒} forms of characters into the actual character value meaning \x00 or \x{0000} in a replacement simply terminates the string at that point.

    I suspect that bug could be used to add a comment to the replacement!
    Search: Hello
    Replace: World\x0 This will never happen

    Windows also use NUL as the text string terminator in its copy/paste system.

  • Beautify your code with LUA

    Dec 19, 2023, 5:48 PM
    1 Votes
    10 Posts
    2k Views

    @PeterJones @mkupper

    While I agree that in a perfect world I wouldn’t make a post like this, but actually present a finished solution or product like a plugin… but one has only so much time between work and family.

    I’ll take a look at the lua script plugin somewhere in the future, I didn’t even know there was a LUA plugin. I just happen to stumble on this script when doing some research, and figured it could be helpful for other people too. Thats pretty much the only reason I posted it here on the forum.

    I currently have my hands full with a project, creating an UDL for notepad++. Beatutifying and auto indenting is on my list and will eventually get around to it, but at the moment I have other priorities. Such as writing calltips for about 3000 entries, and coming through on other promisses made.