trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: December 2016

Re: [trinity-users] Kate can't remember to 'Hide Documents'

From: Michele Calgaro <michele.calgaro@...>
Date: Sun, 18 Dec 2016 11:53:00 +0800
On 2016/12/17 11:16 PM, Stefan Krusche wrote:
> Am Samstag 17 Dezember 2016 schrieb Leslie Turriff:
>> 	How can I "remind" Kate that I have set 'Window -> Hide Documents'? I've
>> set it and saved it in the default session, but every time I reopen Kate,
>> there's that irritating document list.
>> 	I searched the forum archive, but though I've seen other folks complain
>> about the presence of the document list, all of the responses seem
>> disinclined to provide an actual solution to its presence. :-)
>>
>> Leslie
> 
> There seems to be something strange about kate's handling of default session 
> indeed. When you start kate with a pristine config dir it opens with new 
> session and side bar and document list shown. Kate does not seem to save the 
> settings for the default session, as you said. I tried and it didn't.
> 
> But with other sessions I created myself it works. I set option "save session" 
> on exit and when I open the session next time the document list is not shown 
> like I wanted.
> 
> Unfortunately I do nowhere see an option to set default session. However, it 
> appeared once, in an opening dialog to choose the session to open and there was 
> an switch to let kate always open that chosen session when starting. But I 
> can't reproduce that.
> 
> Default session seems to be "hardwired" and when you open kate with "new 
> session" it opens that one anyways. But you can save your own empty session 
> (without showing document list) and let kate choose that one instead when 
> starting.
> 
> After a little experimenting I found this workaround:
> 
> 1) Start with pristine kate config dir
> 
> cp ~/.trinity/share/apps/kate{,orig}
> 
> 2) Open kate with no arguments and close it
> 
> 3) Open ~/.trinity/share/apps/kate/sessions/default.session with an editor and
>    change these options to "false" and save file.
> Kate-MDI-Sidebar-Visible=false
> Kate-MDI-ToolView-kate_filelist-Visible=false
> 
> 4) Next time you open kate it will neither show the side bar nor the document 
> list.
> 

The default session up to R14.0.x is hardwired in the code, if a session does not exist the default session is
created/selected by default.

Kate -> Settings -> Configure Kate -> Session: provides option for session management when opening and closing Kate.
In particular if you choose "Manually choose session" you will be presented with a dialog where to select the session to
use when you start Kate

The Session menus instead is where you can load/save sessions. Once you set up your Kate window as you wish, use the
Session menu to save it to file.

In R14.1.x, session management will be different, with a new session panel available in the GUI for easy operations on
different sessions. The Session menu will also be updated. Currently it looks as shown in the attachment, although the
code has not yet been pushed to the main repo.
There will be more development on that when time allows. Probably the additional functionality will end up in R14.2.x.

Cheers
  Michele


Attachments: