TextReplace.js
Added: transparency of the dialog box.
Updated: Russian translation by YuS.
Posted: Mon Apr 11, 2016 12:57 pm
by coherent
KDJ
A question on the TextReplace.js. I found that the cursor is not moved to the next item after pressing the "Replace single" button with the checked "Entire document" option. For this reason only the first item is changed. For example, I have 3 items "name" which I want to replace with "name1". Consequent pressing of the button "Replace single" changes the first item to "name1", "name11", "name111" and so on. Another two items are not changed. Is it feature?
PS. It is only in the case when the item I want to replace with involves the original one (name -> name1).
Posted: Mon Apr 11, 2016 6:05 pm
by KDJ
coherent
Yes, it works differently than standard "Replace" dialog.
For what you want to do, you should choose another range: "Caret - End" or "Selection".
"Entire document" range always means: from first character to last character.
Posted: Mon Apr 11, 2016 7:30 pm
by coherent
KDJ
So, it's feature. I'll keep that in mind. Thank you!
Posted: Tue Apr 12, 2016 8:07 pm
by Kley
SessionMenu.js
Добавлено:
пункт меню "Добавить текущий файл";
пункт меню "Показывать путь файлов" (см. параметр -p=2).
Instructor
Есть вопрос по поводу AkelPad.WriteFile() с флагом WFF_APPENDFILE.
Перед каждой добавляемой строкой добавляется 0xfeff.
Нельзя ли в самом Scripts плагине выполнять проверку редактируемого файла на наличие BOM?
Если файл пуст и\или не имеет BOM - добавлять. Иначе, игнорировать true.
Ну, или хотя бы в Scripts-xxx.txt обратить на это внимание. Спасибо.
Posted: Fri Apr 15, 2016 10:10 pm
by Skif_off
Instructor
Кажется, я как-то жаловался на проблемы с ChmKeyword.js в WinPE (только не получается найти, где ), таки вычислил причину: необходимо зарегать hhctrl.ocx (той инфы, которая уже внесена в реестр, не хватает).
Posted: Sat Apr 23, 2016 12:41 am
by Instructor
Kley wrote:Перед каждой добавляемой строкой добавляется 0xfeff.
в скриптах по работе с закладками не нахожу возможность ставить закладки на строки при поиске и после делать поиск/замену только в строках с закладками... такое есть при работе с закладками?
Posted: Tue Apr 26, 2016 3:29 pm
by Skif_off
InFive
Как-то писал о фиче с расстановкой закладок в Notepad++, KDJдобавлял (но это только первая часть вашего вопроса).
Posted: Tue Apr 26, 2016 8:41 pm
by InFive
Skif_off
к сожаления, в диалоге скрипта FindReplaceEx.js я ничего связанного с Закладками не вижу... версия скрипта последняя...