• Problems with opening files for editing

    Locked
    1
    1 Votes
    1 Posts
    558 Views
    No one has replied
  • Turn On/Off AutoUpdate for individual tab ..

    Locked
    4
    1 Votes
    4 Posts
    2k Views
    bnoteB

    @Claudia-Frank

    Sorry for leading apostrophe,
    but I can’t turn-off Markdown formatting (that is strange) on whole big block… :((

    ’ I did some little tests on your advice. Thank you once more :)

    ’ The results are:
    ’ - Both features interferes with each other, however
    ’ - Monitoring overrided Auto-Update and
    ’ - There is no necessity to turn off Auto-Update
    ’ So, the Monitoring is similar to Auto-Update with turned-On both of its -Silent & -Scroll options, but applied to individual tabm but it is the only…

    ’ However, It’s the step forward already - The Monitoring :)
    ’ But it is the palliative only :(

    ’ My goals are to have file changes monitoring feature, but with the following properties:
    ’ - do not move focus on the tab, where changes was happened, but …
    ’ - … mark the tab with any way to attract the user’s attention;
    ’ - avoid of popupped message boxes;
    ’ - if message boxes are need yet, then to make their behavior more intelligent (focus, default button, position), when we have many of them;
    ’ - optionally avoid scrolling.

    ’ All of this targets (except scrolling) are easy achieved by the only & single feature:
    ’ - turn-Off Auto-Update individally (in the first approximation);

    ’ The next, more complexitive step is to make ALL Auto-Update options to be changed individally in contrary to their global settings.

    ’ I.e. The Monitoring, as separate feature, becomes to no need at all :)

    ’ For whose of them, who are lazy to click two checkboxes instead of a single one, there is the possibility to add a special ‘X-Monitoring as tail -f’ checkbox, that will only automaticaly set On/Off for both -Silent & -Scroll simultaneously :)

    ’ The Scrolling, logically, is more closely relates to the Update(Reload) function itself, but not to the way by which Update(Reload) is proceeded - Manually, by Auto-Update or by Monitoring. So it need to add in common ierarchy of global options the separate ‘Scroll on Reload(Update)’ option. And to make possible to override it by Global Auto-Update setting, that can be overrided, in its turn, by individually tab’s option.

    ’ Summarizing, I see the following settings (On/Off checkboxes) …:

    ’ … in “Preferences - MISC.” chapter:

    ’ ‘Reload (Update)’ frame (add):
    ’ - ‘Scroll on Reload (Update)’

    ’ ‘File Status Auto-Detection (Auto-Update)’ frame:
    ’ - ‘Enable’
    ’ - ‘X-Monitoring as tail -f’ (turn On both below) (add)
    ’ - - ‘Update(Reload) Silently’ (turn Off X-Monitoring if Off)
    ’ - - ‘Scroll (override Reload Scroll)’ (turn Off X-Monitoring if Off)

    ’ … in tab context menu with elements of the same behavior:
    ’ --------------------------
    ’ Reload section
    ’ - ‘Reload’ (command)
    ’ - ‘Scroll’ (checkbox)
    ’ --------------------------
    ’ Auto-Update(Reload) section (checkboxes)
    ’ - ‘Enable’
    ’ - ‘X-Monitoring as tail -f’
    ’ - - ‘Update(Reload) Silently’
    ’ - - 'Scroll

    ’ Thanks to everyone who was able to read up to this point :)

    .

  • I need to filter out certain strings from a large file.

    Locked
    2
    2 Votes
    2 Posts
    848 Views
    Scott SumnerS

    @Magnus-Arlebrink

    It’s tough to say without seeing examples of this “other text”…

    Another idea is to approach it differently. You say you have no problems matching the text you need to keep while searching, so a possible option would be to “simply” copy that text to another file. If isn’t extremely simple because Notepad++ can’t do that natively, but if you redmark your text you can copy it to the clipboard with a script; see here.

  • Disable autocomplete on a per file (tab/window) basis and with shortcut

    Locked
    8
    2 Votes
    8 Posts
    3k Views
    Claudia FrankC

    @perlsmith

    Install PytonScript Plugin using PluginManager Plugins->Python Script->New Script and give it a meaningful name copy and paste the script
    (don’t modify if you don’t know python and make sure that the layout
    is exactly the same as posted, because python needs this indention to
    identify its code blocks) save it Plugins->Python Script->Configuration and add it to the Menu Optional: in same window change Initialisation from LAZY to ATSTARTUP Restart npp

    Now you should see that under Plugins->Python Script your script is shown.
    As it is now in the menu section you can add/modify a shortcut in the normal way
    by using menu Run->Modify Shortcut/Delete Command and search in the Plugins Command
    tab for your script.

    Cheers
    Claudia

  • Building a multi-line RegEx

    Locked
    2
    1 Votes
    2 Posts
    2k Views
    guy038G

    Hello, @glennfromiowa and All,

    I’m totally sorry for my very late reply ! I’ve just missed that post :-((

    You’re perfectly right on that matter. Indeed, it’s a Boost regex library bug ! Refer to these two links for explanations :

    https://svn.boost.org/trac10/ticket/12960

    https://github.com/boostorg/regex/commit/a32e0cc9d39f8c0886fe5576022c7bf0c9efc265

    And, probably, this issue was fixed since the regex library 5.1.3, of the Boost C++ libraries v1.66.0 ( or v1.67.0 )

    Of course, we’ll have to live with that tiny bug… as N++ is using the regex component of Boost library v1.55.0 !

    However, we just have to be aware of that fact and, IF using the (?x) modifier, simply replace any \R syntax with the sequence \r\n ( or possibly \n ), in the search regex !

    Cheers,

    guy038

    P.S. :

    After some tests, I don’t think that other regex syntaxes become bugged, when using the free-spacing mode ( (?x) ) !

  • AutoCompletion startFunc

    Locked
    10
    1 Votes
    10 Posts
    2k Views
    PeterJonesP

    Also, assuming @Finn-McCarthy (original poster) is the same person as the second user @Finn-Mac: you will have to be logged in as @Finn-McCarthy to mark @Finn-McCarthy’s Topic as solved.

  • Submitting Documentation Proposal - How to Build Notepad++ from Source

    Locked
    1
    2 Votes
    1 Posts
    652 Views
    No one has replied
  • Windows 10 Subsystem: bash.exe not found.

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Halley SouzaH

    Hi Peter,

    Indeed I was running 32bit.I just updated it to 64bit and NPP now find the bash.exe on the dir %WINDIR%\System32 with no problem.

    Thank you for the help.

    Halley

  • Search / Replace folders and subfolders

    Locked
    2
    0 Votes
    2 Posts
    915 Views
  • Remove this type of "prefix"

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Scott SumnerS

    @Shyvering-Barhard

    (?-s) -> prevent any following. usage from matching end-of-line characters
    ^ -> only allow match at start-of-line
    .+ -> (from start of line), match one or more characters of any type (except end-of-line)
    : -> match a literal :
    \x20 -> match a space (could have just used a space but it is hard to see on this site, also, in this case could have used \s or \h)

    Check out this posting! : https://notepad-plus-plus.org/community/topic/15765/faq-desk-where-to-find-regex-documentation

  • 1 Votes
    1 Posts
    745 Views
    No one has replied
  • 1 Votes
    6 Posts
    1k Views
    Shyvering BarhardS

    Forget about that before, I found the solution @scott-summer

  • Macro failed to playback in BLOCK EDIT MODE

    Locked
    3
    1 Votes
    3 Posts
    1k Views
    guy038G

    Hello @daidaiworm, and All,

    I could not post anything for a while, due to some “Guru meditation...” ! In the meantime, You’ve got, from @Scott-sumner, the right solution :-)) I exactly thought about the same regex S/R. Here is my initial post, which was ready… to be moved on line !

    I didn’t test the column mode feature, while building macros, but I would use, instead, a macro based on a search/replacement operation.

    So, if you replace your macro block, in the shortcuts.xml file, with the following block :

    <Macro name="nppMacro_eric" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="3" message="1700" wParam="0" lParam="0" sParam="" /> <Action type="3" message="1601" wParam="0" lParam="0" sParam="(?-s).+" /> <Action type="3" message="1625" wParam="0" lParam="2" sParam="" /> <Action type="3" message="1602" wParam="0" lParam="0" sParam="\($0\)" /> <Action type="3" message="1702" wParam="0" lParam="768" sParam="" /> <Action type="3" message="1701" wParam="0" lParam="1609" sParam="" /> </Macro>

    you should obtain a reliable macro and expected results :-))

    Notes :

    The 1601 message initialize the search/replacement operation

    The search regex (?-s).+ is inserted at the end of the 1601 message and search for the greatest range of standard characters so all line contents, without its line-break

    The number 2, in message 1625, means that search is performed, in regular expression mode

    The replacement regex \($0\) is inserted at the end of the 1602 message and rewrites a literal ( symbol, then all the search match ( $0 ) and, finally, the literal ) symbol

    The flag number 768, in message 1702, represents the sum 512 ( Down direction) + 256 ( Wrap around )

    The command number 1609, in message 1701, stands for a hit on the Replace All button

    Best Regards,

    guy038

    P.S. :

    For a complete list of the search /replace encoding, in the shortcuts.xml file, refer to the link, below :

    http://docs.notepad-plus-plus.org/index.php/Editing_Configuration_Files#Search_.2F_Replace_encoding

    Note that the flag value 512 means Search goes downwards ( and not upwards ! )

    Be aware that when you use the command value 1614 ( Count ), the Find dialog must have been previously opened !

  • What RegEx Engine/Flavor?

    Locked
    17
    2 Votes
    17 Posts
    9k Views
    guy038G

    Hi, @claudia-frank, @peterjones, @scott-sumner, @dail, @mapje71, @jim-dailey,

    Done ! It was easier, than I first thought, to move these FAQ Desk: posts in the new FAQ section. A move topic command was available ! So, no need to save contents and re-create these posts ;-))

    I also, verified that your previous links to any FAQ Desk: post, has been preserved by the “move”. So, everything is fine !

    We just have, now, to go on filling up that new FAQ section, with pertinent posts !

    Best Regards,

    guy038

  • Blank Lines and Whole Words in UDL 2.1

    Locked
    3
    0 Votes
    3 Posts
    1k Views
    FrontMan08F

    @Claudia-Frank

    Thanks for the feedback. I had a feeling I was running up against the edge of UDL’s capabilities. I’ll have to explore the python scripting approach or some other workarounds for now.

  • Hidden </p>

    Locked
    2
    0 Votes
    2 Posts
    705 Views
    Claudia FrankC

    @Bruce-Coyne

    without additional infos I assume this is caused by a plugin.
    Could you post some screenshots/gifs?

    Cheers
    Claudia

  • 0 Votes
    2 Posts
    846 Views
    Claudia FrankC

    @Vishal-Sehgal

    I don’t really understand what you are trying to achieve.
    Do you want to post some examples with before and after comparison
    like, I do have

    line with number 517189292 and some text another line with different number 1189292 and some text again a line with number 517189292 and some text and another line with different number 1189292 and some text

    and I want to have a result like this

    another line with different number 1189292 and some text and another line with different number 1189292 and some text

    Does this makes sense to you?

    Cheers
    Claudia

  • Finding and deleting entire paragraphs.

    Locked
    5
    0 Votes
    5 Posts
    2k Views
    byron blackmoreB

    That works. Thank you very much!

  • Import xlsx list

    Locked
    3
    1 Votes
    3 Posts
    2k Views
    Magnus BrodinM

    You are an angel :-) My mistake is that I tried to copy from Excel instead of making a new document i Notepad++ and that resulted in many very strange things. Now everything is ok. Thank you!

    Best regards Magnus

  • Notepad++ Cannot Backup Text files - Windows 10

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    Claudia FrankC

    @Mark-Warbinek

    I assume you hit the MAX_PATH (260 characters) limit, which means
    the amount of characters in the full path is not allowed to exceed 260 chars, might this be?
    If so and because you are on windows 10 there MIGHT be a solution.
    Stop npp and edit the registry

    HKLM\SYSTEM\CurrentControlSet\Control\FileSystem

    add a REG_DWORD variable called

    LongPathsEnabled

    and give it a value of

    1

    See here for the explanation of this.

    Note, I don’t have any experience with this key but rumors on the web say
    that 32bit applications might have issues when having set this key and using
    api calls which do respect that key.

    Cheers
    Claudia