I'm not much good at regular expressions so am only now experimenting with this feature, but it looks like I properly constructed a regular expression because when I use it in akelpad's Replace box, akelpad finds and highlights the correct items.
What Akelpad is not doing, however, is the replacement. I wish to find certain instances of text and simply delete them (i.e. replace them with nothing). But although akelpad finds and highlights the correct text, when I press "Replace", it does nothing, merely jumps down to the next instance of relevant text, leaving the text in place rather than deleting it.
Just to make sure that akelpad didn't somehow need something in the "With" field, I put a space there, whereupon akelpad should have replaced the found text with a space. It did not do so, however, merely continued to leave the found text as it stood and just move on to the next instance.
In case it matters, the text I'm looking for is a date in the form of numerical day, a slash, alphabetical month, a slash, and numerical year, e.g. 19/Mar/95. So my regex is [0-9]+/[a-zA-Z]+/[0-9]+, and it finds and highlights the dates perfectly--but, as I say, akelpad then refuses to operate on the found text.
Is this a bug, or am I missing something?
Posted: Sat Apr 18, 2015 3:06 pm
by Skif_off
Hanging
AkelPad 4.9.3, all works fine. Do you use AkelPad's command or script SearchReplace.js? Or FindReplaceEx.js?
Posted: Sat Apr 18, 2015 7:35 pm
by Hanging
Skif_off wrote:AkelPad 4.9.3, all works fine. Do you use AkelPad's command or script SearchReplace.js? Or FindReplaceEx.js?
I'm using 4.8.0 and am reluctant to update for fear of losing all the customizations I've made to the toolbar & menus etc. (it was a lot of work!). I'm not using any separate command, just akelpad's normal search/replace dialog, i.e. Edit menu / Replace / [check] Regular Expressions, then type the regex in "What".
AkelPad 4.8.2 (Mar 24, 2013)
----------------------------
Fixed: single replace with using regular expressions.
AkelPad 4.8.1 (Jan 24, 2013)
----------------------------
Fixed: single replace with using regular expressions.
Well, if I'm going to update at all, I might as well jump all the way to 493.
I just downloaded the binary zip (not the setup version). Just to be clear: I can just copy this over my current installation without losing all my customizations, correct?
Posted: Sun Apr 19, 2015 10:57 am
by Skif_off
Hanging
Unfortunately my English is bad and I find it difficult to talk about possible problems (4.8.2 should not bring problems).
P.S. I think update 4.8.0 -> 4.9.3 is an interesting task (?) and I have some spare time: Could you share your copy of the AkelPad and settings (here or in PM)?
Posted: Mon Apr 20, 2015 6:00 am
by Hanging
I hope the following is what you asked for. I really do have a lot of customizations. Using portable Akelpad w/INI file, hacking windows to replace Notepad. change CaretWidth from 1 to 2 with contextmenu & INI file. Have various plugins (clipboard, contextmenu, Exit [ignored], Format, lineboard, savefile, smartsel). Using Hotkeys to get rid of various keyboard shortcuts that cause me problelms. Using contextmenu to add various options and do things like put the Akelpad help files on the menu bar. Here's my custom menu-bar script:
Hanging
I thought that you have many more changes
Do you use plugin Scripts and js-/vbs-scripts? Do you use plugin Coder and custom theme and/or custom coder-file(s)?
If not, you can safely update, but read Docs/SmartSel-Eng.txt and make a backup please.
update plugins?
Posted: Mon Apr 20, 2015 8:59 pm
by Hanging
I thought that you have many more changes :)
They seem like a lot to me... ;)
Do you use plugin Scripts and js-/vbs-scripts? Do you use plugin Coder and custom theme and/or custom coder-file(s)?
If not, you can safely update, but read Docs/SmartSel-Eng.txt and make a backup please.
I don't use any of these. However, if I update not only Akelpad itself but also the plugins that I do use, will that cause a problem? I read the new smartsel doc (just released a day ago!) and I see that it has new behaviors.
Thx.
Posted: Tue Apr 21, 2015 7:28 am
by Skif_off
Hm... Problems? No, nothing very serious.
Added: draw overlay array for button with Menu() method without action. Fixed: support of the screen scale other than 96 dpi. Changed: no icons sizing if screen scale other than 96 dpi. Added: possibility to use 24x24 icons mode. Added: -1 value for ArrowOverlay manual setting - use style BTNS_WHOLEDROPDOWN.
(See Manual settings in Docs/ToolBar-Eng.txt) + post & answer.
About regex: read Docs/AkelHistory-Eng.txt and Manual>>Regular expression syntax (a lot of changes).
updating was a pain
Posted: Wed Apr 22, 2015 6:21 pm
by Hanging
Well, I updated, and it took about an hour. After I unzipped the archive into my akelpad folder, I found, unfortunately, that you were wrong: when I started the program it turned out that all of my customizations were lost, and it told me I had to update a bunch of the plugins I was using. So I did that too, then had to re-implement everything: re-initialize all the plugins w/ini files, rebuild the menus, etc.
At least the regex is working now. But there's got to be a better way to retain user customizations from one version to another.
Hanging wrote:and it told me I had to update a bunch of the plugins I was using.
I'm sorry I did thought that update plugins is evident need.
I tried to update 4.8.0 to 4.9.3: downloaded AkelPad-4.9.3-bin-eng.zip, PlugsPack.zip and unpacked.
My menu and toolbars* works fine, but three items with error, because plugin ContextMenu now checks the syntax more strictly: