Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • CoisesC

      Search++: A work in progress

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      48
      5 Votes
      48 Posts
      2k Views
      CoisesC

      @guy038 said in Search++: A work in progress:

      Regarding your point #2

      You began with :

      Mark commands that don’t specify a scope …

      Are we agree that you’re speaking about the Mark Before and Mark after options ONLY ? Presently, as you said, these two commands, not restricted to a scope, search throughout all file contents.

      It applies to the plain Mark command, too. If there is a non-empty selection (that’s “large enough” per Settings), Mark will perform Mark in Selection (not possible for Mark Before and Mark After). But none of the three will perform Mark […] in Marked Text; that has to be selected explicitly. The same isn’t true for Select; if there is an existing selection (large enough), Select will perform Select in selection. What I was thinking is that perhaps this difference between Mark and Select should be “explained” by having an additional setting for each action, enabled only when Automatically search within {selections | marked text} is checked, that controls whether the matching command is an exception (that is, Select doesn’t perform Selection in Selection, or Mark doesn’t perform Mark in Marked Text). The current behavior would have the “except Select” box unchecked and the “except Mark” box checked.

      It comes down to: What do you want to do when you say Select and there’s already a selection, or you say Mark and there’s already marked text? Do you replace the existing selection or marks? add to them? or search within them?

      And when I put it that way… I have to think this through some more. From a user’s perspective, the Settings I have are too difficult to figure out. I’m having trouble getting a clear picture of what settings make sense with what other settings and I wrote the damn thing. :-(

      Now, as expressed in your very last post, I do support your idea to avoid any command, containing Before or After, that do not include a scope ( in Selection, in marked Text and in Whole Document ). Thus, that should solve automatically this problem ;-))

      It would get rid of some of the problem, but not all of it. Where I’m stuck is that I really want there to be “adaptive” commands (the plain Count, Find All, etc.) that recognize when the user would want to search in a selection or in marked text, so they can be the one-click action on a button. Alas, there’s that fundamental design flaw in all computers thus far produced: the RUM (“read user’s mind”) instruction was never implemented. It could be that making an appropriate guess is hopeless. But I really don’t want an oversized, cluttered interface with a matrix of 20 buttons, and I really don’t want users to have to select operations they use often or repeatedly from button menus. So, at least for a while, I’m going to keep trying.

      I appreciate your feedback on these issues very much. Anything you, or anyone, can tell me about what works smoothly and what is difficult to use or doesn’t work as expected is helpful.

      Now, enter the regex (?si) 1.+?(?=^\R) in the Search dialog

      Click on the ▼, after the defeautl Find All option

      Run the Mark > Mark in Whole Document option

      => Message : Marked 4 matches

      Now, with the (?si) 1.+?(?=^\R) regex still present in the Find dialog

      Run the Mark > Mark in Marked Text option

      => We get the message No matches found in marked text. Is this coherent, @coises ?. To my mind, I was expecting the message 4 matches in marked text !

      I did document this, but it’s easily missed:

      For a regular expression search, each run of marked text is searched independently; the search in any span of marked text cannot “see” outside that span. This affects the behavior of assertions (including word boundaries, lookaheads and lookbehinds, ^ and $).

      The search in Columns++ has the same limitation. I couldn’t figure out a practical way to make it work other than this way.

      Regarding the Remove marks from all open documents and Remove marks from documents in this view options, in the Tools dialog :

      Could you move them to an other place of the Tools dialog, in order to not be close to the Remove marks from active document option, that we’ll probably use more often ?

      OR :

      Could you add a confirmation dialog for these two specific options ?

      I will work out something so they won’t be easily clicked by accident.

    • S

      PythonScript: "New Script" not shown

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      0 Votes
      6 Posts
      233 Views
      mpheathM

      @snafu423

      I installed PortableApps v30.3 with Notepad++ v8.9.3 into a virtual machine to test.

      The directory path expected from your Debug Info path for the scripts would be:

      C:\_shared_apps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\scripts

      This is the output from running UserInfo.py from my testing:

      # All paths listed in sys.path: C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript\lib C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\lib C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript\scripts C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\scripts C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript\lib\lib-tk C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript\python27.zip C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\DLLs C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\lib C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\lib\plat-win C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\lib\lib-tk C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64 C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript\lib\site-packages # Can make user dirs: C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\lib # Can add user scripts to the path: C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\scripts # Can add user startup.py with this path: C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\scripts\startup.py # Startup method: Undefined # Can add user libraries for importing to the path: C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\lib # Can view documentation in this path: C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript\doc

      Installed PortableApps to C:\PortableApps so the name looks doubled.

      It looks similar with the sub directory paths of the portable Notepad++ from Github.

    • 一荣孤怪一

      奸叛国者,必万斩之

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      7
      -1 Votes
      7 Posts
      1k Views
      Lycan ThropeL

      @Fii-Ert ,

      815
      我之前的评论依然有效。你那些显而易见的人身攻击,暴露了你在辩论中缺乏诚信;而你那种以为对手除了你们党派灌输的那些教条之外便对外部世界一无所知的臆想,更是与事实相去甚远。你可以试着去蒙骗那些涉世未深的人,但请把你的那一套宣传留给你该留的地方——也就是你那充满倒退色彩、妄图称霸世界的“中国梦”里去吧。

      如果你除了那些含糊其辞的陈词滥调和人身侮辱之外别无他物,那么中国人民当真是彻底迷失了方向,永远无法摆脱自我膨胀的桎梏,更无法拥有超越眼前狭隘视野的眼光。请你再消失个四年吧。我确信,贵国对外部网络的封锁或许是你这四年间音讯全无的部分原因,但这四年过去,你既没有变得更加清醒,也没有变得更加博学。好自为之吧,我们的对话到此为止。

    • donhoD

      All the off-topic go here

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      8
      3 Votes
      8 Posts
      6k Views
      guy038G

      Hello, @datatraveller1 and All,

      Many thanks for joining the Compare2Lists’s author and many thanks to Fatih Ramazan Çıkan which was able to get a quick new 1.7 version which fixes this annoying bug !

      I also tried this software on that real example that I proposed in this post, some days ago :

      https://community.notepad-plus-plus.org/post/105031

      You can download this file from my Google Drive account :

      https://drive.google.com/file/d/1aYOpKon4KYw_NXSdj4Tm4Ti_FrygC2ky/view?usp=sharing

      Before using it with the Compare Two Lists software :

      Delete the last column, which counts the number of records, with a column mode selection

      Delete all trailing blank characters with the Edit > Blank operations > Trim Trailing Space option

      Place all contents in the clipboard ( Ctrl + C )

      Now, open the Compare Two Lists software

      Paste all the resulting contents with the Paste button, associated with the List #1 panel

      Check that the Settings > Cas sensitive option, if necessary

      Click on the Remove Duplicates button, associated with the List #1 panel

      => You should see that it remains 50,822 records

      And this is exactly the results produced when you use the cases #3 or #4 of my post ;-))

      Best Regards,

      guy038

    • Phil ShearerP

      Download Status Page Out of Date

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      190 Views
      PeterJonesP

      @Phil-Shearer said in Download Status Page Out of Date:

      I’ll just ignore the report for now and hopefully it will all be good again in a week or two.

      … or you could go to the official download site at https://notepad-plus-plus.org/downloads/v8.9.3/, and get the v8.9.3 installer manually, rather than waiting for it to be triggered for auto-update. But it’s up to you.

    • CoisesC

      A question about dark mode, plugins, and an owner-draw ComboBox

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      3
      0 Votes
      3 Posts
      142 Views
      CoisesC

      @rdipardo said in A question about dark mode, plugins, and an owner-draw ComboBox:

      Try passing the control’s handle to the ::SetWindowTheme function provided by the uxtheme header, using L"DarkMode_CFD" as the pszSubAppName; to restore light mode, call it with the same arguments, but change pszSubAppName to a null pointer.

      Thanks, Robert. At first attempt, this doesn’t appear to solve the problem.

      The colors are right with just NPPM_DARKMODESUBCLASSANDTHEME; the problem is that the static control shows unknown text instead of the selected drop-down entry, and attempting to select from the drop-down produces bizarre highlighting and tracking instead of what is expected (and still doesn’t set the static control). Adding the SetWindowTheme call doesn’t change that. Removing NPPM_DARKMODESUBCLASSANDTHEME, of course, makes everything else light, and for the control in question, SetWindowTheme only seems to change the drop-down chevron. Interestingly, NPPM_DARKMODESUBCLASSANDTHEME does get all the colors right, including in the owner-drawn drop-down; it just breaks the functionality in the process.

      The problem goes away entirely if I remove the CBS_OWNERDRAWFIXED style (but then, of course, it doesn’t display as intended, showing the color associated with each indicator that can be selected). That’s why I feel like the problem is most likely to do with the sub-classing. I can’t find any clear documentation on how all that works. I don’t even know why the controls are being sub-classed, and not just themed. Maybe there is a way to exempt that control from sub-classing, and do whatever it is that the sub-classing does in my own code?

      A pointer to actual documentation on this design, how it works and how it is meant to be used would be wonderful, but I’m guessing no such thing exists. :-(

    • Cmykmust668C

      傻逼软件吧 中文按钮放的什么国旗

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      24
      0 Votes
      24 Posts
      25k Views
      Fii ErtF

      @bwisely
      Religious freedom?
      You mean NaZi freedom.

      什么宗教自由?根本纳粹自由。
      记不记得40%当时胜选总统的时候多猖狂,大叫在野党「输不起」。
      结果呢?自己选输立法院,输不起,违法在选举结束之后不到一年之内,开始大罢免。

      操纵司法,操纵媒体舆论,为了掩饰自己贪污,诬蔑柯文哲贪污。
      迫害政敌,活活逼迫某夫人跳楼自杀。

      大罢免大便32比0,一席也没罢掉,倒是苛贱民下台滚出立法院了,真是大快人心,活该自找,天谴报应。

      一场大罢免,世界级闹剧,白费公帑12亿不说,某网红甚至自己承认自己「模仿希特勒」,组织冲锋队。

      你们根本不知道,也没有所谓「宗教自由」,有的只是「信仰邪教的自由」。谁不信邪教,谁就该死;谁敢批评执政党,谁就被肃清迫害。

    • Phillip WentzP

      NppCrypt Plugin Not Installing

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      8
      0 Votes
      8 Posts
      2k Views
      PeterJonesP

      @Murray-Sobol-1 ,

      The links you pointed to were to the old 2017 pre-Notepad++-7.6 “Plugin Manager” plugin’s plugin-list. (There used to be a plugin which handled installing/uninstalling plugins in Notepad++. In v7.6, that was integrated into the core Notepad++ code, so that Don could make sure that the Plugins Admin always stayed compatible with Notepad++, rather than relying on a third party for such an important feature.) For nearly a decade, https://github.com/notepad-plus-plus/nppPluginList/ has been the home of the official list of plugins that gets shown in Plugins Admin.

      @pierrecoach ,

      More on the disappearance of NppCrypt and its repo can be found in this NppPluginList issue. I won’t re-iterate the details, since you can read them there if you are curiuos. But I will say that it looks like @chcg is going to try to resurrect the plugin from archives of the original source code; but it might take him some time. Until then, I’m not sure that any of the links given have any compiled DLL available. Hopefully, you don’t have any critical data that was encrypted on some other machine, that you need to decrypt with the plugin on this new setup. If you do, let us know… (Actually, if you do: do you also have access to the old machine? If so, you can copy the ...\notepad++\plugins\NppCrypt directory from the installation on that machine, and put it on your new machine.)

    • Joe 0J

      Archive of Notepad++ versions

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion archiving
      4
      0 Votes
      4 Posts
      194 Views
      PeterJonesP

      @George-0 said in Archive of Notepad++ versions:

      I checked this link but it is not that relevant.

      Why do you think that? The README that @Murray-Sobol-1 linked to starts with,

      You can find all the old Notepad++ releases - from the very first version 1.0 up to v6.9.2 - here

      That’s 100% relevant to the original question “does any people have an notepad++ installers from version 1.0-4.x.x?”

      And if you then follow the link in that README to the Releases page, there are a few pages of releases. The first page has all the v1 installers/downloads, all the v2 installers/downloads, all the v3 installers/downloads, all the v4 installers/downloads (split into groups), and all the v5 installers/downloads (split into groups). And clicking to the second page gives all the v6 installers/downloads (split into groups). If that’s not relevant, then there is no answer to the original question that is relevant. Fortunately, it is obviously relevant: I was quite happy that the Developer listed to the feedback of the users, and re-published all those old installers so that people can still go grab the older copies of the application. He didn’t have to, and I appreciate that he did.

    • R

      No-save buffer, for log barf I don't want to save

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      57 Views
      PeterJonesP

      @robstoddard ,

      Personally, I just have a file named Peter's Scratchpad.txt that’s always open, where I paste things like that (and, admittedly, things that started like that but have just stayed around in that file for a lot longer than originally intended). And if I save the “temporary data” in the file, who cares? I just delete the stuff out of the file that I don’t need anymore when I don’t need them anymore. That way, I can just Save All or use the Auto-Save plugin as much as I want, without having to ask for a specific feature to “not save this one thing”.

    • 周学习周

      傻逼软件,傻逼作者,傻逼呆湾人

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      4
      -1 Votes
      4 Posts
      1k Views
      Lycan ThropeL

      @Fii-Ert said in 傻逼软件,傻逼作者,傻逼呆湾人:

      傻逼歹丸郎,大罢免大失败,柯建铭下台了,32比1🥳👍🎉
      只要中国不干涉台湾,我就完全不在乎台湾人民为自己选择何种内部政治体制——除非这种体制遭到了中国的干涉。那样的话,问题就大了。

    • D

      Showing EOL characters

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      105 Views
      PeterJonesP

      @DougB-MFY ,

      Not exactly, but you might get “close enough”

      With keyboard+mouse, the shift+scrollwheel would allow you to horizontally scroll without clicking (but having to use the scrollwheel isn’t truly “keyboard”) [END] [space] [backspace] seems to work for me, but it introduces a “fake edit” to get it, so that might annoy you

      One of those might be “close enough” for you. But there isn’t a keystroke that does it on its own

    • CletosC

      Notepad++: Lost all open txt files and left panel after restart – how to recover them?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      108 Views
      PeterJonesP

      @Cletos ,

      Depending on what version of Notepad++ you were running, and what’s happened since you last opened Notepad++:

      Exit Notepad++ Use Windows Explorer to go %AppData%\Notepad++ You will have session.xml and hopefully a file called session.xml.inCaseOfCorruption.bak . Rename session.xml to session.after.xml Rename session.xml.inCaseOfCorruption.bak to session.xml

      Depending on the state, and how little you’ve done since you had the problem, and what version of Notepad++ you are running, that backup session might contain the ~100 txt files.

      If not (if there’s no session.xml.inCaseOfCorruption.bak , or if the copy there was written after your session got messed up), there is nothing we can do for you, as the backup session isn’t there. (Hopefully, those 100 txt files were all real files, not new 1 … new 100 with no saved changes ever – if they were, you can look in the backup subdirectory, but again, no guarantees the files are there).

    • rinaldi6109R

      Can't change backup path under Settings->Preferences->Backup->Session snapshot and periodic backup

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      22
      0 Votes
      22 Posts
      37k Views
      PeterJonesP

      As a reminder to all readers of this Topic, the Community Forum is “The Community of users of the Notepad++ text editor”, as it says in the footer of every single page here (emphasis added). As such, this is just users, talking about Notepad++ and helping each other other. Feature Requests are not tracked here. So all of these “I cannot believe it’s still this way” are effectively just complaining to other users; if that’s theraputic to you, fine; but it won’t tell the developer how many people are interested in that feature being implemented, so it’s just spitting in the wind, so to speak.

      We have a FAQ that explains where the Feature Request tracker is. And you could search there (in both open and closed requests) if you want to find the official issue(s) tracking such a request, and see how the developer has responded to such requests, if at all.

    • D

      I don't want grouped files when I open the download folder in Windows 11.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      87 Views
      PeterJonesP

      @Diederik858 said in I don't want grouped files when I open the download folder in Windows 11.:

      When I open the file explorer from Notepad++, I don’t want to have grouped files (day, month, etc.).

      When you open the file explorer from Notepad++, you are being directed into a Windows application, the Explorer. And, as such, it follows the Explorer settings for how any individual directory should look. It is exactly identical to you using Windows’ Win+R key and launching explorer "%UserProfile%\Downloads"

      As such, you would change the Explorer settings for the Download directory the same way you would from any explorer window (Explorer’s Sort > Group By > (None)) – but this isn’t Notepad++ advice, this is general Windows advice; as such, a Notepad++ forum isn’t the best place for further discovering Windows Explorer features.

    • donhoD

      Notepad++ release 8.9.3

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      5
      6 Votes
      5 Posts
      4k Views
      donhoD

      @xomx said in Notepad++ release 8.9.3:

      v8.9.3 (Scintilla) EOL regression: #17920

      Thank you for the heads up.
      It’s indeed a regression, but not a critical one.
      Let’s wait one more week, if no critical regression or issue is reported, the auto-updater will be triggered for the release v8.9.3.

    • JAKJ

      How to compare 2 text files and delete duplicates

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      13
      0 Votes
      13 Posts
      886 Views
      guy038G

      Hi, @jak and All,

      Refer to this post :

      https://community.notepad-plus-plus.org/post/105114

      BR

      guy038

    • Kevin HemkenK

      Add line of text to beginning of multiple files

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      25
      0 Votes
      25 Posts
      33k Views
      Amelia MendouzaA

      @Claudia-Frank

      Some seven years later: exactly my query too. Many thanks. 😊😊

    • Mark OlsonM

      JsonTools v5.5. is live!

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development json jsonviewer plugins
      23
      7 Votes
      23 Posts
      23k Views
      Mark OlsonM

      JsonTools v8.5 is now available on the plugin manager for Notepad++ 8.9.3. The main change is that ANSI-encoded documents containing non-ASCII characters can now be parsed correctly.

    • h-jangraH

      NppVim 1.13.0.0 : g motions i.e. g?, gd, ga, g_ etc

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      1
      1 Votes
      1 Posts
      41 Views
      No one has replied