Re: [code] Open file in the current view

From: Robert <rob.g.att.web.de>
Date: Thu, 21 Mar 2013 08:09:39 +0100

Hi Ryan,

On Thu, Mar 21, 2013 at 3:44 AM, Ryan Pusztai <rpusztai.att.gmail.com> wrote:
> Hi Robert,
>
> Thanks for the reply. I am launching it from a context menu and I am
> gui.print() for some debugging. Do you think that if I remove the print it
> will work?

yes. I like to use gui.statusbar_text for debugging and there is also
_G.print for printing to stdout.

Robert

> Regards,
> Ryan
>
> On Mar 20, 2013 5:19 PM, "Robert" <rob.g.att.web.de> wrote:
>>
>> Hi Ryan,
>>
>> this should not happen I think. If I use `io.open_file('some_file')`
>> from the command entry or from a simple shortcut it opens in the
>> current view. Have you wrapped this in something else? Are you using
>> the `gui.print` function somehow? This function does create new views.
>>
>> Robert
>>
>> On Wed, Mar 20, 2013 at 9:45 PM, Ryan Pusztai <rpusztai.att.gmail.com> wrote:
>> > Hi,
>> >
>> > I am trying to open a file from disk in the current view. I found
>> > io.open_file() but that opens a new view every time. Is there another
>> > way to
>> > just open the file in the same view?
>> >
>> > Thanks.
>> > --
>> > Regards,
>> > Ryan
>> --
>> 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.
>>
>

-- 
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 Thu 21 Mar 2013 - 03:09:39 EDT

This archive was generated by hypermail 2.2.0 : Thu 21 Mar 2013 - 06:52:18 EDT