• [Suggestion] Reload opened files when restarting for update

    3
    2 Votes
    3 Posts
    1k Views
    Eagle3386E

    @donho, is this possible? :)

  • Remove duplicate lines from unsorted, keeping first

    10
    0 Votes
    10 Posts
    9k Views
    guy038G

    Hello, @sepehr-e,

    I must admit that sometimes regexes, involving great amount of text, may, wrongly, get an unique match, which represents all the file contents :-(( This case may also happen, in case of regexes with recursive patterns, inside !

    I can’t clearly explain this behaviour. May be, it’s related to a matched range of characters, that exceeds a limit. It could also depends on the RAM amount or because of specific N+++ features, like the periodic backup !

    Practically, you could use the regex, below, which implies an other condition : the \1+ block of lines, which is to be deleted, must, follow, most of the time, some End of line characters !

    (?-s)^(.+\R)(?s).*?\R?\K\1+

    Despite you didn’t say anything about your working file, but it could help ?!

    Note that the syntax \R must be optional ( => the form \R? ) in case of a block of consecutives identical lines, as for instance :

    456 789 123 123 123 123 000

    Best Regards,

    guy038

  • How to run python code once written?

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    Claudia FrankC

    @David-Hodge

    I can’t say what your python code should do as there is no info what has been coded but
    concerning the execution of code from within python there are several ways to achieve this.

    use the run menu and run function (typically keyboard shortcut F5)
    within this dialog you would do something like

    cmd /K python $(FULL_CURRENT_PATH)

    the variable FULL_CURRENT_PATH gets substituted by notepad++ with the full path
    of the current opened document. So it is a must that the script has been already saved
    before you run it.

    Install the excellent NppExec plugin. It does basically the same as the build in run function
    but offers a lot more in addition. Like you can define that not only the script should run but
    also some other action should take place. If using the NppExec plugin you do not need
    the cmd shell from the previous example as it has its own “shell” so a call

    python $(FULL_CURRENT_PATH)

    is sufficient.

    3)Install python script plugin. As it is not its native functionality you can use it to run
    scripts as well. Its main purpose is to interact with notepad++, meaning you can
    automatically insert text into your document or reformat it automatically etc…

    Cheers
    Claudia

  • File write failures causes loss of data.

    Locked
    2
    0 Votes
    2 Posts
    917 Views
    chcgC

    Which version of N++ are you using? Could you please provide the debug info. Do you have one of the backup methods active (Settings->Options->Backup)?

  • No Plugin Manager in menu dropdown.

    Locked
    3
  • Ability to change the color of individual tabs that are open

    3
    0 Votes
    3 Posts
    5k Views
    Scott SumnerS

    @Gogo-Neatza

    There are four groups of settings related to tabs

    These 4 groups seem to be:

    Active tab focused Active tab unfocused Active tab text Inactive tabs

    My experimentation with this uncovered that only “Foreground colour” had an effect, and only for 3 of the 4 (Active tab unfocused was unaffected). If anyone has a different experience, I’d be interested to hear it.

  • File Associations not sticking

    6
    0 Votes
    6 Posts
    2k Views
    Claudia FrankC

    @johnwargo

    which basically confirms what is discussed - your account doesn’t have
    sufficient rights to manipulate the needed registry keys.
    Why this account has been removed the permission to modify the needed keys I cannot
    say but one solution to solve this issue is to add your account to keys.
    In the past, Microsoft provided tools to fix registry permission issues, maybe this is also
    available for your os version.

    Cheers
    Claudia

  • Misleading ads on download page above download links

    Locked
    5
    0 Votes
    5 Posts
    3k Views
    Scott SumnerS

    @PeterJones

    Maybe the current Plugin Manager needs an integrated ad-blocker as well. :-D
    Then we could have it back.
    And…the…questions…about…where…it…has…gone…would…STOP!

  • [BUG!!!] Code tray #4087

    Locked
    2
  • Notepad++ can't enter data

    Locked
    2
    0 Votes
    2 Posts
    990 Views
    Bernard ScalaB

    Panic over, I downloaded the wrong version of Notepad++. Uninstalled the old version and installed the correct version and all works ok.

  • I'm beginner how to add function list for COBOL

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    scialoS

    thanks very much

  • Multiple directories in Find in Files

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    Jim DaileyJ

    @Rowan-Sylvester-Bradley You might want to locate a program called GrepWrap. It allows you to do what you want and more.

  • 0 Votes
    5 Posts
    3k Views
    guy038G

    Hi @lanselibai,

    Sure that regexes can sort out all the cases where a 5 digit must be replaced by a 9 digit !!

    So, given the 10 numbers, below, containing one or several 5 digits :

    52.8 3.457 505 10.5 5 0.345 23558 56789.5512557 5555.5555 0.000000005

    Which are the final expected form of each number ? Of course, I suppose that, in real files, these 10 numbers may lie in a single or on several lines

    From the results, It should be easy enough to build up the appropriate regex !

    Best Regards

    guy038

  • Function list causes lag since last update

    5
    0 Votes
    5 Posts
    3k Views
    Benjamin OdegaardB

    Oh and I guess I should say that I’m coding in c with file sizes that range from 500 lines to 5000 lines.

  • Date filter in find in files

    4
    0 Votes
    4 Posts
    4k Views
    Chip CooperC

    I’m not sure exactly what you’re saying. So, Np++ is responding; but, you can’t use the new1 file that’s created? Or after it makes new 1 it stops responding? or it’s not responding at all? Or what exactly?

  • Reload dialog causing triggering automatic tab selection is annoying

    10
    0 Votes
    10 Posts
    4k Views
    Chip CooperC

    I’m actually OK with those who think it’s TL;DR I probably wasn’t writing to them anyway. ;-) I’d rather have a tl;dr than just say something like, "I sympathize; but, it’s free… get over it. Have a better attitude and as they say, ‘you get more flies with honey than vinegar’ even if some people think flies like more shtuff than shinola.

    This is a long standing issue; and I see a frustrated user; I sympathize. Those, like me, having a long history of development are used to having complete control over their projects; seeing a bug and reporting it feels like a duty. Seeing a user with a bona fide suggestion that fixes what I’m sure is an unintended glitch, even more so.
    Consolation is never wrong, just on occasion wordy. I relate. I’d say if I was more up on my C++ as I once was, I’d also offer a solution; but, I’m also following on Git, so that seems to have been done… perhaps. Solutions are time sensitive, wait long enough and it’s obsolete, either because it’s handled, or more likely, it won’t plug in.

    As one who types quickly, it’s no big thing to type many words, as long as they have substance. Often the squeaky wheel gets the grease. Squeek, squeek. This wheel needs grease. I hate disruptions when I’m coding, who doesn’t!? Shallow thinkers?

    Nevertheless, all this doesn’t detract overly from what a great program Np++ is already! Git it over with! ;-) I saw the complexity required, it’s a logic issue, undoubtedly the code exists for handling this I believe this was unintended, it’s a non-sequitur. Often the easiest to solve, if just briefly one dives into the rabbit hole long enough to work out the relationship that’s failing. It’s an, if (a and not b) or c else d kind of thing, or was that if a and not (b or c) else d kind of thing. The switches exist for the intended behavior, it’s just not working… as intended. Or am I reading this feature issue wrong?

    Still, will it get done… I put in my two bits, a bit of consoling, and I thought I was done. At least it’s not a wall of text. As far as tl;dr… if what I write is tl, then dr… I don’t care… I mean, how many bits a data did I take up anyway to console a frustrated user, one I sympathize with, and apparently he’s not alone from what I’ve read. Still it’s Np++, and it is what it is… take it or leave it. How many millions use it. No revenue stream… God Bless Don Ho! That’s what I say.

  • Different color for operators and parentheses

    Locked
    1
    0 Votes
    1 Posts
    937 Views
    No one has replied
  • Monitoring (tail -f) fails on big files

    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • functionList.xml is still wrong for javascript in v7.5.4

    2
    0 Votes
    2 Posts
    1k Views
    chcgC

    Functionlist seems to work for me with a test.js containing a simple function:

    function convert(val) {
    var y
    switch(val) {
    case “A”: {y=10; break}
    }
    return y
    }

    Do you have a example which is not working?

  • please help me with this :)

    Locked
    2
    -2 Votes
    2 Posts
    1k Views
    Frank OrellanaF

    This question should be asked in a programming forum like stackoverflow. This forum is for notepad++ related questions only.