Questions tagged [kate]

Kate is an advanced text editor for programmers.

Kate is a text editor for programmers. It is part of the KDE community. Kate has syntax highlighting for more than 200 file types and supports file-specific indenting and folding rules.

Kate has a Vi input mode that support most basic Vi commands and Vim extensions such as text objects.

92 questions
3
votes
4 answers

gedit vs kate for Ruby/RoR

I've been working with gedit because it is the standard offering with Linux (I'm a Kubuntu user), but several people have mentioned Kate. For a text editor, for the most part I want a clone of textmate. Is there any merit to the claim that Kate is a…
Sophie
  • 63
  • 2
  • 8
3
votes
3 answers

page separator in Kate editor

PEP 8 says: Python accepts the control-L (i.e. ^L) form feed character as whitespace; Many tools treat these characters as page separators, so you may use them to separate pages of related sections of your file This look like a great…
remosu
  • 5,039
  • 1
  • 23
  • 16
3
votes
2 answers

New kateproject in kate

How can I add a new kateproject to the Kate editor ? I have created a bookssimple.kateproject file as described here: http://kate-editor.org/2012/11/02/using-the-projects-plugin-in-kate/ {"name": "books_simple", "files": [ { "directory": "perl", …
mr.wolle
  • 1,148
  • 2
  • 13
  • 21
3
votes
1 answer

How to force some sort of "confirm before closing" option in Kate editor?

I very often work with a lot of files opened in Kate. Then, when closing one of the files I am editing, I unconsciously press alt+F4 and then Kate happily closes ALL the opened files I was editing and leaves me again shouting and performing another…
Mephisto
  • 640
  • 1
  • 6
  • 12
3
votes
1 answer

Doxygen style comments in Kate

Kate features a very handy shortcut (Ctrl+D) to apply single- and multi-line comment to the selected region of text. How can I configure Kate to apply doxygen style comments in C/C++ source files? /** * reduces the channel complexity * args: None …
Aamir
  • 2,943
  • 5
  • 26
  • 28
3
votes
2 answers

Add quotation marks to selected word via shortcut

Is there any way (Plugin, Script) to add quotation marks (or square brackets or parentheses) at the beginning and the end of selected text via a keyboard shortcut in the Kate editor? I think of something like selecting a word and then pressing…
user1251007
  • 15,891
  • 14
  • 50
  • 76
2
votes
1 answer

Switch between split views in Kdevelop

Kdevelop allows for split views (splitting the editor window horizontally or vertically) like known from Emacs and other editors. There are even shortcuts to create such splits (Ctrl+Shift+T, Ctrl+Shift+L), but I couldn't find any shortcut to switch…
2
votes
0 answers

How Can I Make Kate Properly Indent Snippets with Multiple Lines

I enjoy using Kate snippets for quick Python scripts, but I'm having a hard time getting them to properly inherit or detect indentation levels after the first line. Consider the following snippet: print("line1") print("line2") I want to insert…
WesH
  • 460
  • 5
  • 15
2
votes
1 answer

Kate Text Editor regexp for CNC code alteration on PC

When using some CAM software, the CNC code is usually generated properly with spaces. But for example when moved to "Citizen Cincom L20" machine via USB or network and edited there it lose spaces and also lose semicolons while preserving new lines…
PovilasCNC
  • 23
  • 5
2
votes
1 answer

Integrate Pysmell in Kate, how hard will it be?

I want to make a plugin for kate, to support autocompletion of python using pysmell. I don't know where to start and how hard it will be. As far as I know, kate supports scripting with javasccript, which is ok for me, but I can't find any good…
Phyo Arkar Lwin
  • 6,673
  • 12
  • 41
  • 55
2
votes
1 answer

kate - regex - find and replace portion of URL from href to ">

I have many links contained in .html and .txt files that I would like to modify. I mostly use Kate as my text editor thus I've asked this question with the kate tag. Below is a sample of the links:
  • iembry
    • 962
    • 1
    • 7
    • 23
    2
    votes
    1 answer

    How would I get the PID of the process causing a file system event?

    I am considering to work with python-watchdog. Is there a way to determine which process (PID) caused a detected event? Background: I am looking for a way to detect modify events caused by certain editors like vim, pycharm or kate. In a nutshell,…
    s-m-e
    • 3,433
    • 2
    • 34
    • 71
    2
    votes
    2 answers

    How can I select a word under a cursor position in Kate via shortcut?

    During programming I have to often select a whole word and make delete it. I am doing this by double click in mouse, but i prefer do it by keyboard - it is possible?
    Thomas
    • 97
    • 2
    • 8
    2
    votes
    1 answer

    Groovy syntax highlighting for Kate

    Is there a way to add syntax highlighting for the Groovy language in kate? Or is there a quite similar language, that will work as well?
    rubo77
    • 19,527
    • 31
    • 134
    • 226
    2
    votes
    0 answers

    How to make kate copy (ctrl+c) with xdotool

    I am trying to make the Kate editor copy the current line or the current selection to clipboard using xdotool. Using xdotool I could move the cursor and delete and do other actions but not copy. The copy shortcut (ctrl+c) works if I press it in kate…