Scripts discussion (1)

Discuss and announce AkelPad plugins
Locked
  • Author
  • Message
Offline
Site Admin
Posts: 6403
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

Infocatcher
http://infocatcher.ucoz.net/js/akelpad_ ... cripts.zip
Можно файл назвать Infocatcher.zip, чтобы каждый раз не переименовывать?

Offline
Posts: 1873
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

Instructor
Можно, назвал.
А старая ссылка теперь никуда не ведет. :)

Offline
Posts: 1873
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

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

Offline
Site Admin
Posts: 6403
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

Infocatcher
Так они сейчас и так через AkelPad.ScriptSettings().

Offline
Posts: 1873
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post by Infocatcher »

Instructor
А в моей предыдущей модификации – нет, я ее обновил.

Offline
Site Admin
Posts: 6403
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

Infocatcher
А :)

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

InsertDateFromCalendar.js
Added:
Help for date format and time format.
Color settings.


Image

Image

Offline
Posts: 3
Joined: Thu Sep 16, 2010 10:23 am

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

Post by laktionov.ivan »

Доброе утро.

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

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

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post 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 ">".

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

InsertFileNamePath.js
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:

Post 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 :)

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

InsertDateFromCalendar.js
Changed: inserting, if columnar selection is set.

Offline
Posts: 1873
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post 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==).


Offline
Posts: 1873
Joined: Mon Aug 06, 2007 1:07 pm
Contact:

Post 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).
Locked