#62 Kate 14.1.* session management issue

Open
opened 2 months ago by chytrex · 6 comments
chytrex commented 2 months ago

Basic information

  • TDE version: R14.1.*
  • Distribution: Devuan Ascii
  • Hardware: amd64

Description

Kate’s session management is quite annoying in some setups. My setup is always to open new session + discard session on exit. I always use one session but I have my titlebar (and whats worse) and even button on taskbar cluttered with “without name:”.

This makes taskbar button almost useless as I can!t see name of opened document (only first few characters).

Whole this thing is not logical but confusing. Why I should care about session name if its default name and/or it is only session set up? Why it must look like part of file name? (It took me 15 minutes to figure out what’s that thing. I thought my file didn’t saved properly.

My proposal is to add few tweaks:

  • Add checkbox “Don’t show session name in titlebar”
  • Add checkbox “Don’t show session name in taskbar”
  • Add some logic that will check for settings and hide this when there are no other sessions set up
  • Add some logic that will hide this if its with default name
  • Swap positions of file name and session name and possibly distinguish session name from filename in some way.
  • Possibly add option to disable this session management at all.

I think it will help people in using kate as I know plenty of people with Trinity, most of them are devs/sysadmins in some sort, but none of them are using session management in Kate. So I guess my setup is pretty common and status quo is just more confusing than helpfull for people using this common setup. …

Steps to reproduce

Steps to reproduce: Disable session management as described above, look at taskbar/titlebar.

Screenshots

<!-- This is a comment. Please fill in the required fields below. The comments provide instructions on how to do so. Note: You do not need to remove comments. --> ## Basic information - TDE version: R14.1.* <!-- such as R14.0.6 - see tde-config -v --> - Distribution: Devuan Ascii <!-- such as Debian Stretch - see lsb_release -sd --> - Hardware: amd64 <!-- amd64 / i386 / armhf / ... --> <!-- Use SL/* labels to set the severity level. Please do not set a milestone. --> ## Description Kate's session management is quite annoying in some setups. My setup is always to open new session + discard session on exit. I always use one session but I have my titlebar (and whats worse) and even button on taskbar cluttered with "without name:". This makes taskbar button almost useless as I can!t see name of opened document (only first few characters). Whole this thing is not logical but confusing. Why I should care about session name if its default name and/or it is only session set up? Why it must look like part of file name? (It took me 15 minutes to figure out what's that thing. I thought my file didn't saved properly. My proposal is to add few tweaks: * Add checkbox "Don't show session name in titlebar" * Add checkbox "Don't show session name in taskbar" * Add some logic that will check for settings and hide this when there are no other sessions set up * Add some logic that will hide this if its with default name * Swap positions of file name and session name and possibly distinguish session name from filename in some way. * Possibly add option to disable this session management at all. I think it will help people in using kate as I know plenty of people with Trinity, most of them are devs/sysadmins in some sort, but none of them are using session management in Kate. So I guess my setup is pretty common and status quo is just more confusing than helpfull for people using this common setup. ... ## Steps to reproduce Steps to reproduce: Disable session management as described above, look at taskbar/titlebar. ## Screenshots <!-- If it seems useful, please provide provide one or more screenshots. -->
MicheleC added this to the R14.1.0 release milestone 2 months ago
MicheleC commented 2 months ago
Owner

Hi Petr, thanks for reporting the issue and proposing ideas for a solution. I have thought about it and I think what I will do is to add a checkbox for “Don’t show session name in titlebar”. This will also take care of not showing the session in the taskbr button, since such button shows the window title in it.

By the way, session management (especially with the new session panel) is very useful if you need to work on a set of different tasks on different times. With a simgle click you can easily switch between one session/task and another one. I encourage you or your friends to try this way of working, you should quickly see some benefit in your workflow, I think.

Hi Petr, thanks for reporting the issue and proposing ideas for a solution. I have thought about it and I think what I will do is to add a checkbox for "Don’t show session name in titlebar”. This will also take care of not showing the session in the taskbr button, since such button shows the window title in it. By the way, session management (especially with the new session panel) is very useful if you need to work on a set of different tasks on different times. With a simgle click you can easily switch between one session/task and another one. I encourage you or your friends to try this way of working, you should quickly see some benefit in your workflow, I think.
chytrex commented 2 months ago
Poster

Hello. You’re welcome. I am aware of possible advantages. But it’s not my case to use advantage of them. When I do some scripting then I work on one thing at the time and I have opened like 5 files. When I do some web, then I have opened about 10 files.. Still not need for session management.

Session management could mean unnecessary switching between sessions in my case.

Hello. You're welcome. I am aware of possible advantages. But it's not my case to use advantage of them. When I do some scripting then I work on one thing at the time and I have opened like 5 files. When I do some web, then I have opened about 10 files.. Still not need for session management. Session management could mean unnecessary switching between sessions in my case.
chytrex commented 2 months ago
Poster

By the way, I thought about it and it would be really nice to switch order of these values in titlebar. Maybe it could be next checkbox?

By the way, I thought about it and it would be really nice to switch order of these values in titlebar. Maybe it could be next checkbox?
MicheleC commented 2 months ago
Owner

Commit 9599fe54 adds a checkbox to choose whether to display the session name in the window titlebar or not, and consequently in the taskbar too. Please check and let me know what you think.

Regarding the position of the session name in the title bar, I will probably do that in a separate commit. I will leave this issue open for the time being.

Commit 9599fe54 adds a checkbox to choose whether to display the session name in the window titlebar or not, and consequently in the taskbar too. Please check and let me know what you think. Regarding the position of the session name in the title bar, I will probably do that in a separate commit. I will leave this issue open for the time being.
chytrex commented 2 months ago
Poster

Thank you very much for quick fix. This fix is enough for me, but I guess that alternate order could be handy if you still want session name in title but prefer to see document name in the taskbar.

Thank you very much for quick fix. This fix is enough for me, but I guess that alternate order could be handy if you still want session name in title but prefer to see document name in the taskbar.
MicheleC commented 2 months ago
Owner

:+1:

Yes, I am planning to add a selection for the place of the session name (either before or after the document name) some time in future.

:+1: Yes, I am planning to add a selection for the place of the session name (either before or after the document name) some time in future.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.