XBrackets plugin

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

XBrackets plugin

Post by Instructor »

AkelBrackets plugin for AkelPad 3.1.2 (and above)

This plugin allows to autocomplete brackets ([{""}])
i.e. it inserts corresponding right bracket when
the left bracket is typed.
The plugin uses "smart" autocompletion:
- next character is analysed for ([{ brackets
- next & previous characters are analysed for " quote

(C) 2006, Vitaliy Dovgan
dvv81 <at> ukr <dot> net


<<Download>>
Last edited by Instructor on Mon Apr 21, 2008 1:46 pm, edited 2 times in total.

Offline
Posts: 5
Joined: Sun Jan 07, 2007 5:44 am
Location: China

Post by Yuyu »

how about adding the function of highlighting the matched (the other)bracket ?
i think this is more practical. :wink:

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

Post by DV »

Yuyu wrote:how about adding the function of highlighting the matched (the other)bracket
В смысле, подсвечивать открывающую и закрывающую скобку, если курсор находится слева или справа от одной из скобок? То есть:
|[пример текста] и [пример текста|]
Или подсвечивать скобки при любой позиции курсора между этими скобками? То есть:
[пример| текста]
| - это кусор ;)

Offline
Posts: 5
Joined: Sun Jan 07, 2007 5:44 am
Location: China

Post by Yuyu »

:shock:
sorry that i have no idea about Russian....
:cry:

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

Post by DV »

Yuyu wrote:sorry that i have no idea about Russian....
Not a problem.
I asked: do you want to highlight brackets when the cursor is near to one of the brackets, e.g.
|[some text] and [some text|]
or the brackets must be highlighted when a cursor is at any position between them, e.g.
[some| text]
| - it is a cursor :)

Offline
Posts: 30
Joined: Tue Nov 28, 2006 7:26 am

Post by SpellCaster »

Suppose the 1st variant is much more simple to realize =)

Offline
Posts: 5
Joined: Sun Jan 07, 2007 5:44 am
Location: China

Post by Yuyu »

DV wrote:
Yuyu wrote:sorry that i have no idea about Russian....
Not a problem.
I asked: do you want to highlight brackets when the cursor is near to one of the brackets, e.g.
|[some text] and [some text|]
or the brackets must be highlighted when a cursor is at any position between them, e.g.
[some| text]
| - it is a cursor :)
the first option. :) :idea:

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

Post by DV »

OK, I'll try to implement this. As I see, it needs additional settings dialog with checkboxes "Autocomplete brackets" and "Highlight brackets" to turn these options on and off.
Also I'm not sure with Undo/Redo support: brackets highlighting is actually text modifying, isn't it? So, how can I keep previous Undo/Redo buffers without modifying/clearing them while highlighting brackets? Any ideas?

Offline
Posts: 5
Joined: Sun Jan 07, 2007 5:44 am
Location: China

Post by Yuyu »

I'm a layman about programming. :(
But the txt file doesn't have format, right?
so, as I see, highlighting maybe not text modifying. it's just about programming.
my guess..

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

Post by DV »

I'll try to use the same approach as in the HighLight plugin. But not now, probably, after a week or two.

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

Post by DV »

I'm back :) And I must say that active brackets highlighting is more complicated thing than I expected. Anyway, now it's basically implemented. I think, we'll see the final version on the next week. It will be for AkelPad 3.2.1.

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

Post by DV »

Just for information: the new version of the plugin already exists, but it's a little buggy. The plugin will be released after all the bugs will be corrected.

И то же самое па-а-руссски :) Новая версия плагина уже существует, но она слегка глюкавая. Плагин будет выпущен после устранения всех ошибок.

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

Post by DV »

Официально заявляю, что окончательная версия плагина AkelBrackets 1.1 доступна для скачивания :) Для закачки воспользуйтесь ссылкой вверху.
The official release of AkelBrackets ver. 1.1 is already here. Use the download link above.

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

Post by DV »

DV wrote:Официально заявляю, что окончательная версия плагина AkelBrackets 1.1 доступна для скачивания :) Для закачки воспользуйтесь ссылкой вверху.
The official release of AkelBrackets ver. 1.1 is already here. Use the download link above.
От блин, дата сообщения не обновилась :?

Offline
Posts: 6
Joined: Fri Mar 09, 2007 8:39 pm

Post by NakaRB »

плагин не обрабатывает множественные вложенные скобки одного типа, например, (()). с чередующимися скобками - все ок.
Post Reply