Bug 107828 - Add 'jump to matching bracket' to the Kate menu
Summary: Add 'jump to matching bracket' to the Kate menu
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 2.4.1
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-21 09:48 UTC by John Pye
Modified: 2014-01-23 15:36 UTC (History)
1 user (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 John Pye 2005-06-21 09:48:11 UTC
Version:           2.4.1 (using KDE KDE 3.4.1)
Installed from:    Fedora RPMs
OS:                Linux

I've asked a few people if they knew the keyboard shortcut for jumping to matching brackets in Kate, but noone knew.

I discovered here on bugs.kde.org that ctrl-6 does the trick.

** Could this be added to the 'edit' or 'tool' menu perhaps?

FYI, BTW, in TextPad on Windows, there is a 'Match Bracket' item in 'Search' menu. The search menu also includes functionality for bookmarks, find, replace, etc. It's a good intuitive arrangement of items. Maybe something like that?

I think it's important that useful features like this are put somehwere that allows them to be 'discovered' without having to consult a manual/list of shortcuts etc.

Cheers
JP
Comment 1 John Pye 2005-06-21 09:48:26 UTC
See also Bug 55992: Matching bracket jump keeping selected text
Comment 2 Kamil Szot 2007-10-10 17:35:16 UTC
Could you also make this keyboard shortcut redefinable ?

It's really hard to find about it when it is all secret like now.

For few years I thought it didn't existed until I asked google today. Shame on me. ;-) And I probably should RTFM before using Kate so shame on me again.

Anyway please make it easier to find and redefinale. It's very usefull function for us programmers.

I also dream about jumping to matching opening/closing element in HTML.
Comment 3 Robin Pedersen 2008-06-06 09:59:41 UTC
Confirmed in 2.5 and 3.0

This feature is not on the menu, but it is configurable in Configure Editor->Shortcuts (but not in Settings->Configure Shortcuts)

It's confusing that there are two different dialogs to configure the application shortcuts, and the shortcuts for the editor. If you go to application shortcuts in 2.5, and set Ctrl+6 to something else (like About Kate), the shortcut still activates "move to matching bracket", if the focus is on the editor, but opens the about dialog if the focus is elsewhere, like the path input field in the filesystem browser.
Comment 4 Andreas Pakulat 2008-06-06 11:03:05 UTC
I've asked kate devs about this "problem" with two shortcut editors in two places not long ago and the reply was basically: Thats intentional to keep applications from changing those that you see in configure editor->shortcuts when katepart is embedded.
Comment 5 Maciej Pilichowski 2008-06-06 11:35:06 UTC
If anyone is interested in merge of keyboard shortcuts (I am):
https://bugs.kde.org/show_bug.cgi?id=160023
Comment 6 Joseph Wenninger 2014-01-23 15:36:37 UTC
Git commit c27cd0eef1957467f0bd7b661cb3001d644481a6 by Joseph Wenninger.
Committed on 23/01/2014 at 15:31.
Pushed by jowenn into branch 'master'.

In KF5 the jump to bracket and select to bracket actions are now shown in the Edit menu, just above the "go to line" feature. I removed those two actions from the edit actions, since otherwise they will always be disabled in the menu, because the view loses focus. I hope that does not break VI-mode, otherwise we have to find another solutions.

M  +5    -1    src/data/katepartui.rc
M  +2    -2    src/view/kateview.cpp

http://commits.kde.org/ktexteditor/c27cd0eef1957467f0bd7b661cb3001d644481a6