• how to transliterate languages?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    SalviaSageS

    Hi. This is possible. You must use either the programming language AutoIT or AutoHotkey to do this.

    Check out this link where someone made a cyrillic-latin transliterator.

    https://autohotkey.com/board/topic/55957-cyrillic-to-latin-and-vice-versa-transliterator/

    also, check out my earlier post
    https://www.autoitscript.com/forum/topic/150021-how-do-i-automatically-change-letters-to-other-letters-in-a-text-editor/

    You may be able to adapt something from there.

  • Type Ahead with index search would be awesome ...

    2
    0 Votes
    2 Posts
    833 Views
    Scott SumnerS

    @Java-Dev

    You forgot to offer up the $100 this time around.

  • can't save modifications to an existing file

    Locked
    2
    0 Votes
    2 Posts
    735 Views
    James DurbinJ

    cancel this request for help. figured it out.

  • Pasting Data from Excel in 4th Collapse Level

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    cipher-1024C

    You may have show some examples like “I have this…”, “I want it to look like this…”. I think more people would understand what you’re looking for.

  • How to sort out duplicates?

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    cipher-1024C

    If you’re working with just a list of values, you can install the CsvQuery plugin and run a SQL type query on your list. Say you have this as your list:

    filter1
    filter1
    filter1
    filter2
    filter2
    filter2
    Filter1
    filter2
    Filter3

    Open the CsvQuery window, (you may have to hit the “read file” button), type this into the command bar:

    SELECT col1, COUNT(*) FROM THIS GROUP BY COL1 ORDER BY COL1

    Click Execute
    the output window will show this:
    Filter1 1
    Filter3 1
    filter1 3
    filter2 4

    If you want case insensitive searches:

    SELECT col1, COUNT(*) FROM THIS GROUP BY COL1 COLLATE NOCASE ORDER BY col1 COLLATE NOCASE

    That will get you this:
    Filter1 4
    filter2 4
    Filter3 1

    I had to use ctrl-c to copy the output. Right click - copy didn’t work for me. Note that in a CsvQuery query “this” is the table name (your list in the active window).
    Reading a file with 100k lines and executing the search each took about a second on my test case (the sample above repeated a lot). IDK if you can make a macro out of this, but it’s another option besides regex and python.

    May the Sort be with you.

  • Call-tips - Questions, possible bug

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    cipher-1024C

    I think what you’re looking for is in Preferences->Auto-Completion in the box titled Auto-Completion. On the right side of the box there’s a line that says “From X th character. Valid value: 1-9”

    The “x” is a clickable number. If you click on the number you can change it to 9, but that’s as high as it can be set. There are other options in this window that may ease some of your auto-complete pain.

    Sorry, I can’t help you with the function completion or tooltip color issues.

  • One annoying bug with ANSI encoding

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Vladimir OlegovichV

    Binary file was bad example (how file looks when bug occurs), but sometimes it happens to my txt files, even on selecting part of text with mouse. I’ll try with turned off “Enable session snapshot”, except bug is unpredictable, sometime after updates or changing settings to ANSI as default encoding I thought it fixed. And then it happens again when I made lot of changes and forgot to save before error.

  • Need help on Macro that prompts for number of rows to select

    13
    1 Votes
    13 Posts
    3k Views
    John MurrayJ

    You were right - that took care of it - and everything works perfectly now. Thanks a bunch Scott for hanging in there with me.

  • -1 Votes
    1 Posts
    2k Views
    No one has replied
  • Improve "Save all"

    Locked
    2
    2 Votes
    2 Posts
    1k Views
    Scott SumnerS

    @mpotra

    Not a bad suggestion I suppose…you may want to follow the advice here.

    You can have this functionality TODAY if you are willing to “script it”. The scripting plugins for Notepad++ are excellent. I tend to use Pythonscript; here’s some code for that which will implement a confirmation for Save All.

    Here’s SaveAllWithAreYouSurePrompt.py :

    def SAWAYSP__main(): if notepad.messageBox( 'Do you want to do a SAVE on all unsaved files?', # box body text 'Are you sure??', # box titlebar text MESSAGEBOXFLAGS.YESNO ) != MESSAGEBOXFLAGS.RESULTYES: return notepad.menuCommand(MENUCOMMAND.FILE_SAVEALL) SAWAYSP__main()

    You can remap the default Save All keyboard shortcut to run the script instead.

  • How to Share a Recorded Marco with others?

    7
    1 Votes
    7 Posts
    20k Views
    PeterJonesP

    Yes, of course. Sorry.

  • Accessibility of Notepad++

    13
    0 Votes
    13 Posts
    4k Views
    PeterJonesP

    The nightshaddow13 from the Jul 10 instance seems to have a situation that he can get it to repeat (I couldn’t replicate his results, but I haven’t switched to his exact setup)… but if he really can, and was willing to help, I wonder if someone could get him a debug build with dumping debug info to a log file: dump of all the settings (in case it’s snapshot on/off, remember session on/off, etc), as well as recording various internal function calls – if developers had a trace of the last few functions (or the last function that had enough time to flush the logfile to disk) that ran before the crash event, it might go a long way toward finding (and solving) the problem.

    I don’t have a build environment that would work for NPP, otherwise I’d try to find one of those rare Round Tuits™ to do the debug build myself.

    I’ll post here and (now that I think about it) in that thread, to see if there’s anyone who does have the right environment…

  • How to ascend numbers?

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    guy038G

    Hello, @ואב פתאל, @terry-r and All,

    As @terry-r said, regular expressions are not the best way when calculus is involved in the process. However, if the particular case, of all decimal numbers, beginning with the $ sign and ending with the string .99, is your case, a possible regex could be :

    SEARCH (\$.*?)((0)|(1)|(2)|(3)|(4)|(5)|(6)|(7)|(8))?(?=9*\.99)|(9)

    REPLACE (?{12}0:\1(?2:1)(?{3}1)(?{4}2)(?{5}3)(?{6}4)(?{7}5)(?{8}6)(?{9}7)(?{10}8)(?{11}9))

    Of course, the Regular expression search mode must be selected and, possibly, the Wrap around option

    So, assuming the sample text, below :

    Item $0.99 Item $1.99 Item $2.99 Item $3.99 Item $4.99 Item $5.99 Item $6.99 Item $7.99 Item $8.99 Item $9.99 Item $10.99 Item $11.99 Item $12.99 Item $13.99 Item $14.99 Item $15.99 Item $16.99 Item $17.99 Item $18.99 Item $19.99 Item $20.99 ... Item $39.99 ... Item $98.99 Item $99.99 ... Item $9999.99

    it would give, after global replacement :

    Item $1.00 Item $2.00 Item $3.00 Item $4.00 Item $5.00 Item $6.00 Item $7.00 Item $8.00 Item $9.00 Item $10.00 Item $11.00 Item $12.00 Item $13.00 Item $14.00 Item $15.00 Item $16.00 Item $17.00 Item $18.00 Item $19.00 Item $20.00 Item $21.00 ... Item $40.00 ... Item $99.00 Item $100.00 ... Item $10000.00

    Voilà !

    Best Regards,

    guy038

  • Save default installation settings for next install?

    Locked
    2
    0 Votes
    2 Posts
    902 Views
    Claudia FrankC

    @colonellocke

    I assume you get a better chance having this done by following this FAQ.

    Cheers
    Claudia

  • Is documentation available?

    3
  • Possible to Shell?

    3
    0 Votes
    3 Posts
    969 Views
    PeterJonesP

    And, FYI, some of those other “many ways” are mentioned in this other thread

  • Plugin, window selection

    Locked
    10
    0 Votes
    10 Posts
    3k Views
    Scott SumnerS

    @dail , @AZJIO-AZJIO

    I’m with @dail, I can’t make much of it either…I guess the language barrier is too wide.

  • Document List Panel ('Doc Switcher') Improvements

    Locked
    14
    1 Votes
    14 Posts
    7k Views
    AngryGamerA

    The reload is automatic in v7.5.6 or newer.

  • automaticly changing hex00 into hex20 - why?

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    guy038G

    Hi, @klauss-lehmann and All,

    Additional information to the excellent method of @meta-chuh :

    Firstly, contrary to any other character, you cannot insert NUL characters, either, with any of these 3 ways :

    Alt + nnn , where n are digits, pressed on the numeric keypad ( OEM encoding )

    Alt + 0nnn , where 0 and n are digits, pressed on the numeric keypad ( ANSI encoding )

    Alt + the + ( on Numeric keypad ) + hhhh, where h are hexadecimal chars ( UNICODE encoding ) :

    The letters, from a to f, typed on the main keyboard

    The digits, from 0 to 9, typed on the numeric keypad

    So, the only way is to use the Character Panel ( Edit > Character Panel ) and, then, to double-click on the first line 0 00 NULL in order to insert a single NUL character, at cursor location

    Secondly, the present regex engine of N++, can handle the NUL characters in search, without any trouble, using the regexes :

    \0 or \x00 or \x{00} or \x{0000} or \N{NUL} or \c@ or \c

    Unfortunately, in replacement, there’s, indeed, no mean to insert a NUL character :-(( A work-around is possible, using a local installation of N++ v6.9.0 and a modified version of the Scintilla library ( SciLexer.dll ). Refer to LAST part of this FAQ post :

    https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation/1

    Best Regards,

    guy038

  • 0 Votes
    4 Posts
    2k Views
    Vitaliy DovganV

    …and also:

    manual