Who is responsible for viewing and claiming users suggestions ?



  • Where may I post (here or in git ?) my very important suggestions ?
    I can’t live without it, and it’s very flustrating to code without them for me.

    Please be honest and tell me, where may I post to be seen by NP++ developers.

    Thank you



  • It’s good suggestions for everybody. I just need to be sure, the competent person will review it.



  • Either here or on Github. Nobody is really “responsible” but normally someone will see it. And not every feature/suggestion gets a response or even implemented.



  • I would like to kindly suggest features which probably aren’t difficult to implement and won’t be overwhelming or contraproductive. I strongly believe, they are very useful.

    1, Ability to delete autocompleted part of dual symbols ( parenthesis, brackets, curly braces, single, double quotas…) when Backspace is pressed immediatelly after first autocomplete dual symbol is written.
    It’s good for saving time to delete autocompleted part when you mistyped it. For example you typed single quotas instead of double ones. Or you typed correct symbol but with space before needed or non needed. So in all cases, you would need to delete autocompleted part.

    2, Ability to remember or recognise tabs and spaces in file. It’s for purposes when tabs are replaced by spaces. But when you would go back in indentation, you need delete all spaces instead of one Backspace press. It takes many key button presses and time. It would be handy when in already replaced tabs by spaces, will Notepad++ recognise that indentation happend by tab press and also will operate with it as tab during deleting spaces.

    3, Ability of Run module to be able run scripts in console just by one key button without asking or prompting anything before or after execution.
    You would simply set path to for example python and then set F5 to execute code automatically. There is no plugin for NP++ which would make it easy and efficient.

    Thank you very much



  • @DonHO and devs

    If number 1 should be implemented I would vote for making it configurable
    and it is set to disabled per default.

    2 and 3 are already part of npp, it is just a matter of setting it up once.

    Cheers
    Claudia



  • I don’t think that #2 is already in N++. When I press tab (after configuring to insert 4 spaces per tab), I get the right number of spaces inserted. However, to remove all of the spaces, I have to hit backspace 4 times. The requester is wanting ONE press of the backspace key to remove all of the inserted spaces.

    I believe that #3 can be achieved with the NppExec plugin, but perhaps with the first run specified, but then all subsequent runs that are the same executed with a single keypress (no prompting).



  • Hello Scott,

    to reverse a tab use backtab, to reverse a space use backspace and Run can be configured,
    save your commandline and assign a shortcut.

    Cheers
    Claudia



  • Claudia,
    You are of course right on the back-tab, but in practice most people (programmers!) expect backspace to also work the same way. So I think that is what the OP (original poster) is getting at. Grabbing the Shift+Tab is a bit burdensome. I just backspace them all away but I could see where this bothers some people.



  • Yes Scott. Finally someone who read carefully what I meant.

    Claudia:
    #2 and #3 IS NOT possible to set with npp exec.

    I haven’t opened NP++ whole day all days. So just first configuration for npp exec is not a solution for me. AND I still need to stop process executed in console, even it’s a stupid print() statement ! That plugin is wrong because nothing is in execution like infinite loop. Please understand that npp exec is not made efficient way, and definitelly not as I need it to.

    Shift +tab is not solution for me. I need like I described it above.

    And I add one more.
    There is NOT simple way how to reset key binds to default. Over years, there was really noone who wanted to do it ? What is wrong with …

    NP++ has great advantage of simple GUI enviroment in compare with uber difficult Atom.io notepad. So why the heck, is so hard to add one option to reset all keys to default ?



  • edit: “I haven’t opened NP++ whole day all days.”
    I meant I’m not working on my pc with whole days opened NP++. I open it when I need it. And dont want every time configure npp exec, when it’s possible to code it just to press one key to execute script without prompting and ending anything.



  • Hello Scott,

    in regards to programmers I do have a different experience. There is always one who wants to
    have this feature whereas another one doesn’t want it at all and the others want to have it behave differently. ;-)
    But I don’t argue that this wish is nonsens I just mentioned that there is already a way to do it
    which might help the OP to use it instantly instead of waiting to get it implemented.

    Cheers
    Claudia



  • I have thought about whether to respond or not
    but because it is already the second time you write
    that I’m unable to understand what you want/mean
    I guess I need to clarify a few thinks.

    Yes Scott. Finally someone who read carefully what I meant.
    Claudia:
    #2 and #3 IS NOT possible to set with npp exec.

    If I wasn’t careful then I guess I could argue you weren’t too.
    I did not speek about npp_exec in the post related to your enhancement request,
    instead I wrote it is part of npp. NppExec is a plugin/addon. I even named the
    feature which could do this. Notably Run. Please reread my answer to Scott.

    I haven’t opened NP++ whole day all days. So just first configuration for npp exec is not a solution for me.
    AND I still need to stop process executed in console, even it’s a stupid print() statement ! That plugin is
    wrong because nothing is in execution like infinite loop. Please understand that npp exec is not made
    efficient way, and definitelly not as I need it to.

    It might be that npp_exec behaves different in what you think it should do. It might be you
    discovered a bug but because I use it a lot and I don’t have this isseus you describe I still have to
    assume you do something wrong. I assume we won’t find out as you didn’t reply to my offer to
    help you finding the issue with your setup. Please reread my answer to your post
    NPP Exec modification request to execute code by one press without prompting. carefully.

    Shift +tab is not solution for me. I need like I described it above.

    Ok, what did you describe?

    2, Ability to remember or recognise tabs and spaces in file.

    backtab could be the answer

    It’s for purposes when tabs are replaced by spaces.
    But when you would go back in indentation, you need delete all spaces instead of one Backspace press.

    Here you mention backspace, correct, but not in the rest of the post.
    No statement that backspace is the only allowed key to solve your issue.

    It takes many key button presses and time.
    It would be handy when in already replaced tabs by spaces,
    will Notepad++ recognise that indentation happend by tab press
    and also will operate with it as tab during deleting spaces.

    backtab could do it but you don’t like, I got it.

    And I add one more.
    There is NOT simple way how to reset key binds to default.

    If editing a file and delete the user-configured key bindings isn’t simple, then yes, you are correct.

    Over years, there was really noone who wanted to do it ? What is wrong with …

    Note sure, did you miss a me?

    Claudia



  • Claudia
    thanks for reply

    About resetting key shortcuts to default.
    I was googling a lot ! And tried to find that file manually in both of directories, where NP++ has it’s files. In program files and in user/appdata…
    There is not such file I swear ! There is not a file with customized key binds. I assume, you meant to delete that file (but it does not exist) and then NP++ will make default one in next run of app.

    About NppExec plugin vs. default ability of NP++.
    Did you mean this ?
    http://i.imgur.com/vk3B4e9.png
    If yes, then, it’s even worse situation as with npp exec. Because when I set path to my python as this: http://i.imgur.com/iwwHdn2.png
    it will open python’s shell: http://i.imgur.com/AphE7M6.png
    It’s bad because it immediatelly closes after code execution.
    I won’t be even see result, it’s that fast closed.
    Therefore I need splitscreen console like with npp exec ! Please understand that.

    And about removing tabs, to be 100% clear, I will describe it again different way.
    When I want remove tab indentations which were easily made by just Tab key pressing, I want same easy way of removing them by Backspace pressing. Not four times more, as remaked to spaces.
    I know I made tabs, so I don’t want delete spaces. NP++ should distinguish it. And I don’t want use and remember special key bind shortucs just for this case, when app can do it instead of me.

    Thanks for reply anyone who is responsible to implement all changes to NP++. Please everybody consider my suggestions. It’s not stupid ideas and nobody will be hurt. Just not tick it up in Preferences. But when those features are missing, people will be hurt.
    Ty again



  • John,

    just a quick update to F5 Run configuration, 'cause I’m already on the run again (not sure if this is the correct translation).

    You provided python.exe to be executed but in reality you need to provide cmd.exe with python.exe being the first parameter
    and script as sceond parameter so something like

    cmd /k  python.exe $(FULL_CURRENT_PATH)
    

    Note, I’m using python.exe as I have its installation directory included in PATH. If you haven’t, you need to
    provide the full path to python.exe. The variable $(FULL_CURRENT_PATH) is a npp variable which
    gets always replaced by the current active document. So if the current document is c:\test.py then the Run feature
    replaces the variable to c:\test.py of course but this is done automatically so you stick with the variable.

    When you press F5 and put this into the inputbox, saveit with a meanigful name and assign a shortcut like F6 -> done
    Now everytime you press F6 (of course if this is not used already)

    a command prompt gets opened and python executes the active document.

    Update regarding the others topic will be posted after I come back.

    Cheers
    Claudia



  • About resetting key shortcuts to default.

    The file is called shortcuts.xml and is either in the directory where notepad++ was installed
    or in the %appdata%\notepad++ directory and no, don’t delete it, the file is optional and
    I don’t think it will be recreated on next startup. (Didn’t tried it yet.)

    The file has an xml structure which is

    <NotepadPlus>
        <InternalCommands/>     <!-- Notepad++ menu commands that were remapped -->
        <Macros/>               <!-- Current macro set  -->
        <UserDefinedCommands/>  <!-- Contents of the Run menu  -->
        <PluginCommands/>       <!-- plugin commands that were remapped -->
        <ScintillaKeys/>        <!-- basic Scintilla commands that were remapped -->
    </NotepadPlus>
    

    I don’t go into detail as it is already described here.

    A factory file looks like this

    <NotepadPlus>
        <InternalCommands />
        <Macros>
            <Macro name="Trim Trailing and save" Ctrl="no" Alt="yes" Shift="yes" Key="83">
                <Action type="2" message="0" wParam="42024" lParam="0" sParam="" />
                <Action type="2" message="0" wParam="41006" lParam="0" sParam="" />
            </Macro>
        </Macros>
        <UserDefinedCommands>
            <Command name="Launch in Firefox" Ctrl="yes" Alt="yes" Shift="yes" Key="88">firefox &quot;$(FULL_CURRENT_PATH)&quot;</Command>
            <Command name="Launch in IE" Ctrl="yes" Alt="yes" Shift="yes" Key="73">iexplore &quot;$(FULL_CURRENT_PATH)&quot;</Command>
            <Command name="Launch in Chrome" Ctrl="yes" Alt="yes" Shift="yes" Key="82">chrome &quot;$(FULL_CURRENT_PATH)&quot;</Command>
            <Command name="Launch in Safari" Ctrl="yes" Alt="yes" Shift="yes" Key="70">safari &quot;$(FULL_CURRENT_PATH)&quot;</Command>
            <Command name="Get php help" Ctrl="no" Alt="yes" Shift="no" Key="112">http://www.php.net/$(CURRENT_WORD)</Command>
            <Command name="Google Search" Ctrl="no" Alt="yes" Shift="no" Key="113">https://www.google.com/search?q=$(CURRENT_WORD)</Command>
            <Command name="Wikipedia Search" Ctrl="no" Alt="yes" Shift="no" Key="114">https://en.wikipedia.org/wiki/Special:Search?search=$(CURRENT_WORD)</Command>
            <Command name="Open file" Ctrl="no" Alt="yes" Shift="no" Key="116">$(NPP_DIRECTORY)\notepad++.exe $(CURRENT_WORD)</Command>
            <Command name="Open in another instance" Ctrl="no" Alt="yes" Shift="no" Key="117">$(NPP_DIRECTORY)\notepad++.exe $(CURRENT_WORD) -nosession -multiInst</Command>
            <Command name="Send via Outlook" Ctrl="yes" Alt="yes" Shift="yes" Key="79">outlook /a &quot;$(FULL_CURRENT_PATH)&quot;</Command>
        </UserDefinedCommands>
        <PluginCommands />
        <ScintillaKeys />
    </NotepadPlus>
    

    So the difference are your changes.

    About NppExec plugin vs. default ability of NP++.

    I already gave you the information about how to configure Run, nevertheless, I find NppExec better,
    because you have more control about what needs to be executed and how to handle the returned output.
    In addition, NppExec uses an internal console, which has the advantage of not being forced to
    close the cmd shell after executing a program/script.

    So, before going into detail how to configure NppExec open a python script and then

    press F6 (I assume it’s still not being used by others)
    you get the Execute… dialog.
    Put in

    python $(FULL_CURRENT_PATH)
    

    assuming that you have only one python installation and installation directory can be found via PATH variable and contrary to
    Run(F5) configuration we do NOT add cmd.exe in front of python.
    press ENTER.
    You should see the output of your python script in the NppExec console.
    Now press CTRL+F6 the script run again. To configure the shortcut for using one key only use

    Settings->Shortcut Mapper->Plugin Commands
    

    and reconfigure it. NppExec is normally on the very top of the list.
    When you close npp and restart it you need to call the Execute… dialog again
    and every other execution can be started with CTRL+F6 again.

    If you have multiple python installation e.g. Python 2.7 and python 3.5 and you want to test
    both then you need to save two profiles. Instead of just putting in python …
    you would do something like

    cd YOUR_PATH_TO_PYTHON_INSTALL_DIREXTORY
    python $(FULL_CURRENT_PATH)
    

    where YOUR_PATH_TO_PYTHON_INSTALL_DIREXTORY needs to be replaced by the real installation directory
    and then press save and give it a meanigfull name like Python35.
    Do the same for the second python install.

    Now you have to call Execute… dialog everytime you want to switch between the two Python installations.
    But this is normal, I guess, how should npp/NppExec know which python interpreter should be called?
    There are other useful features which I can describe if needed.

    And about removing tabs, to be 100% clear, I will describe it again different way.
    When I want remove tab indentations which were easily made by just Tab key pressing,
    I want same easy way of removing them by Backspace pressing.
    Not four times more, as remaked to spaces.
    I know I made tabs, so I don’t want delete spaces.
    NP++ should distinguish it.
    And I don’t want use and remember special key bind shortucs just for this case,
    when app can do it instead of me.

    I have absolutely no problem with it. If you want to go with it and devs are willing to do, I’m fine too.
    I only mentioned that there is already a solution, which you can already use and, c’mon, remembering
    SHIFT+TAB to reverse things done by TAB, isn’t that complicated, is it?
    Don’t expect that your feature enhancements find its way to npp very soon, as far as I remember there
    are >300 issues/feature requests open. It might take a little time before it gets considered.

    Claudia



  • Before you edited to longer post (how is possible to edit own post ?) I saw you suggested me to write this into Run path:
    (I cant recall it from saved Run shortcut. How do it ?) something like: cmd /k python $fullpatch$. (Can you write it again please?)
    And result was, the shell window kept opened which is good. But it’s a still new window, which I must switch focus to it, and NP++. And it has some error: http://i.imgur.com/FDRsCbR.png?1
    File I was executing, I have on my Desktop. It was there, so I don’t know why this error.

    Now I read your long final post, so I did (trying to follow your instructions above):
    1, Installed fresh npp exec plugin (during install I saw this: http://i.imgur.com/67MhHR2.png).

    2, Now I deleted that cmd /k saved command F6 by native Run thing.

    3, Now press F6 and see npp exec window I guess, I put in what you wrote, I press Ok and console happend: http://i.imgur.com/pzisyd5.png

    4, Normal Execute in plugin is F6 and that one press is ctrl+F6. Now I have just switched those two. So when I open NP++, press F6 and it pop’s up that window. I hit Enter and from this moment I can just F6 anytime and it executes it. It’s good. And it does not prompt me to stop execution. Now it’s ok. But it has same problem with that file like python shell had, I dont know what’s going on.

    5, Now I see disadvantages (they are problems to me !) with console in compare with pythons IDLE. Console has not history I can view between presses F6. For every new F6 it’s new thing, I cant see what was executed before to see changes. I need it do like IDLE does. And when I want reset/remove all variables or remove screen to blank - no history, I need set too, like it is able in IDLE. How please ?



  • Edit:
    Wait a second, I was wrong, I was mixing apples with pears.

    Python has two things to execute code:

    • shell is that black window looks like window’s cmd
    • IDLE which is ineractive interpreter + it’s notepad.

    I was wrongly referring to interpreter. Because it can store values which are not written in script - a file. But npp exec console is not a interpreter, it’s just executed code written in file. So there is no need to do this:
    http://i.imgur.com/yHwII3e.png

    But still, there is need to see prevoius outputs and when scrooling is too much, then clean that console screen. This I would like to do in that.

    Thanks for any help. I’m happy someone is helping me with kind of trivial things, but I really don’t want IDE like Pycharm or other pro tools. It’s overwhelming for beginner. And at the same time, IDLE teachs you bad habits, because it’s real time interpreter and sometimes result can be different from script saved in file. That’s why I want use notepad++ (aka scripts wrtitten in files), but at same time, to see result in console in same window - spitscreen, which is advantage of IDLE.
    I hope it’s all clear now and I hope npp exec has those things I need to.



  • Before you edited to longer post (how is possible to edit own post ?)
    By using the three vertical dots in the right corner of your post but you only
    have a 3 minute window to do it.

    One thing which should be clarified first, IDLE, notably the python shell, cannot be replaced
    by using notepad++ and NppExec or builtin Run(F5) feature. When executing code using both
    methods you always start a new process. No cached informations of previous processes output.
    It’s fire and forget. But NppExec had thought about it and provided a way to solve it. add the following
    above your python … line. It should be the first line

    NPE_CONSOLE a+
    

    I saw you suggested me to write this into Run path:
    (I cant recall it from saved Run shortcut. How do it ?) something like: cmd /k python $fullpatch$.

    Once saved it appears in the Run menu, to see what it does you need to take a look into shortcut.xml.
    The command was the same as you put in NppExec except the added cmd /k infront of it.

    (Can you write it again please?)

    why not scrolling in the web browser up?

    And result was, the shell window kept opened which is good. But it’s a still new window, which I must switch focus to it, and NP++. And it has some error: http://i.imgur.com/FDRsCbR.png?1
    File I was executing, I have on my Desktop. It was there, so I don’t know why this error.

    Could it be that you have spaces in your path?
    If so, windows has this issue since ages, to get around this surround the $(FULL_CURRENT_PATH) by double quotes.
    “$(FULL_CURRENT_PATH)”.

    Now I read your long final post, so I did (trying to follow your instructions above):
    1, Installed fresh npp exec plugin (during install I saw this: http://i.imgur.com/67MhHR2.png).

    Don’t know what plugin manager wants to check - need to investigate.

    2, Now I deleted that cmd /k saved command F6 by native Run thing.

    3, Now press F6 and see npp exec window I guess, I put in what you wrote, I press Ok and console happend: http://i.imgur.com/pzisyd5.png

    You did not save the file it is still only a temporary container. You need to save first, then run python. This applies also to changes
    to the file, if you don’t save you run the old copy of that file.

    4, Normal Execute in plugin is F6 and that one press is ctrl+F6. Now I have just switched those two. So when I open NP++, press F6 and it pop’s up that window. I hit Enter and from this moment I can just F6 anytime and it executes it. It’s good. And it does not prompt me to stop execution. Now it’s ok. But it has same problem with that file like python shell had, I dont know what’s going on.

    5, Now I see disadvantages (they are problems to me !) with console in compare with pythons IDLE. Console has not history I can view between presses F6. For every new F6 it’s new thing, I cant see what was executed before to see changes. I need it do like IDLE does. And when I want reset/remove all variables or remove screen to blank - no history, I need set too, like it is able in IDLE. How please ?

    You type into the console. cls clears the output window.

    Claudia



  • Alright
    I added quotes and first line before it, so it looks like this:
    http://i.imgur.com/REIEXrE.png

    Quotes helped, file found. And that history, is showing also much redundant text which is filling that split screen. See please:
    http://i.imgur.com/Uj43PPF.png
    Output which I need to see is just 6, 9. Other stuff is no needed, is possible to not show it ? Because it’s filling screen too much and I have small monitor.

    When I type ‘cls’ into console, it clears nice :) What else useful may I write into there too please ?

    Thank you very much for helping me ! This saves me days of googling or asking on other forums + getting minuses on my account on stackoverflow leading to no permission to post anymore. Users who gained a lot of experience numbers are just minus all newbies like mafia. It’s almost unable to get some experience numbers. But not anymore about it. Lets focus on this issues.



  • Alright
    I added quotes and first line before it, so it looks like this:
    http://i.imgur.com/REIEXrE.png

    great

    Quotes helped, file found. And that history, is showing also much redundant text which is filling that split screen. See please:
    http://i.imgur.com/Uj43PPF.png
    Output which I need to see is just 6, 9. Other stuff is no needed, is possible to not show it ? Because it’s filling screen too much and I have small monitor.

    When I type ‘cls’ into console, it clears nice :) What else useful may I write into there too please ?

    Thank you very much for helping me ! This saves me days of googling or asking on other forums + getting minuses on my account on stackoverflow leading to no permission to post anymore. Users who gained a lot of experience numbers are just minus all newbies like mafia. It’s almost unable to get some experience numbers. But not anymore about it. Lets focus on this issues.

    type help to get a list of all variables and commands which can be used
    and e.g. help npe_console to get detailed informations on that particular command.

    to reduce spam output create another Execute profile by passing this two lines into it

    npe_console v- m- a+
    cls
    

    what each switch does can be read when using help ;-)

    save it with a meaningful name and press either ok or cancel, doesn’t matter.

    Next

    Plugins->NppExec->Advanced options->Execute this script when Notepad++ starts
    choose your previously saved script.

    Now we don’t need the npe_console a+ above the python … anymore,
    so select the python profile, delete the npe_console a+ and save it.

    Restart npp

    Done

    Claudia


Log in to reply