![]() Registered Member ![]()
|
Hello everyone!
Is there some way to add a shortcut (eg. CTRL-D) to kate, so that when I press it, it duplicates the line I'm currently at? I've searched, but couldn't find anything like that, and it's a very useful feature to have. I'm learning a bit of programming (C++ and python), but I'm not very good yet. If there isn't a way for now, but could be added through scripts without too much fuzz, I'd be up for it. Thanks! Xorlium |
![]() Registered Member ![]()
|
I second this, it is like the biggest thing I have noticed so far about Kate since switching from windows and notepad++. Kate os definitely the closest match I have found to notepad++ and I actually like Kate better. This says a lot considering the reason I had not fully switched to Linux sooner was because I could not find an editor with some of the features notepad++ had which I could not live without, and I refused to just run it in wine because it was just not completely right under wine.
Examples: extended search with regex/escape sequences Double click to highlight/select a word highlights all other instances in the file. Expandable, etc. Anyways, it feels odd for comment to be ctrl+d since I'm so used to using it to duplicate a line or whatever text I have selected. PLEASE add this feature, even if i need to get used to a new hot key. Also I would like to see some improvement with the search and search/replace plugins, with current file, all opened files, or in a directory recursively. I haven't found how to "replace in files" yet with Kate. The "Find in Files", "Search in Files", plugins and "Replace" function should all be combined and simplified, similar to the way the Notepad++ find dialog operates imho. Its all inclusive for all of those operations, and selecting a word or snippet and then pressing the ctrl+f hotkey automatically fills the text box to search for with what you have selected, then you can click the tab to find, replace/replace in files, or find in files, etc. All in one place and very simple to use, with regex or escape sequences.. As an improvement even on how notepad++ does it, a wildcard search would be nice sometimes too without having to be a regex pro ![]() I like Kate so much I might be developing some plugins for it soon. It will be a nice break every once in awhile from my Wiiflow development. |
![]() Manager ![]()
|
|
![]() Registered Member ![]()
|
Thanks for the reply, nice to see a duplicate line function that does mostly of what I meant. I'm not sure if this is where to ask for a feature change, I'll have to look into that but:
example, take the following line: gprintf("Failed to allocate memory!\n"); in notepad++ if I selected the "gprintf" portion and pressed ctrl+d, I would end up with this: gprintfgprintf("Failed to allocate memory!\n"); Very useful if I am selecting a block of code to duplicate but want to end in the middle of a line. As for the search and replace plugin, that is not in my plugins list... Seems the kate-plugins package is not in my apt-cache also, maybe that has been directly integrated now? I'm attempting to build kate from git source here in a bit and start poking around, maybe I can customize it a bit for myself or simplify the search/replace methods some. If you know how I can get the "search and replace" plugin to appear let me know ![]() |
![]() Manager ![]()
|
re: plugins, in openSUSE they are included in the Kate package - the plugins are in git https://projects.kde.org/projects/kde/k ... te/plugins and there is an irc channel irc://irc.kde.org/kate you can for assistance on
writing plugins: http://kate-editor.org/2004/01/06/writi ... te-plugin/ |
Registered users: Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar