Does anyone know how we can currently assign a
short-cut key in kate/kwrite to:
Tools > Highlighting > Scripts > Bash
(alt+t, h, r, b -- isn't what I was thinking)
Or associate any of the other highlighting files with
a short-cut? If there is
no way to do that, then it would be worth putting on the
enhancement list.
Kwrite isn't that big of deal, but there are numerous times
in kate where I will
have 10-20 files open that I would like to set with a syntax
file without having
to mouse through Tools > Highlighting > Scripts >
Bash that many times.
We could either have a key that popped open the Tools
Highlighting menu and
gave the user the
ability to scroll and select. Or, my
preference, would be to
provide a configuration option under highlighting that would
be a "Quick List"
that allowed the user to configure his "Top 10" syntax files
that would pop up
with a shortcut and allow the user to select from the list
of 10.
It would need to be a katepart plugin to be available
to both kate/kwrite, but
it shouldn't be that difficult to do.
Worth an enhancement request? There are already
shortcut options for just
about everything in kate, just not syntax...
The kate-part toolbar supports Highlighting. That will save a mouse click but not any key
presses.
To me the root problem of your description is why kate is not detecting the file type. I
have seen this often enough and is frustrating. Before submitting an enhancement request,
perhaps browse the code to learn how detection functions. Possibly an extra if-then
statement or equivalent is all that is needed to address some of these shortcomings.
Darrell