[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta
Subject:    Re: [Quanta] command line to open a file in new tab?
From:       "Christopher J. Bottaro" <cjbottaro () alumni ! cs ! utexas ! edu>
Date:       2005-11-01 17:49:42
Message-ID: dk89m4$qrm$1 () sea ! gmane ! org
[Download RAW message or body]

Eric Laffoon wrote:

> On Monday 31 October 2005 9:19 am, Christopher J. Bottaro wrote:
>> Is there a command line for quanta to open a file in a new tab of an
>> existing instance of quanta?  If I do the following:
>> quanta sourcefile.php
>> It starts a new instance of quanta and loads the file.  I want it to load
>> the file in a new tab of an existing instance of quanta.
>>
>> Thanks.
>>
> I'm sure it could be done with DCOP, but it's much easier to make your
> first instance of Quanta unique. Look at this in a shell...
> quanta --help
> Note the options. If you make your default call to Quanta "quanta
> --unique" then every time you open a file in Konqueror selecting Quanta as
> the application it will open in a new tab of the open instance.

Cool, that worked.  I set an alias:
alias quanta='quanta --unique > /dev/null 2>&1'
Thanks!

-- Christopher

> 
> Note this makes DCOP scripts easier to write as you no longer need a pid
> on the application name, but it may make some existing scripts choke if
> they don't account for this. You will also lose the ability to have two
> simultaneous projects open in two windows.


_______________________________________________
Quanta mailing list
Quanta@mail.kde.org
https://mail.kde.org/mailman/listinfo/quanta
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic