trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2012

Re: [trinity-devel] A patch to force kate to use existing session.

From: Calvin Morrison <mutantturkey@...>
Date: Thu, 26 Jan 2012 14:54:30 -0500
On 26 January 2012 14:34, Calvin Morrison <mutantturkey@...> wrote:
> On 26 January 2012 14:31, Timothy Pearson <kb9vqf@...> wrote:
>>>> I've been looking for a way to do this, and Darrell also
>>>> mentioned
>>>> that he was looking for a was to use the Multiple Document
>>>> Interface
>>>> with firefox.
>>>>
>>>> I have written a patch that will enable you to only use a
>>>> single kate
>>>> window. It is controlled by a kate kconfig option and can be
>>>> changed
>>>> under kate's general settings tab.
>>>
>>> Looks like the new option is placed in $TDEHOME/share/config/katerc
>>> [General] UseInstance=0/1?
>>>
>>> I see the check box in your patch, but I haven't yet tried to build.
>>
>> Something else that might be interesting to add is an override flag that,
>> if passed to Kate, launches in the desired instance mode.  For example
>> --sdi or --mdi.
>>
>> Tim
>
>
> That is a very good point. I will add a --sdi flag then.
>
> what happens when a user does -u with this patch? nothing at all.
>
> there is an if statement that states something like this:
> if MDI enabled or -U option then open in the current instance.
>
> I would like someone to test it as well, but I will make modifications
> and add it to the bug tracker

Added a flag -f or --force-sdi which works. if -u or the MDI is
enabled via kconfig, they will be overridden by this flag.

I will upload it to the tracker.