Ulipad + ctags

1 view
Skip to first unread message

Mkdir

unread,
Dec 7, 2006, 12:19:00 PM12/7/06
to ulipad
Hey!

I have ctags file in the root directory of my project
(~/projects/philantrack/trunk/tags).
How I can use it in the UliPad editor?

I have file named '_project' (~/projects/philantrack/trunk/_project)
which is containing the following stings:

[ctags]
1 = tags

But I cannot to jump to definitions of functions, methods, etc...
Where is reason?

limodou

unread,
Dec 7, 2006, 8:08:23 PM12/7/06
to uli...@googlegroups.com
I'll check the source, it's maybe a bug.

--
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

limodou

unread,
Dec 7, 2006, 8:47:45 PM12/7/06
to uli...@googlegroups.com
On 12/8/06, Mkdir <ivan....@gmail.com> wrote:
>
I found the bug, and fix it. You can update from svn and try it.

Mkdir

unread,
Dec 8, 2006, 12:36:18 AM12/8/06
to ulipad
Dear, Limodou.
Great! It worked! But it half-worked... =)

I have some cheetah file with following stuff:

#extends Servlets.IntroPage
#implements writeContent

The 'writeContent' keyword is containing in the my ctags file.
I press Ctrl+I, and I see new tab (Somefile.py). It's right file! And I
have right scrollbar position, but I don't see cursor pointer into it!
Why?


P.S.: Thank you for interactive bugfixing! ;)

limodou

unread,
Dec 8, 2006, 1:09:42 AM12/8/06
to uli...@googlegroups.com
On 12/8/06, Mkdir <ivan....@gmail.com> wrote:
>
Ok, I just jump the line that match the definition, but not locate the
real word. Because you can see the tags file, they are regular
expression in many cases, maybe not only one word, so I don't make the
match.

Mkdir

unread,
Dec 8, 2006, 2:44:30 AM12/8/06
to ulipad

"""limodou wrote:
"""
> Ok, I just jump the line that match the definition, but not locate the
> real word. Because you can see the tags file, they are regular
> expression in many cases, maybe not only one word, so I don't make the
> match.

Hmmm... I have _one_ definition of function. Not two or five, hehe =)
In my tags file I have strings like:

Alert Source/DataObjects/Objects.py /^class Alert(SQLObject):$/;"
c

Is it regular expression? Unlikely.
Because special metasymbols `(` and `)` in regexp signifies _group_,
not same symbols.
I assume it's not regular expression!


Ok, let's look documentation about ctags file format:
http://ctags.sourceforge.net/ctags.html#lbAH
Quote:
"EX command used to locate the tag within the file; generally a search
pattern (either /pattern/ or ?pattern?) or line number (see --excmd)."

It's search pattern only! I propose match first finding within the file
and set cursor there.
Because in most cases the Tag Definition have _one_ position, you know.

Do you agree with me? =)

limodou

unread,
Dec 8, 2006, 2:55:18 AM12/8/06
to uli...@googlegroups.com
On 12/8/06, Mkdir <ivan....@gmail.com> wrote:
>
>
maybe two of us didn't know each other. I mean that UliPad will find
the exact line number of the identification, and will move the cursor
to that line. So you should see the cursor stopping at that line. Is
that you want? Or you want the cursor should stop at the real column
of the word except for the line?

I mean I just don't set the cursor to the real column, but the cursor
should indeed stops at the real line number.

Mkdir

unread,
Dec 8, 2006, 3:20:02 AM12/8/06
to ulipad
"""limodou wrote:"""
> maybe two of us didn't know each other.
Maybe =))

> I mean that UliPad will find
> the exact line number of the identification, and will move the cursor
> to that line. So you should see the cursor stopping at that line. Is
> that you want?

Yap!

> Or you want the cursor should stop at the real column
> of the word except for the line?

Nope. Stop cursor at finding line that will be enough. But cursor is
hide. I don't see it!

Look at screenshots:
Screenshot #1. I stop cursor at keyword and press Ctrl+I.
http://exception.org.ua/data/scr1.jpg
Screenshot #2. I see new tab, but I don't see cursor.
http://exception.org.ua/data/scr2.jpg

I mean cursor is invisible! WTF? I use Linux.

limodou

unread,
Dec 8, 2006, 3:33:42 AM12/8/06
to uli...@googlegroups.com
On 12/8/06, Mkdir <ivan....@gmail.com> wrote:
>
I work at win platform, and I indeed see the cursor. I'll check it in Linux.

Mkdir

unread,
Dec 8, 2006, 5:49:02 AM12/8/06
to ulipad
Ok.
One more incorrect behaviour.
Cheetah-template file contains string:

#extends Servlets.AskerManageFundingAreas

I stop cursor an `AskerManageFundingAreas` keyword and press Ctrl+I,
but ulipad doesn't match that keyword. Editor try find
`Servlets.AskerManageFundingAreas` keyword instead
`AskerManageFundingAreas`.

Ulipad match this keyword when I insert space between `Servlets.' and
`AskerManageFundingAreas'.

P.S.: Vim found this keyword successfully.

limodou

unread,
Dec 8, 2006, 7:34:17 AM12/8/06
to uli...@googlegroups.com
On 12/8/06, Mkdir <ivan....@gmail.com> wrote:
>
Yeah. UliPad treats '.' as a word character. If you want to select
AskerManageFundingAreas, you can double click on the word, so this
will select the word, without '.' character, and then press Ctrl+I,
this will only match the selected text.

limodou

unread,
Dec 10, 2006, 6:06:11 AM12/10/06
to uli...@googlegroups.com
> I work at win platform, and I indeed see the cursor. I'll check it in Linux.
>
I'v fixed the bug, and you can try it. You should update the source
code from svn.
Reply all
Reply to author
Forward
0 new messages