Kate 14.1.* session management issue #62

开启中
chytrex5 年前创建 · 6 条评论
chytrex 评论于 5 年前

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. -->
MicheleC5 年前 添加了里程碑 R14.1.0 release
MicheleC 评论于 5 年前
所有者

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 评论于 5 年前
发布者

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 评论于 5 年前
发布者

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 评论于 5 年前
所有者

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 评论于 5 年前
发布者

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 评论于 5 年前
所有者

👍

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.
SlavekB 1年前 修改了里程碑从 R14.1.0 releaseR14.1.x
登录 并参与到对话中。
未选择里程碑
未指派成员
2 名参与者
通知
到期时间

未设置到期时间。

依赖工单

没有设置依赖项。

参考:TDE/tdebase#62
正在加载...
这个人很懒,什么都没留下。