Scripts discussion (3)

Discuss and announce AkelPad plugins
Locked
  • Author
  • Message
Offline
Posts: 366
Joined: Mon Jan 10, 2011 5:28 pm
Contact:

Post by Lenchik »

KDJ
key 2 line content
Columns
from # to #
I want column numbers and all comparings to be optionally (two different options) counted from right, from end of lines.
Lines can be of different length and i want to compare them from end. Or if they have some parts of equal size at the end to be removed from comparing decision.


И заодно, а есть скрипт, который каждую бы строку поворачивал задом наперед. То есть как бы читать с конца?

Offline
Posts: 1161
Joined: Sun Oct 20, 2013 11:44 am

Post by Skif_off »

Lenchik wrote:И заодно, а есть скрипт, который каждую бы строку поворачивал задом наперед. То есть как бы читать с конца?
У Andrey_A_A посмотрите, что-то вроде InvertRevers.vbs, по крайней мере, очень похожее название :).

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

Post by KDJ »

TextMarker.js
Aded:
- context menu in edit fields,
- help for regular expressions.

Offline
Posts: 670
Joined: Thu Jun 03, 2010 8:47 am
Location: Сочи, Хоста
Contact:

Post by Andrey_A_A »


Offline
Posts: 1161
Joined: Sun Oct 20, 2013 11:44 am

Post by Skif_off »

Andrey_A_A
Для 4 в 3-м параметре можно прописать кодировку сохраняемого файла (по умолчанию 1251)
Вроде работает, спасибо, а почему переделали на мерзкий ANSI? UTF-8 все-таки универсальнее. В каком формате добавлять? "UTF-8" и "65001" не сработали, без кавычек, как в примере к AkelPad.WriteFile, тоже - скрипт валится с руганью на nCode в 37й строке: Несоответствие типа CInt

Offline
Posts: 670
Joined: Thu Jun 03, 2010 8:47 am
Location: Сочи, Хоста
Contact:

Post by Andrey_A_A »

В каком формате добавлять?

Code: Select all

Call("Scripts::Main", 1, "BookmarksPlus.vbs", `"4" "%a\AkelFiles\List\ListBookmarks.txt" "65001"`)
Skif_off Перекачайте последний архив

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

Post by KDJ »

Lenchik
SortLines.js, example:
Lines:

Code: Select all

wxyz
abcd
zyxw
dcba
After standard sort - read lines from beginning:

Code: Select all

abcd
dcba
wxyz
zyxw
After sort - read lines from end:

Code: Select all

dcba
abcd
zyxw
wxyz
Does it have to be this way?

Offline
Posts: 366
Joined: Mon Jan 10, 2011 5:28 pm
Contact:

Post by Lenchik »

Yes

Offline
Posts: 1161
Joined: Sun Oct 20, 2013 11:44 am

Post by Skif_off »

Andrey_A_A
Спасибо, работает. Правильно понимаю, что при каждом запуске с параметром 4 ListBookmarks.txt перезаписывается целиком?

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

Post by KDJ »

LineBoardBookmarks.js
Added: Russian translation by Skif_off.

Offline
Posts: 670
Joined: Thu Jun 03, 2010 8:47 am
Location: Сочи, Хоста
Contact:

Post by Andrey_A_A »

Code: Select all

при каждом запуске с параметром 4 ListBookmarks.txt перезаписывается целиком?
Да

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

Post by KDJ »

Lenchik
SortLines.js
Added: "Read from right to left" parameter.

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

Post by KDJ »

AkelPadManualSettings.js
Updated for AkelPad 4.9.0 (added flags 256 and 512 for manual parameter "MouseOptions").

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

Post by KDJ »

AkelPadManualSettings.js
Fixed: bug while change language.

DV
Offline
Posts: 1250
Joined: Thu Nov 16, 2006 11:53 am
Location: Kyiv, Ukraine

Post by DV »

KDJ,
Just discovered AkelPadDocsView.js, AkelPadManualSettings.js and AkelPadMethodsView.js (did not use them before) - it's really fantastic!
Actually, together with your other scripts such as TextMarker.js or Translator.js, they are more full-fledged plugins than just scripts.
What I'd like to propose is to have a more customizable Find Dialog in AkelPadDocsView.js (and then, probably, in AkelPadMethodsView.js), because its current very basic implementation is not handy enough. Could you consider to modify the Find Dialog similar to the following? --

Code: Select all

Text:
[....................................]

[ ] Match case

Direction:
(*) Down
( ) Up

Search in:
(*) Current document
( ) All documents
Locked