Scripts discussion (1)
- Author
- Message
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
Так, у меня тут завалялось:
LinesFilter_mod3.js
Настройки через AkelPad.ScriptSettings() и галочка "To new document".
Насчет полезности последнего не особо уверен – так и не нашлось времени на опробования (заодно повышается вероятность глюков).
LinesFilter_mod3.js
Настройки через AkelPad.ScriptSettings() и галочка "To new document".
Насчет полезности последнего не особо уверен – так и не нашлось времени на опробования (заодно повышается вероятность глюков).
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
-
Offline
- Posts: 3
- Joined: Thu Sep 16, 2010 10:23 am
Запрос на усовершенствование скрипта
Доброе утро.
Так как мои познания в скриптах ниже требуемого, прошу автора RegExpTestJS.js - KDJ рассмотреть такое усовершенствование/доработку своего скрипта:
PS: Можно, так же, рассмотреть "совместную" работу с скриптом Multy_SR.js, куда все требуемые переменные и условия regexp легко передать (см. описание запуска скрипта).
Так как мои познания в скриптах ниже требуемого, прошу автора RegExpTestJS.js - KDJ рассмотреть такое усовершенствование/доработку своего скрипта:
- Добавляется кнопка "From file" по нажатию которой текст в поле "Src" заменяется текстом из текущей активной вкладки.
- Добавить кнопку "Apply file" по нажатию которой применяется поиск и замена текста в текущей активной вкладке по указанным условиям и параметрам regexp. Требования выполнения: влючен параметр "Str.replace (RE, With)" и заполнено соответствующие текстовое поле.
- Самый идеальный вариант: добавить еще одну кнопку, по нажатию которой можно применить указанную замену к многим файлам (по указанному пути и расширению. Но понимаю, что это организовать более хлопотно :).
PS: Можно, так же, рассмотреть "совместную" работу с скриптом Multy_SR.js, куда все требуемые переменные и условия regexp легко передать (см. описание запуска скрипта).
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
Hi laktionov.ivan
Thank you for your interest in my script RegExpTestJS.js.
This script is designed to test and learn RgExp on small parts of text. Not to replace the text.
You can copy selected text from AkelPad window to the tester window. Please use "Copy/Pase->Paste from AkelPad".
However, size of the text in the dialog script is limited to 65535 characters.
To search and replace text by means of RegExp, you can use SearchReplace.js script written by Instructor.
This script contains replacing option in many texts - "All files".
It also has the possibility of saving the conversion parameters - button ">".
Thank you for your interest in my script RegExpTestJS.js.
This script is designed to test and learn RgExp on small parts of text. Not to replace the text.
You can copy selected text from AkelPad window to the tester window. Please use "Copy/Pase->Paste from AkelPad".
However, size of the text in the dialog script is limited to 65535 characters.
To search and replace text by means of RegExp, you can use SearchReplace.js script written by Instructor.
This script contains replacing option in many texts - "All files".
It also has the possibility of saving the conversion parameters - button ">".
-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
InsertFileNamePath.js
Added: popup menu, if the script was called without arguments.
Changed: inserting while columnar selection is set.
Added: popup menu, if the script was called without arguments.
Changed: inserting while columnar selection is set.
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
converter-test.js
Added option to encode as data URI (data:text/plain;charset=UTF-8;base64,VGVzdA==).
Added support to decode data URIs.
P.S. But it's better to extend encode/decode URI component: https://developer.mozilla.org/en/data_URIs
Added option to encode as data URI (data:text/plain;charset=UTF-8;base64,VGVzdA==).
Added support to decode data URIs.
P.S. But it's better to extend encode/decode URI component: https://developer.mozilla.org/en/data_URIs

-
Offline
- Posts: 1949
- Joined: Sat Mar 06, 2010 7:40 pm
- Location: Poland
InsertDateFromCalendar.js
Changed: inserting, if columnar selection is set.
Changed: inserting, if columnar selection is set.
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
Updated: converter-test.jsInfocatcher wrote:P.S. But it's better to extend encode/decode URI component: https://developer.mozilla.org/en/data_URIs
*Added option to encode as data URI (data:text/plain;charset=UTF-8,Test or data:text/plain;charset=UTF-8;base64,VGVzdA==).
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
-
Offline
- Posts: 1873
- Joined: Mon Aug 06, 2007 1:07 pm
- Contact:
getHash.js
Released test version (changes: 1, 2, 3, 4).
goToLongestLine.js
Released test version.
Added -autoGo argument.
measuresConverter.js
Released test version.
Added asynchronous update currency data on startup and -updateOnStartup argument.
openRelativeFile.js
Added support for openRelativeFile-options.js file.
runScript.js
Released test version.
toggleComments.js
Released test/experimental version (changes: 1, 2, 3, 4, 5).
Released test version (changes: 1, 2, 3, 4).
goToLongestLine.js
Released test version.
Added -autoGo argument.
measuresConverter.js
Released test version.
Added asynchronous update currency data on startup and -updateOnStartup argument.
openRelativeFile.js
Added support for openRelativeFile-options.js file.
runScript.js
Released test version.
toggleComments.js
Released test/experimental version (changes: 1, 2, 3, 4, 5).