Re: [code] [textadept] FR: Code Explorer

From: Michal Kottman <k0mpjut0r.att.gmail.com>
Date: Tue, 28 Aug 2018 14:50:20 +0200

On Mon, 27 Aug 2018 at 23:42, Michal Kottman <k0mpjut0r.att.gmail.com> wrote:

> On Mon, Aug 27, 2018, 9:02 PM ProchĂĄzka LukĂĄĹĄ Ing. <LPr.att.pontex.cz> wrote:
>
>> would it be possible to implement a "Code Explorer" (maybe separate)
>> window?
>> ...
>> The Code Explorer should display this (should be configurable for various
>> languages - here: ConTeXt/LaTeX, but let's talk about the goal first, later
>> about options to configure):
>>
>> ---- Code Explorer
>> Sec (section)
>> Subsec (subsection)
>> ----
>>
> Yes, it is possible. I have a module ("outline") based on TextReux [1]
> that after a keypress shows a buffer with the outline (functions, globals,
> ...) of the current file with quick-search capability. So e.g. I would
> press Alt-O, type in "sec<Enter>" and land directly on first section.
>

Please see https://pastebin.com/1RAF9Sbz . You could add something like
outline.patterns['latex'] = {'\\section', '\\subsection'} in your init.lua.

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 28 Aug 2018 - 08:50:20 EDT

This archive was generated by hypermail 2.2.0 : Wed 29 Aug 2018 - 06:26:22 EDT