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

From: Procházka Lukáš Ing. <LPr.att.pontex.cz>
Date: Tue, 28 Aug 2018 15:18:56 +0200

Hello,

thank you for sharing you code.

I have some more questions - I'm not experienced user of TA, just beginner, so -

- here's my TA directory tree:

TextAdept\core
TextAdept\doc
TextAdept\etc
TextAdept\lexers
TextAdept\lib
TextAdept\modules
TextAdept\scripts
TextAdept\share
TextAdept\src
TextAdept\themes
TextAdept\core\images
TextAdept\core\locales
TextAdept\doc\images
TextAdept\etc\fonts
TextAdept\etc\gtk-2.0
TextAdept\etc\pango
TextAdept\lexers\themes
TextAdept\lib\gdk-pixbuf-2.0
TextAdept\lib\gtk-2.0
TextAdept\lib\gdk-pixbuf-2.0\2.10.0
TextAdept\lib\gtk-2.0\2.10.0
TextAdept\lib\gtk-2.0\2.10.0\engines
TextAdept\modules\ansi_c
TextAdept\modules\lua
TextAdept\modules\textadept
TextAdept\scripts\osx
TextAdept\share\themes
TextAdept\share\themes\Default
TextAdept\share\themes\Emacs
TextAdept\share\themes\MS-Windows
TextAdept\share\themes\Raleigh
TextAdept\share\themes\Default\gtk-2.0-key
TextAdept\share\themes\Emacs\gtk-2.0-key
TextAdept\share\themes\MS-Windows\gtk-2.0
TextAdept\share\themes\Raleigh\gtk-2.0

- where should I put your 'textadept_outline_module.lua'? - Into 'TextAdept\modules'?

- How do I display the Code Explorer from within TA?

Best regards,

LuP

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

> 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 - 09:18:56 EDT

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