Bug 454412 - Bookmarks should have a top-level menu item rather than being hidden in the Go menu
Summary: Bookmarks should have a top-level menu item rather than being hidden in the G...
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 22.04.1
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-25 23:46 UTC by Luke-Jr
Modified: 2023-11-19 08:48 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2022-05-25 23:46:25 UTC
Prior to 22.04, Kate had a very usable top-level Bookmarks menu, accessible quickly with Alt-B. After upgrading, it's hidden under a "Go" menu, which has terrible usability.

Related (Dolphin has the same complaint): https://bugs.kde.org/show_bug.cgi?id=429453

(In the meantime, what do I need to downgrade to get this back?)
Comment 1 Lothar 2022-05-26 13:38:32 UTC
Hm, I have never used Bookmarks because the functionality was fuzzy to me. 
Did you know, Alt+PgUp/Down to jump to book marks? You can find these in ShortCut settings.
Comment 2 Luke-Jr 2022-05-27 01:49:14 UTC
(In reply to Lothar from comment #1)
> Hm, I have never used Bookmarks because the functionality was fuzzy to me. 
> Did you know, Alt+PgUp/Down to jump to book marks? You can find these in
> ShortCut settings.

When you have a dozen or more bookmarks, you don't necessarily remember/care whether they are up or down. Being able to quickly see the entire list and select with the keyboard is crucial.
Comment 3 Lothar 2022-05-27 05:13:02 UTC
I Agree. Last hint: You can  reach the bookmarks by ToolBar. Settings->Show Toolbar. Customize the bar to include the book mark menu.

Well, when you dislike the toolbar in general, like me, is that not a true substitute.
Comment 4 Luke-Jr 2022-06-09 16:53:12 UTC
Any idea what package I need to downgrade to get the menu back? Downgrading `kate` and `ktexteditor` don't seem to do the trick :(
Comment 5 Lothar 2022-06-09 17:19:40 UTC
try to remove ~/.local/share/kxmlgui5/katepart/katepart5ui.rc
Comment 6 Luke-Jr 2022-06-09 17:58:30 UTC
(In reply to Lothar from comment #5)
> try to remove ~/.local/share/kxmlgui5/katepart/katepart5ui.rc

Thanks, that worked! With that taken care of, only ktexteditor needs to be downgraded it seems.

(I wonder if there's a way to generate the katepart5ui.rc with the Bookmarks menu, to get it to stay in the newer version...)
Comment 7 Lothar 2022-06-09 18:15:08 UTC
On top of this file is a version number, try to increase these e.g 98=>110 (so you have some updates left until it will replaced by a new one) But, how reliable that is...
Comment 8 Luke-Jr 2022-06-09 18:29:27 UTC
(In reply to Lothar from comment #7)
> On top of this file is a version number, try to increase these e.g 98=>110
> (so you have some updates left until it will replaced by a new one) But, how
> reliable that is...

Good to know. But how do I get Kate to generate the file to start with? :)
Comment 9 Lothar 2022-06-09 20:54:04 UTC
Um...not again there? Perhaps after close? Well, can't say how this is done :-) I have removed my some weeks ago, and there is now a new one.
Comment 10 Luke-Jr 2022-07-15 21:52:50 UTC
FWIW I'm now building KTextEditor with this (for some reason the main menu ONLY shows the icon if it's set):

--- a/src/data/katepart5ui.rc
+++ b/src/data/katepart5ui.rc
@@ -115,6 +115,7 @@
     <Action name="bookmarks" group="edit_goto2" />
   </Menu>
 
+  <Action name="bookmarks" />
   <Menu name="tools" noMerge="1"><text>&amp;Tools</text>
     <Action name="tools_mode" group="tools_operations" />
     <Action name="tools_highlighting" group="tools_operations" />
--- a/src/utils/katebookmarks.cpp
+++ b/src/utils/katebookmarks.cpp
@@ -74,7 +74,6 @@ void KateBookmarks::createActions(KActionCollection *ac)
 
     KActionMenu *actionMenu = new KActionMenu(i18n("&Bookmarks"), this);
     actionMenu->setPopupMode(QToolButton::InstantPopup);
-    actionMenu->setIcon(QIcon::fromTheme(QStringLiteral("bookmarks")));
     ac->addAction(QStringLiteral("bookmarks"), actionMenu);
     m_bookmarksMenu = actionMenu->menu();
Comment 11 Grósz Dániel 2023-11-19 08:48:34 UTC
Another workaround: put Bookmarks on the toolbar (if you have one), and set the text to &Bookmarks. Then Alt+B works, even if the toolbar shows icons only. Another one is to edit the personal kxmlgui files, but that tends to get reset after updates.