trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: December 2016

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

From: Stefan Krusche <linux@...>
Date: Sat, 17 Dec 2016 16:16:20 +0100
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.


Stefan