Page 93 of 99

Posted: Tue Apr 05, 2016 8:25 pm
by Kley
SessionMenu.js
Добавлена возможность изменения способа сортировки пунктов меню с именами файлов.

Posted: Wed Apr 06, 2016 11:12 am
by InFive
Kley wrote:SessionMenu.js
Добавлена возможность изменения способа сортировки пунктов меню с именами файлов.
спасибо за "порядок сортировки, как в файле сессии"...

Posted: Fri Apr 08, 2016 5:58 pm
by KDJ
TextReplace.js
Added:
- option "Batch replace",
- protection against adding existing templates,
- option "Sort" in templates menu.

TextReplace_function.js
Adapted to "Batch replace" option from TextReplace.js.

Posted: Fri Apr 08, 2016 8:13 pm
by YuS
KDJ wrote:TextReplace.js

Code: Select all

  else if (AkelPad.GetLangId(0 /*LANGID_FULL*/) == 1049) //Russian
  {
    ...
    sTxtBatch        = 'Пакет:';                                    //new
    ...
    sTxtBatchRepl    = '&Пакетная замена';                            //new
    ...
    sTxtBatchFile    = 'Пакетный файл';                                //new
    sTxtNoBatchFiles = '<нет пакетных файлов>';                          //new
    ...
    sTxtSort         = 'Сортировать';                                      //new
    ...
    sTxtFileNotExist = 'Файл не существует!';                      //new
    sTxtFileNoData   = 'Файл не содержит правильных данных!';         //new
    ...
    sTxtBatchErr     = 'Ошибка в пакетном файле, строка: ';               //new
    sTxtNameExists   = 'Имя уже существует!';                      //new
    sTxtTemplExists  = 'Шаблон уже существует!';                  //new
  }

Posted: Sat Apr 09, 2016 12:59 pm
by KDJ
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.

Code: Select all

AkelPad.WriteFile("C:\\MyFile.txt", "Text", -1, 65001, true, 0x2 /*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.
Scripts плагин v18.4

Posted: Tue Apr 26, 2016 1:34 pm
by InFive
в скриптах по работе с закладками не нахожу возможность ставить закладки на строки при поиске и после делать поиск/замену только в строках с закладками... такое есть при работе с закладками?

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 я ничего связанного с Закладками не вижу... версия скрипта последняя...

Posted: Tue Apr 26, 2016 8:47 pm
by KDJ
InFive
Find all -> Bookmark lines.