• Save "Find what" and "Replace with" in Notepad++

    10
    1 Votes
    10 Posts
    10k Views
    gromexeG

    Why not just save a user-defined dictionary of all your codes in any format you think is best.

    I use one where I save all my codes each accompanied with headers so i can find what I need easily, like:

    1 ⁣ ⁣ ⁣#Tags: beta,query,inventory,report,qoh,stock
    2 ⁣ ⁣ ⁣#Language: MySQL
    3 ⁣ ⁣ #Date: 3/26/18
    4 ⁣ ⁣ ⁣⁣#Code:
    5 ⁣ ⁣ ⁣[
    6 ⁣ ⁣ ⁣SELECT * FROM table
    7 ⁣ ⁣ ⁣]

    And if I was to add a search and replace code to this personal library…

    ⁣ ⁣ ⁣8⁣ ⁣ ⁣ ⁣#Tags: search,find,replace,query
    ⁣ ⁣ ⁣9 ⁣ ⁣ ⁣#Language: Regular Expression
    10 ⁣ ⁣ #Date: 3/26/18
    11 ⁣ ⁣ #Code:
    12 ⁣ ⁣ [
    13 ⁣ ⁣ Search= [-·•…:_,~..\s]{3,}
    14 ⁣ ⁣ Replace= null
    15 ⁣ ⁣ ]

    You can be more detailed than that, but once you find out what works best for you, adding changes to your “Dictionary” or “Library” of codes can get really simple. You can define any keywords you want for the headers and whichever open/close characters separating the code blocks from each other. In my chicken scratch example,I can customize the language to either separate each block by the first bracket to the last bracket or the first hashtag to the last bracket. I’m not too sure about the code folding since I don’t really use that, but I would imagine that is possible.

    I also noticed that if you use a tag system like in my example, it would be very difficult to find what you need if you have thousands of code blocks with similar tags. And you can do a regexp find lines that contains all words, but that would just void the purpose of you having to type regular expressions every time. So like I said, you can be more detailed than my example, you can use a naming convention like “regex-find-name” where name is a word or phrase you’d give that function. You could also build your dictionary in a different format that makes searching for multiples words on the same line much easier. A bad recommendation would be excel, but that’s the simplest method I can think of. Write the dictionary in a csv format and run a saved formula to check if all words exist on the same row. But if you have the time, build yourself a small desktop tool with all these functions to build and search your dictionary. Create forms to add to it, search and modify or remove definitions. There’s gotta be a program for this already no!? A personal and highly customizable dictionary?

  • Bug - Document Map displays the same as window.

    2
    0 Votes
    2 Posts
    1k Views
    gromexeG

    That’s odd. It doesn’t look like this?

    https://postimg.org/image/6smmn0p1j/

    You have to upload a screenshot somewhere and paste a URL using that “chain” link icon above the text composition block.

  • functionList.xml CSS

    Locked
    3
    0 Votes
    3 Posts
    2k Views
  • Can we copy the text with colours?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Vitaliy DovganV

    Plugins -> NppExport -> Copy RTF to clipboard.
    And then paste e.g. to OpenOffice Writer.

  • Feature Request: functionList.xml - Add Label

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    MAPJe71M

    Maybe one of the bookmark plugins is of use to you i.e. Bookmark Manager, Named bookmarks.

  • 0 Votes
    1 Posts
    690 Views
    No one has replied
  • Does install option "Don't use %appdata%" actually work in v.7.5.6 ?

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • v7.5.6 can't find XML Tools Plug In?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Compare Files

    5
    0 Votes
    5 Posts
    16k Views
    Claudia FrankC

    @Scott-Sumner

    :-D

    Cheers
    Claudia

  • 0 Votes
    1 Posts
    888 Views
    No one has replied
  • 0 Votes
    2 Posts
    2k Views
    gwarahG

    According this npp manual, no.

    A possible approach to this issue is use send keys tools, it can open npp with the file and then send the shortcut keys to set tel tail -f module.

    By the way this question give me a idea to request a cmd line key like this /macro=myMacro and will be possible extendo the npp processing including solving your problem.

  • Feature Request: "Yes to all button" when reloading modified files

    8
    2 Votes
    8 Posts
    5k Views
    Scott SumnerS

    @Irfan-Sheikh

    For sure a workaround, but holding down Alt+y (to answer “yes”) until all of these popups are closed could ease your annoyance. Maybe. :-)

  • Please Update 'getDownloadUrl.php'

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    AngryGamerA

    This is very much intentional. These releases are basically release candidates for a week or so. If no major bugs are found, then it’s pushed onto the auto updater. The v7.5.5 release never made it to the auto updater due to a crashing issue with macros. I suspect v7.5.6 is stable enough and will be on the auto updater in due time.

  • Can't Specify Selected Text Color

    Locked
    2
    0 Votes
    2 Posts
    1k Views
  • Feature Requests

    Locked
    1
    1 Votes
    1 Posts
    706 Views
    No one has replied
  • TwoDark Theme

    Locked
    4
    3 Votes
    4 Posts
    12k Views
    Claudia FrankC

    @Scott-Sumner

    :-D, nice idea, so I post the pull request as pictures LOL…
    Not sure if Don and the other code contributers/maintainers would
    love this idea as well.

    It is just one of the examples/tests I write for the PS 64bit port.

    Cheers
    Claudia

  • Notepad++ 7.5.4.0 crashing

    Locked
    7
    1 Votes
    7 Posts
    2k Views
    Yedda RileyY

    Any document.
    I have reinstalled the program. The problem is solved. Thanks

  • High rankings for NP++ in Stack Overflow survey!

    Locked
    1
    0 Votes
    1 Posts
    741 Views
    No one has replied
  • Saving a file with the same name as a folder

    Locked
    1
    0 Votes
    1 Posts
    711 Views
    No one has replied
  • Bug when deleting folded text

    Locked
    2
    1 Votes
    2 Posts
    1k Views
    Vitaliy DovganV

    Confirming, it is reproducible in Notepad++ 7.5.4 and even in 7.5.1.