Re: [textadept] Text-based file browser on wiki

From: mitchell <c....at.caladbolg.net>
Date: Sat, 6 Nov 2010 21:04:31 -0400 (EDT)

Hi,

On Sat, 6 Nov 2010, Robert wrote:

> On Fri, Nov 5, 2010 at 4:22 PM, mitchell <c....at.caladbolg.net> wrote:
>> I'm trying to go mouseless on my Windows machine at work so I needed a way
>> to browse and open files efficiently in a directory tree for projects I'm
>> unfamiliar with. (Drag-drop from Explorer is what I used to do.) The result
>> is here:
>>
>> http://caladbolg.net/textadeptwiki/index.php?n=Main.FileBrowser
>>
>> Spacebar activates an entry (opening/closing directory or opening a file in
>> a split view).
>>
>
> Works great, however I get a segmentation fault when I have a slash at
> the end of the path I pass to init. I tested the calls to the lfs
> functions which work without problem so I don't know where the problem
> is.

This has to do with the event that sets the window title. The Lua pattern
needs there to be a "filename" after the last '/' or '\\'. Without it, an
error occurs which causes an infinite loop. Fixed on the wiki I think.

mitchell

>
> 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.
>
>

mitchell
Received on Sat 06 Nov 2010 - 21:04:31 EDT

This archive was generated by hypermail 2.2.0 : Thu 08 Mar 2012 - 11:53:18 EST