Scripts discussion (3)
- Author
- Message
-
Offline
- Posts: 96
- Joined: Tue Nov 10, 2015 4:56 am
спасибо за "порядок сортировки, как в файле сессии"...Kley wrote:SessionMenu.js
Добавлена возможность изменения способа сортировки пунктов меню с именами файлов.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
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.
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.
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
-
Offline
- Posts: 9
- Joined: Fri Jan 29, 2016 11:04 am
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).
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).
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
-
Offline
- Posts: 202
- Joined: Sat Mar 28, 2015 2:36 pm
- Location: Russia
SessionMenu.js
Добавлено:
пункт меню "Добавить текущий файл";
пункт меню "Показывать путь файлов" (см. параметр -p=2).
Instructor
Есть вопрос по поводу AkelPad.WriteFile() с флагом WFF_APPENDFILE.
Перед каждой добавляемой строкой добавляется 0xfeff.
Нельзя ли в самом Scripts плагине выполнять проверку редактируемого файла на наличие BOM?
Если файл пуст и\или не имеет BOM - добавлять. Иначе, игнорировать true.
Ну, или хотя бы в Scripts-xxx.txt обратить на это внимание. Спасибо.
Добавлено:
пункт меню "Добавить текущий файл";
пункт меню "Показывать путь файлов" (см. параметр -p=2).
Instructor
Есть вопрос по поводу AkelPad.WriteFile() с флагом WFF_APPENDFILE.
Code: Select all
AkelPad.WriteFile("C:\\MyFile.txt", "Text", -1, 65001, true, 0x2 /*WFF_APPENDFILE*/);
Нельзя ли в самом Scripts плагине выполнять проверку редактируемого файла на наличие BOM?
Если файл пуст и\или не имеет BOM - добавлять. Иначе, игнорировать true.
Ну, или хотя бы в Scripts-xxx.txt обратить на это внимание. Спасибо.
-
Offline
- Site Admin
- Posts: 6311
- Joined: Thu Jul 06, 2006 7:20 am
Scripts плагин v18.4Kley wrote:Перед каждой добавляемой строкой добавляется 0xfeff.