Menu

QuickText 0.0.2.1 unusable

Rafał
2010-04-04
2012-11-14
1 2 > >> (Page 1 of 2)
  • Rafał

    Rafał - 2010-04-04

    Recently there was update to QuickText 0.0.2.1 (from 0.0.2.0 I belive). This release breaks a lot of things. For example selecting multiple lines and pressing tab indents only one line instead of all select. Behavior of ctrl+arrow left/right is also broken when this plugin is installed. Caret does not move on word basis anymore. Another broken things is double click selection. Also not working on word basis anymore.

    Please revert to old version in Plugin Manager and if author of plugin reads it, please consider fixing those bugs.

     
  • Dave Brotherstone

    If there's more than 1 person thinking reverting to 0.0.2.0 in PM would be better, then I'll happily do it.

    CChris - thoughts?

     
  • Alexander Iljin

    Alexander Iljin - 2010-04-04

    I agree 0.0.2.0 was better, but there is no zip-release I know of.
    rchl, maybe give the new WebEdit a try?

     
  • cchris

    cchris - 2010-04-04

    I think the main issue is that QuickText commandeers a basic key (Tab) and that this is a practice to discourage strongly.

    I did observe the indent problem. Changing the Replace tag command to something else (AltGr-Space) fixed the issue. As for the double click or Ctrl+arrow, I could not discern any change in behaviour.

    As far as I'm concerned, there is no good reason to move back to 0.2.0. What I would recommend, however, is inserting a key redefinition in shortcuts.xml to let Scintilla handle tabs correctly. What replacement? F9 comes to mind, it's the only function key not taken for obvious purposes. It conflicts with ConvertExt, but users of both ConvertExt and QuickText can probably choose something they like better. I find AltGr-space nifty, but it is not available on US keyboards.

    CChris

     
  • Rafał

    Rafał - 2010-04-04

    cchris: "tab" is default key since 0.0.2.1 only. Previously it was ctrl+tab I believe.

    Now I looked again at the problem of moving between words. It happens when default key (tab) is assigned to QuickText and we use tab once in document. After that, brokenness happens.

    alexiljin: I think I will switch to WebEdit but I really would like Tab to work with it (as discussed in other thread).

     
  • cchris

    cchris - 2010-04-04

    QuickText has been using Tab for ages, and this had users complaining for ages too.

    Since there seems to be a new maintainer for QuickText - pwner4once is listed as admin and committed to the code repository -, all these requests would probably better go to the QuickText project directly.

    CChris

     
  • Alexander Iljin

    Alexander Iljin - 2010-04-04

    rchl
    Previously it was ctrl+tab I believe.

    It was always Ctrl+Enter, until 0.0.2.1 broke out.

    rchl
    It happens when default key (tab) is assigned to QuickText and we use tab once in document. After that, brokenness happens.

    No matter what the shortcut key is, even if you use the menu: execute "Replace Tag" once, and you get all the trouble. QuickText 0.0.2.1 misconfigures Scintilla and leaves it in that state.

     
  • Alexander Iljin

    Alexander Iljin - 2010-04-04

    Ctrl+Enter is used by default in the later versions on Npp, that's why WebEdit opted for Alt+Enter. You can change it back to classic Ctrl+Enter if you don't use the functionality provided by Npp under that shortcut (or give it a different key).

    Ctrl+Tab is for switching documents (tabs).

     
  • Alexander Iljin

    Alexander Iljin - 2010-04-04

    CChris
    Since there seems to be a new maintainer for QuickText - pwner4once is listed as admin and committed to the code repository -, all these requests would probably better go to the QuickText project directly

    Here is the link to the project for those willing to contribute and report bugs: https://sourceforge.net/projects/quicktext/

    I wanted to contribute to QuickText, but I couldn't compile the latest SVN version by pwner4once with VS2008 Express. I know Joao Moreno (the original author) used VS2008 Express, but now the project has new dependencies. I tried emailing the maintainer (pwner4once) via the SF interface, but he never replied. Also, I noticed that QuickText.dll have grown almost 4 times its original size: v0.0.2.0=60Kb (Joao Moreno), v0.0.2.1=216Kb (pwner4once).

    The project source base suggests there are plans to use a database of some sort. I don't know if that airship will ever take off.

     
  • Rafał

    Rafał - 2010-04-05

    alexiljin: yeah, I made a typo, of course shortcut was not ctrl+tab but ctrl+enter. :)

    No matter what the shortcut key is, even if you use the menu: execute "Replace Tag" once, and you get all the trouble.

    davegb3: This problem alone is enough to revert to previous version.

     
  • Alexander Iljin

    Alexander Iljin - 2010-04-06

    QuickText 0.0.2.0 was never distributed via Plugin Manager, so all we can do currently is mark is as unstable so people quit getting upgrade requests.

     
  • Dave Brotherstone

    Actually we can still set it back to 0.0.2.0 (if there's a zip available now), and mark 0.0.2.1 as bad.  Then anyone with 0.0.2.1 will be offered an "upgrade" to 0.0.2.0 (with a message saying that the 0.0.2.1 was deemed unstable or buggy).

     
  • Anonymous

    Anonymous - 2010-04-13

    CChris, could you explain how should the shortcuts.xml should be edited?

     
  • cchris

    cchris - 2010-04-14

    It is all explained in http://sourceforge.net/apps/mediawiki/notepad-plus/index.php?title=Editing_Configuration_Files. But, in a nutshell:
    Notepad++ will overwrite shortcuts.xml when it shuts down. To avoid this, there are basically two ways:
    1/ use a different editor to edit this particular file
    2/ save the file explicitly and make it read only from Explorer. The read only flag in N++ is just an internal flag.

    CChris

     
  • Anonymous

    Anonymous - 2010-04-15

    CChris, I found another way. At least it works for now. It goes like this:
    1) Settings > Shortcut Mapper > Plugin commands > (198) Replace Tag
    2) I replaced "Tab" with Alt+Space
    Now I can do multi-line indenting and replace with QuickText by pressing Alt+Space
    Works fine for me)

    This is ofcourse if you explained somehow else. Otherwise thnx.

     
  • cchris

    cchris - 2010-04-15

    Of course this works, but with a side effect that may not bother you. On all standard Windows application, Alt+Space shows the system menu, and you override this functionality - usuakky a no-no in interface design. If you weren't using it, just fine. If you were, just change the shortcut again :)

    CChris

     
  •  Raja

    Raja - 2010-04-24

    Try https://sourceforge.net/projects/snippetplus/
    It has QuickText functionality plus SurroundWith.
    It is done in C#, so the only problem with it is you need .Net framework installed.

    Raja

     
  • Tony M

    Tony M - 2010-05-03

    Hello,

    I've downloaded source code of QuickText from SF SVN server. It seems, that Joăo M. made some changes since v0.2.1 and correct some errors described earlier in this topic, but unfortunately make some more bugs. Most of them are related to using default shortcut key – “Tab”, he made many hacks in code, to make “Tab” usable as QuickText default shortcut key and as “standard Tab”. I really don't understand why is he doing this – other shortcut keys (like earlier default ctrl + enter) are probably suitable for most users.

    Coming to the point, I'd like to say that I made my build and want to share it with you.

    I've corrected some bugs and changed couple of things:

    • change default shortcut key to ctrl + enter (it can be changed to anything else besides tab)

    • change behavior of hotspots (it was broken), I don't know how to explain this changes – just test it

    • add “._-” to allowed characters for tag names (it should be configurable btw, but I didn't have a time for playing with this)

    • add “Refresh Configuration” command in plugin menu (it was commented out in sources), which reloads configuration file

    • correct tags auto-completion and change its behavior, so on the list are now only tags which begins with typed part (originally on the list was tags which contains typed part in any place)

    Summary:
    Everything, worked in v0.2.0 seems to work now again and additionally there are some new features.

    Here is the link to the compiled library (UNICODE of course) – enjoy:
    http://tonym.fileave.com/QuickText_v0.2.2_custom_build.zip
    mirror:
    http://www.mediafire.com/?zhyckkghetz

    Regards,
    Tony M.

    P.S. English isn't my native language, so forgive me any language mistakes please.

     
  • Chen Zarza

    Chen Zarza - 2010-05-04

    tonym01:

    Thanks for your effort but your plugin dont allow to do zen-coding simulation as the original Quicktext:

    a#id with your plugin i get:
    a#id="" NOT GOOD

    with the original QuickText (last version), I get:

    <a id="id" href="" target=""></a>  Perfect!

    my problem is I have a lot of work with this kind of simulation usin HTML and CSS of course is not
    the sama as zen-coding do, but to close…  and I like it…

    If in some way you fix this detail I switch to your implementation, cause Im worried to that Moreno stop
    the maintenance…

    Good luck

     
  • Lance

    Lance - 2010-05-06

    Hi Tony M.

    THANK YOU SO MUCH!

    This has been driving me crazy for so long now.  Your update has everything working correctly now.

    Thanks Again!!!

     
  • Dave Brotherstone

    Nice job on the updates - just one issue…

    The plugin now assumes that the config files are in the plugins\config directory, rather than querying N++ (with NPPM_GETPLUGINSCONFIGDIR).  This could cause an issue for people on Vista/Win7 who have write-protected plugins directories.

    Any chance of changing it?   If you'd like a good cause, sadly we've just missed Towel Day, but it's Turing's birthday in a couple of weeks! :)

    Thanks again,

    Dave.

     
  • Oren Farhi

    Oren Farhi - 2010-06-09

    wow - nice build. works great till now.
    wishes:
    i would like the drop-down to hold "Language" like names and uppercase only.

     
  • Chen Zarza

    Chen Zarza - 2010-06-10

    tonym01:

    You are doing great job here…

    I want to thank you cause I asked you to allow special char (-_#>) in the snippet names, mainly because I have a lot
    of snippets similar to zen-coding for several months now….

    Why do I need this and no zen-coding stuff?
    Because I work in Linux using Notepad++ on Wine, and Zen-Coding does not run here!
    and I dont like the logic zen-coding use for the snippets names… mainly in CSS

    thanks,
    Quicktext is a lot better

     
  • Tony M

    Tony M - 2010-06-22

    @davegb3
    I' didn't change method of determining config dir in QuickText, I've just added another config file there.
    I've only fixed annoying bugs, which anybody else didn't fix earlier and I've added some features, that I thought would be useful for me and, as I hope, somebody else – like configurable “allowed characters” in snippet tags – nothing more.

    As I said before, I probably won't ever fix any bugs or add new features to this plugin. But I have many ideas for couple of plugins for notepad++, and if I'll find some time and some desire to code in my free time, I'll announce it to notepad community. Maybe I'll try to find somebody to cooperate with. Unfortunately currently I'm very busy.

    I would say in conclusion, that I won't fix that QuickText issue, but I'll show the place, to start seeking a solution:
    line 60 of QuickText.cpp:

    GetModuleFileName((HMODULE)hModule, temp, sizeof(temp));
    

    btw couple of weeks ago, I found really great plugin for notepad++, which still isn't added to “plugin central”: http://sourceforge.net/projects/nppastyle/ - plugin for reformatting code which uses  http://astyle.sourceforge.net/ library, I've also made my own build, which I'll maybe post soon.

    @orizens
    If you want to have only current language tags without “GLOBAL” tags and only uppercased names in dropdown list (auto-completion) you'll have to make your own build, because I don't think, that anybody else would like to have this functionality.
    For the first wish: comment out lines form 426 to 430 in QuickText.cpp.
    For the second: try modify regex in line 182 in INIMap.cpp

    @chenzar
    You're welcome. I didn't thought about using zen-coding plugin on other OS than Windows, but you're right – nppScripting (which is used by zen-coding plugin) plugin uses WSH and won't work on Linux. Now I understand the need, to have similar functionality in QuickText.

     
1 2 > >> (Page 1 of 2)
Auth0 Logo