• Marked text manipulation

    General Discussion
    54
    1 Votes
    54 Posts
    61k Views
    CoisesC

    @chk1 said in Marked text manipulation:

    Right now, with help of the script, I open the Marks search (Ctrl+M), enter my search term and press “Mark all”. Then I run the script to convert all marks to multi-edit selections. I want to reduce these extra steps if possible, i.e. in the best case: Ctrl+F, enter search word, hit Alt+Enter.

    It might not be worth it for your case, but the Search dialog in the Columns++ plugin has Select All as an option on the dropdown menu on the Count button.

    You can assign a shortcut to Columns++ | Search in Notepad++ shortcut mapper; but at present, there is no straightforward way to open the Count button menu using only the keyboard.

  • h1's in function list for navigation

    General Discussion
    5
    0 Votes
    5 Posts
    3k Views
    MJKlodt747M

    @PeterJones, that works for me. Thanks!

  • Plugin request: insert relative path

    Notepad++ & Plugin Development
    10
    0 Votes
    10 Posts
    6k Views
    ?

    Has anyone here found how to open those relative path links from within the Notepad++ file, in their default app ?

    That would make the solutions listed here even more useful IMO; one could have for instance have the documentation of a project in simple text files.

    Opening the links at either double-click (better, & underlined) or some other action.
    I’ve requested the feature on github https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16942

  • 0 Votes
    28 Posts
    12k Views
    NebojshaN

    @xomx said in Unable to see Data in the Notepad++:

    I’d like to ask the affected users here, for which switching the DirectWrite OFF helped - what OS, graphics card and version of its drivers are they using?

    E.g. post: Windows 10, Nvidia GeForce xyz, 2/24/2023 30.0.14.7430

    (you can find such info e.g. by WinKey+R, type there devmgmt.msc -> OK, and check the Display Adapters > doubleclick on an adapter > Driver tab)

    Win 11, VMware SVGA 3D, 4/28/2023, 9.17.6.3
    Win 11, Microsoft Remote Display Adapter, 6/21/2006 10.0.26100.4484

    Accessing a VMware virtual machine via Remote Desktop Connection (RDP)

  • 0 Votes
    3 Posts
    178 Views
    PeterJonesP

    moderator fixed image in the original conversation; continue discussion there

    LOCKED THIS SECOND DISCUSSION
  • 0 Votes
    6 Posts
    282 Views
    PeterJonesP

    @Danie-Bosman,

    I used moderator powers to fix your embedded image.

    Are the arrows indicatiing Tab characters, or merely indicating where the indents are?

    Your drawn red arrows are the View > Show Symbol > Show Indent Guide indicators. They show up whether you are set to spaces or tabs, so it won’t help you determine which you are set to.

    OTOH, the related View > Show Symbol > Show Space and Tab do show spaces vs tabs:

    126dc4bb-05c5-4be7-aa93-20a8ffd5e33a-image.png

    As @Alan-Kilborn said, the long right arrows are tab characters, the mid-dots are space characters.

    Unfortunately, your screenshot did not include enough information to tell what language your code is in. Like I said, the screenshot needs to include the status bar to show us that, and you cut it off before the status bar. Your language looks vaguely VisualBasic-like, but that’s just a guess. (Though it’s confusing to me that your tab name claims *.txt, but it’s syntax highlighted like code; have you associated .txt with something other than normal text?)

    Anyway, whatever language it’s set to, whether you are willing to show the status bar or not, assuming you can read the status bar yourself, or can look in the Language menu to determine what language is active for syntax highlighting your .txt file with code, you need to click on that language’s entry in the Indent Settings box that lists all the languages, and see what the Indent Using is set to for that language: see whether it’s set to Use default value, in which case it will follow the [Default] settings you show in you screenshot; or it might not have that set, and instead have its own, like Makefile does:

    Examples comparing my settings for Visual Basic with Use default value vs Makefile with its own set to use tabs:

    Visual Basic 1e2784be-9137-4be5-9b25-e49554bfbb19-image.png Makefile 2ec29bcd-b77d-4519-9876-c610152b64fa-image.png

    update: But given your indication that you seemed to think the guidelines were tab characters (which they aren’t, necessarily), then my guess is that you were just misinterpreting what you were seeing, and this whole time, you really do have spaces where you thought it was still inserting tabs. Again, View > Show Symbol > Show Space and Tab will show you definitively and unambiguously whether the characters are spaces or tabs.

  • 0 Votes
    9 Posts
    39k Views
    Antheds KennelA

    @Mark-Olson Thanks for the help, I’ll try it when I get back from vacation. Kind regards Thore

  • 0 Votes
    3 Posts
    129 Views
    jabcreationsJ

    @PeterJones Thank you Peter, that seems about right. I was able to find and clear the keyboard shortcuts (Settings --> Shortcut Mapper for others who don’t know offhand).

  • 1 Votes
    25 Posts
    8k Views
    CoisesC

    @PeterJones said in npp v8.6 reverses the order of lines on column copy/paste:

    Unlike @Coises , I don’t consider it a “feature” (ie, a bug masquerading as a feature), I think it’s a reasonable compromise between all the different opinions on what the “right” behavior should be when mixing between column and multi-select mode.

    I agree — perhaps the scare quotes were a bit excessive. For certain, it’s intended behavior; it was never a bug that was presented as a feature to avoid dealing with it.

    I think that for users like me, who use rectangular selections frequently and multiple selections rarely, the improvements to multiple selection in the early 8.x releases felt like a degradation in user experience. Some of that has been mitigated by the Multi-Editing options (though, for example, turning off the ability to create multiple selections when you do want them is an unfortunate trade-off for not breaking normal drag-copy conventions… but if I recall correctly, that binary choice is baked into Scintilla, so it would be fragile at best for Notepad++ to attempt something different).

    I imagine it appears exactly reversed to people who use multiple selections often and rarely want rectangular selections: they probably wish the distinction could be eliminated so they didn’t have to keep track of different behaviors when a rectangular selection hasn’t been changed to a multiple selection.

  • 0 Votes
    3 Posts
    378 Views
    Mark D Worthen PsyDM

    @PeterJones Thank you for explaining everything so well. I really appreciate it. All the best - Mark

  • 0 Votes
    2 Posts
    136 Views
    Alan KilbornA

    @Michel-Merlin

    You can customize the right-click context menu for your own use; consult the user manual (found via the ? menu in Notepad++) for details on how.

  • 1 Votes
    4 Posts
    315 Views
    Terry RT

    @Prelle said in Window loses focus a few seconds into typing after update to v8.8.3 - Windows 11:

    i don’t know that any specific window gets focus

    I did a quick check (and test). If the status bar in Windows doesn’t indicate which window is active by colouring the icon for it differently, then use the Alt + tab key once and hold the alt key down. The window which appears should show open windows. The one highlighted is now the new one, and possibly the one to the left is what was the active window before hitting the alt + tab key.

    I’ve never had the “always on top” option in use, so I don’t know what the ramifications are for it in operation.

    Terry

  • 0 Votes
    2 Posts
    165 Views
    mathlete2M

    @pbarney some plugins have separate settings that are stored in their own INI files - you can find these files in %appdata%\Notepad++\plugins\config. I don’t know if the cloud feature extends to these files, but if so, it’s possible that you have to add these files to your cloud manually. If they are already there, try comparing the files on your cloud to the ones on your local machine to see what might have changed.

  • 0 Votes
    2 Posts
    224 Views
    CoisesC

    @The-Hitman:

    Exactly what you’re asking — to highlight all the text following the equals signs and then sort on that — is, to the best of my knowledge, not possible. Since the equals signs don’t line up, you’d be creating a multiple selection rather than a rectangular selection, and the sort functions don’t work on multiple selections. So even if you got your selection, you wouldn’t be able to sort it.

    However, there are ways to accomplish what you want. One thing isn’t quite clear to me: in your example, both the numbers in brackets after the capital Ms at the beginning of each line and text to the right of the equals signs are in ascending order — but presumably, if you need to sort, the text parts don’t start out in ascending order. Do you want to sort the text part of the lines only, so that the numbers stay in order and the text gets associated with different numbers? Or are the numbers supposed to move with their associated text, so that the text will be in order but the numbers will no longer be in order?

    Either way, it can be done without too much difficulty. The key step is to temporarily right-justify all the numbers, so the equals signs line up:

    M[ 97]=DM-Elysium:1 M[ 98]=DM-Enemyatthegates:2 M[ 99]=DM-EternalWinter:2 M[100]=DM-FactoryTown:3 M[101]=DM-Fastfood:1 M[102]=DM-FAT-Musashi][:2

    You can do that by creating a zero-width column selection in front of the numbers from 10 to 99 and typing a space, and similarly adding two spaces before the single digit numbers; or you can use regular expression replacement to add the blanks. (With either method, you could also add zeros instead of blanks if you like those better.)

    You might not know how to do either of those things. If you don’t, please first try reading the sections in the online manual titled Selection modes & Column Editor and Regular Expressions. (Sorry to be indirect about answering your question, but these are basic skills for using Notepad++ effectively. It is worth learning how these things work so you’ll know how to solve other problems in the future.)

    Once you have the equals signs lined up, you can create a zero-width column selection just after the equal signs and use one of the sort commands to sort the result. (If you wanted the numbers to stay in order rather than move with the associated text, just use Edit | Column Editor… to renumber after sorting.) Then use regular expression replacement to remove the unwanted blanks.

    There is an alternative method, using the Columns++ plugin which is available in the Plugins Admin. Custom sorts in Columns++ allow you to specify a regular expression which matches the sort key in each line; so, instead of manipulating the lines to line up the sort fields, you’d use an expression like =.* to identify the sort key. Unless you already have that plugin installed, this would probably be more complicated for your case than the method described above, but it is an approach that could be useful in similar but more complex cases (or for those who already use that plugin).

  • 0 Votes
    3 Posts
    117 Views
    Alex HlebnikA

    @Coises Joo! Thank you! It’s work!
    Case is closed

  • 0 Votes
    8 Posts
    2k Views
    Lycan ThropeL

    @PeterJones ,
    I have this love/hate thing when using auto correct systems (Android for example) versus autocompletion and it types a completely different word than I intended because fat fingers hit the wrong key on the mini screen keypad. :-(

  • 0 Votes
    5 Posts
    277 Views
    Lycan ThropeL

    @PeterJones ,
    This is the hardest part of doing the UDL’s I think. Even after we’ve done the original dBASE UDL you helped with, I’m finding that doing the earlier versions now, and fine-tuning the keywords, operators and the nesting precedents was the most confusing and finer control over the language. Doing the earlier versions I’ve figured out how to keep an apostrophe, from screwing up my code highlighting, while still keeping it as a delimiter by simply NOT allowing it to be included in the other delimiters nesting options. In turn, dBASE also has a JSON object, and with a little fine tuning, I was able to make the delimiters in dBASE also work to outline a JSON structure, so far. If there are other options in a JSON structure I’ll have to learn that as I go, but for now, the simple W3C version showing it, it works right, as well as the dBASE delimiters without messing things up.

    Obviously a quick UDL is possible with just the categories to put things in, but I’m finding that the real power of the UDL system is in the finer use of the mechanisms like the nesting, differentiation of forward search/backward search, prefix mode, etc works much better when combined to get a desired result. It’s actually much more powerful than I originally figured. I wish I’d had a good explanation/example like you’ve done, back then…although, with so much to include to make a UDL almost a complete language system, it would have probably been too much to absorb at the time and would not have availed me much improvement at the time. It’s something that requires a lot of trial and error and understanding of the mechanisms and time playing with it, I think, to get things just right, if it’s at all possible to do. :-)

  • 1 Votes
    36 Posts
    17k Views
    K

    I’ve experienced something similar - Notepad++ will begin to occasionally corrupt files when I try to save them to a network drive. I can tell when it’s going to happen because it will not respond “not responding” for about 5-10 seconds, then display that error message. And it corrupts the file!!! When I’m heavily coding, this happens constantly. I have to make back-up copies constantly since it WILL corrupt the files! Extremely frustrating. This has only started being a problem within the past 2 ? updates.

  • 0 Votes
    4 Posts
    374 Views
    A

    @BrenMar

    Are you using Comodo AV by any chance?

    If so, add Notepad++ to the HIPS section as an ‘allowed application’.

    I normally get a pop-up asking to do that, but for versions 8.8.3 and later this wasn’t happening.

    Hope this helps.

  • 0 Votes
    3 Posts
    227 Views
    Dimitris TheocharidisD

    @Alan-Kilborn nice one, yes, it can be done just to read, and to have the line number of the original file. I guess, it is the only way, but not a very convenient one, because links are lost, and it becomes absolutly manual… Thank you for answering!!!