Re: [code] Possible callback used to manipulate items in gui.filteredlist() and io.snapopen()

From: Mitchell <m.att.foicica.com>
Date: Wed, 3 Apr 2013 23:08:06 -0400 (EDT)

Hi Ryan,

On Mon, 1 Apr 2013, Ryan Pusztai wrote:

> Hi Mitchell,
>
> I am wondering how I can make my paths shorter by using the unix style '~'
> in replacement to the full path to files that appear in the snapopen and
> filteredlist dialogs. This idea is not new. I got the idea from the
> "common" library [1] and love it, so I used to copy the snapopen() module
> functioins into my own modified display_filename.lua file. This leads to
> the functions getting out of date and may need updates for every release.
> Is there a better way? Maybe...
>
> I was wondering if you had any thoughts of ways to make this happen.
> Possibly making the functions gui.filteredlist() and io.snapopen() take a
> callback. The callback function would take the displayed text and returns a
> manipulated string. This would allow users to do simple and complex things
> to the items displayed.
>
> Do you think this is possible? If so can those features be added to TA?

This is an interesting idea. I've given it some thought and I'm not sure
how to add such a feature. Give me some more time to think about it and
I'll get back to you. Thanks for the suggestion!

Cheers,
Mitchell

-- 
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 Wed 03 Apr 2013 - 23:08:06 EDT

This archive was generated by hypermail 2.2.0 : Thu 04 Apr 2013 - 06:36:22 EDT