Re: [textadept] Re: using ctags

From: mitchell <c....at.caladbolg.net>
Date: Tue, 17 Aug 2010 09:49:36 -0400 (Eastern Daylight Time)

Hi olzvoid,

> so i have a prototype working, only useful function is currenly 'open'
> in the module - call it via command entry with
> "_m.textadept.panel_tags.open()". now how do i make it (the list of
> tags) clickable, and jump to the position in the source file?

Take a look at modules/textadept/find.lua's 'goto_file' function. What you
should do is connect a function like that to a 'double_click' event.
Notice how find buffers have a special type (buffer._type) so a
'double_click' event isn't called for just any buffer. Hopefully that
points you in the right direction.

mitchell

>
> any ideas?
> the draft code is attached.
>
> olzvoi
>
> On 12 August 2010 23:27, olzvoi <olz....at.gmail.com> wrote:
>>> You could maybe use this to display them in a separate buffer/view.
>>
>> ok, i will try to do it, the code looks good. but can you or anyone
>> give me directions, how to proceed?
>>
>> On Aug 12, 12:15�pm, Robert <ro....at.web.de> wrote:
>>> On Wed, Aug 11, 2010 at 8:27 PM, Olzvoi <olz....at.gmail.com> wrote:
>>>> has anyone used ctags in combination with ta? can you share your
>>>> code/experience? i wish something like taglist plugin
>>>> (http://vim-taglist.sourceforge.net/) for vim.
>>>
>>>> -- olzvoi
>>>
>>> Textadept once had a project manager with ctags support. The code
>>> there might be useful for parsing ctags files:http://code.google.com/p/textadept/source/browse/core/ext/pm/ctags_br...
>>>
>>> You could maybe use this to display them in a separate buffer/view.
>>>
>>> Robert
>>
>> --
>> You received this message because you are subscribed to the Google Groups "textadept" group.
>> To post to this group, send email to textadept.at.googlegroups.com.
>> To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups "textadept" group.
> To post to this group, send email to textadept.at.googlegroups.com.
> To unsubscribe from this group, send email to textadept+unsubscribe.at.googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/textadept?hl=en.
>
>

mitchell
Received on Tue 17 Aug 2010 - 09:49:36 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:51:00 EST