Page 71 of 97

Posted: Thu Mar 31, 2011 4:48 pm
by Instructor
Infocatcher
http://infocatcher.ucoz.net/js/akelpad_ ... cripts.zip
Можно файл назвать Infocatcher.zip, чтобы каждый раз не переименовывать?

Posted: Thu Mar 31, 2011 6:57 pm
by Infocatcher
Instructor
Можно, назвал.
А старая ссылка теперь никуда не ведет. :)

Posted: Thu Mar 31, 2011 7:16 pm
by Infocatcher
Так, у меня тут завалялось:
LinesFilter_mod3.js
Настройки через AkelPad.ScriptSettings() и галочка "To new document".
Насчет полезности последнего не особо уверен – так и не нашлось времени на опробования (заодно повышается вероятность глюков).

Posted: Fri Apr 01, 2011 2:53 pm
by Instructor
Infocatcher
Так они сейчас и так через AkelPad.ScriptSettings().

Posted: Fri Apr 01, 2011 4:25 pm
by Infocatcher
Instructor
А в моей предыдущей модификации – нет, я ее обновил.

Posted: Fri Apr 01, 2011 4:32 pm
by Instructor
Infocatcher
А :)

Posted: Sun Apr 03, 2011 8:18 pm
by KDJ
InsertDateFromCalendar.js
Added:
Help for date format and time format.
Color settings.


Image

Image

Запрос на усовершенствование скрипта

Posted: Mon Apr 04, 2011 6:27 am
by laktionov.ivan
Доброе утро.

Так как мои познания в скриптах ниже требуемого, прошу автора RegExpTestJS.js - KDJ рассмотреть такое усовершенствование/доработку своего скрипта:
  • Добавляется кнопка "From file" по нажатию которой текст в поле "Src" заменяется текстом из текущей активной вкладки.
  • Добавить кнопку "Apply file" по нажатию которой применяется поиск и замена текста в текущей активной вкладке по указанным условиям и параметрам regexp. Требования выполнения: влючен параметр "Str.replace (RE, With)" и заполнено соответствующие текстовое поле.
  • Самый идеальный вариант: добавить еще одну кнопку, по нажатию которой можно применить указанную замену к многим файлам (по указанному пути и расширению. Но понимаю, что это организовать более хлопотно :).
Заранее благодарю.

PS: Можно, так же, рассмотреть "совместную" работу с скриптом Multy_SR.js, куда все требуемые переменные и условия regexp легко передать (см. описание запуска скрипта).

Posted: Mon Apr 04, 2011 6:21 pm
by KDJ
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 ">".

Posted: Wed Apr 06, 2011 6:34 pm
by KDJ
InsertFileNamePath.js
Added: popup menu, if the script was called without arguments.
Changed: inserting while columnar selection is set.

Posted: Thu Apr 07, 2011 6:44 pm
by Infocatcher
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 :)

Posted: Thu Apr 07, 2011 8:09 pm
by KDJ
InsertDateFromCalendar.js
Changed: inserting, if columnar selection is set.

Posted: Thu Apr 07, 2011 8:17 pm
by Infocatcher
Infocatcher wrote:P.S. But it's better to extend encode/decode URI component: https://developer.mozilla.org/en/data_URIs :)
Updated: converter-test.js
*Added option to encode as data URI (data:text/plain;charset=UTF-8,Test or data:text/plain;charset=UTF-8;base64,VGVzdA==).

Posted: Sat Apr 09, 2011 1:13 pm
by Infocatcher

Posted: Sat Apr 09, 2011 7:30 pm
by Infocatcher
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).