#KateEditor

2025-04-27

As a #programmer but #beginner I already know that documentation is important: that's why I'll make a website to document my adventures and potential progress.
If you have any resources that you think could help me, do not hesitate a second!
If you have any tools to advise, do not hesitate a second!
I'm considering using :fedora: #fedora #Kinoite with #toolbx or something like #RockyLinux (but if you have other distros to advise, tell me) with :kdevelop: #kdevelop #codelite for C++, #spyder or #pycharm for Python 🐍 and #rustrover or #lapce for Rust πŸ¦€ and :kate: #kateeditor for simple file edition.
#programmers #programming #programmation #coding #coders #coders #python #cpp #Rust #rustlang #linux #foss #fosstodon #floss #flosstodon #Dev #devlog #devlife #devloper #devlopers

N-gated Hacker Newsngate
2025-04-21

🚨 Stop the presses! 🚨 Breaking news: Someone uses a text editor! πŸ“š Gather 'round, folks, for the thrilling tale of a who discovered Kate Editor just two decades after everyone else. πŸ™„ Stay tuned as we explore every riveting detail of their plugin preferences and the groundbreaking default settings. πŸŽ‰πŸ’»
akselmo.dev/posts/how-i-use-ka

Elias Probsteliasp
2025-03-31

@ToniBarth 's text editing framework had support for a long time and it was recently improved to be more accessible via the context menu:
invent.kde.org/frameworks/ktex

A very powerful and versatile editor based on this framework is :
kate-editor.org/

go to BOKatTOOTdotCATbok@lor.sh
2025-03-30

#KateEditor needs oh-so-many commands it doesn't have, but one I would use often is "return to previous position". If I mistakenly hit Ctrl+Shift+End when I only meant to hit Shift+End, I end up at the end of the file when I only wanted to select to the end of the line.

In TSE, I could hit a key to execute PrevPosition() to be back where I was. But Kate doesn't have this feature, and I have to scroll up until I find my place. Annoying.

Kate might have good code-editing features, but as far as text editing goes, it lacks many basic #TextEditor commands I used in The Semware Editor under Windows.

Woozle Hypertwinwoozle@toot.cat
2025-02-26

(UPDATE: I found a way to make the search work; see end.)

Someone made a bad UI design choice...

Just now I do a search/replace in kate (across multiple files) where the replacement string happens to include \t (it's part of a PHP namespace).

Kate replaces those two characters with a TAB, in all the matching files.

Searching for \t does not find the affected text.

Copying the tab from the document and searching for that does not find it either.

I can't even search for [space]t because it used a TAB character, not spaces, in the output -- even though I have editing configured to always use spaces.

ARRGGGH. There are probably about a HUNDRED FILES affected. Maybe more.

#softwareGripe #kateEditor

Update: apparently I needed to paste the tab into a longer string or something, and then it will find matches.

This is still bad UX, though: the "search" text and the "replace" text shouldn't follow different rules.

2025-01-23
So i got one of these doing most of what I want at work for digging through/editing Extreme Networks exos config files. Now I'm working on a really nerdy one.

I can save text files of pathfinder 1e statblocks as *.pf1txt and Kate will highlight stuff like abilities, skills, and other stuff.

Yeah syntax-highlight a textfile for a TTRPG character/monster.

#TTRPG, #kateeditor, #PF1e, #notreallysane
2025-01-22
Okay, for anyone also having this problem on most linux setups.

/$HOME/.local/share/org.kde.syntax-highlighting/syntax/ probably doesn't exist, but creating it and adding files there does the trick. Now to make it do things in ways that make sense.

That said, the documentation for this is kinda confusing! It reads like you have to rebuild KTextEditor, and from doing extensive file searching, it seems the languages that are predefined are baked in instead of reading the xml files from a default location.

#KDE #kateeditor
2025-01-22

So many #KDE applications work great on Windows, it’s ridiculous. #Krita? #KateEditor? #Kdenlive? Awesome! #KDEConnect? Chef’s kiss!

Kind of sad that there are no versions of #KTorrent or #Gwenview.

So, yeah, what’s my operating system? #Firefox.
No, but really? KDE and #Nushell.
Stop it, be serious, what’s underneath?! Who cares.

2025-01-21
So I need some help with custom syntax-highlighting in Kate.

The documentation i found for adding any seems to be from kf5 installs. I'm on neon at the moment and probably moving to kubuntu or fedora with plasma/kf6.

The folder in the documentation $HOME/.local/share/katepart5/syntax doesn't exist, creating either it or $HOME/.local/share/katepart6 and reloading kate doesn't add the xml file i created to the list of options in the menu, and the KTextEditor documentation also points to a folder that doesn't exist, and makes me worry that somehow these get compiled into the binary now and there's no way to add a custom one.

Anyone got an answer?

#KDE #kateeditor
Jeremy Garniauxjeremy@mapstodon.space
2025-01-20

Marksman is a program that allows various text editors to improve the #Markdown experience: "it provides completion, goto definition, find references, rename refactoring, diagnostics, and more".

github.com/artempyanykh/marksm

I I installed Marksman under :nixos: (it's in nixpkgs). Kate detected it right away without needing to disconnect & reconnect the user session.

Now I can, say, open my Logseq folder in Kate, and navigate or preview files using [[Wiki-links]]. Pretty cool.

#NixOS #KateEditor

2025-01-08

Aaaaaaa, Kate is so awesome. It's super fast, it has cool plugins/integrations (Git/SQL/Color Picker are just a few I use), plenty of customization options and it's so simple to use. Been using it ever since I started using Linux daily for years since it came with KDE and it's my daily driver for writing a mod for Godot game for the past 3 months.

LSP server integration works very well, I started using macros for some boring templates, I discovered I can use mouse side buttons to go to previous location instead of switching tabs just today, tabs are just fine and I feel that there is still plenty of juice I could get out of Kate if I spent the time to learn how to wield it to be even more efficient.

Granted, there are some issues like straight up dying/becoming unresponsive when dealing with very large files or unformatted JSON files, but I can understand those shortcomings.

Kudos to the contributors, it's a fine piece of software that serves those using it. :blobfoxheart:

kate-editor.org/

#KateEditor #Kate

Jeremy Garniauxjeremy@mapstodon.space
2024-12-17

NixOS :nixos:, Kate :kate:, Signal :signalapp:, Mastodon :mastodon:, Firefox :firefox:, Thunderbird :thunderbird:.

What a nice gang it is!

#nixos #signalapp #mastodon #firefox #thunderbird #kateeditor

Akseli :quake_verified:​ :kde:aks@scalie.zone
2024-12-15
go to BOKatTOOTdotCATbok@lor.sh
2024-12-01

#Books and #stories for #NovemberReads

Five novels:
●●●●● The Seven Deaths of Evelyn Hardcastle - Stuart Turton #mystery
●●●●○ The Vampire Affair - David McDaniel {Man from UNCLE 6} #adventure
●●●◐○ Victory or Death - Ralts Bloodthorne {Behold: Humanity! 10} #HFY
●●◐○○ The Good That Men Do - Andy Mangels & Michael A Martin {Enterprise 11} #StarTrek
●●◐○○ Within the Range of Reanimation - William H Nelson {Awakening Wars 1} #horror

One novella:
●●●◐○ Kalvan Kingmaker ⧨ John F Carr #AlternateHistory

Five novelettes:
●●●◐○ Are You Now or Have You Ever Been? β¬— Jack Sharkey
●●●◐○ Hos-Hostigos ⧨ H Beam Piper
●●●○○ Sea of Grass ⧨ John F Carr #AltHist
●●●○○ Wanderers of Time - John Wyndham
●●◐○○ The Troons of Space - John Wyndham

Thirty-nine short stories:
●●●●○ The Yellow Pill - Rog Phillips #ScienceFiction
●●●●○ The Third Vibrator - John Wyndham
●●●●○ Destiny Uncertain - Rog Phillips
●●●●○ The Taint β¬— John Jakes #SFF
●●●●○ Pranksters - Rog Phillips
●●●●○ Time in the Round β¬— Fritz Leiber
●●●◐○ Lonely Phoenix - Stephen L Thompson #SciFi
●●●◐○ Bottle Baby β¬— Henry Slesar
●●●◐○ Exiles on Asperus - John Wyndham
●●●◐○ Let Freedom Ring! - Rog Phillips
●●●◐○ Outpost on Io β¬— Leigh Brackett
●●●◐○ The Alexander Affair ⧨ John F Carr
●●●◐○ The Lost Machine - John Wyndham
●●●◐○ The Moon, A.D. 2044 - John Wyndham
●●●◐○ Vampire of the Deep - Rog Phillips
●●●◐○ Watershed β¬— James Blish
●●●◐○ Spheres of Hell - John Wyndham
●●●◐○ Truckstop - Rog Phillips #alien
●●●○○ Fireproof - Hal Clement
●●●○○ Step Out of Your Body, Please - Rog Phillips
●●●○○ The King of the Elves β¬— Philip K Dick
●●●○○ The Monster Maker β¬— Ray Bradbury
●●●○○ The Only One that Lived - Rog Phillips
●●●○○ The Thin Gnat-Voices - John Wyndham
●●●○○ You'll Die Yesterday - Rog Phillips #TimeTravel
●●◐○○ The Gone Dogs β¬— Frank Herbert
●●○○○ Glug β¬— Harlan Ellison
●●○○○ The Time Tombs β¬— J G Ballard
◐○○○○ 2 B R 0 2 B β¬— Kurt Vonnegut

2024-11: 39 ss | 05 nvt | 01 nva | 05 nov
2024-10: 26 ss | 03 nvt | 00 nva | 06 nov
2024-09: 23 ss | 03 nvt | 01 nva | 13 nov
2024-08: 19 ss | 03 nvt | 01 nva | 08 nov

Short descriptions of the various stories were in the weekly posts. Novel count down a bit, but I use short stories to fill in the calendar. One must have a nice-looking calendar.

β¬— = Legends of Science Fiction, 1950: Volume 1 - Christopher Broschell, ed. Finished this month.
⧨ = The Paratime Police Chronicles, Volume II - John F Carr & H Beam Piper & Roland Green. Two stories left.

Stories also came from:
The Essential Rog Phillips - Christopher Broschell, ed.
More of the Essential John Wyndham - Christopher Broschell, ed.

β—‹ is 25CB, ● is 25CF, and ◐ is 25D0. That means the lists don't sort as nicely as one might want, even ignoring that #KateEditor somehow lacks a simple inverse sort function.

#BokBooks (a tag to filter if you find these weekly posts and monthly summaries annoying)

Calendar produced by koReader software running on my Kobo Sage ereader showing what stories and novels I've read in November. Each title appears on a horizontal stripe that spans from one to seven days. Each day features three titles, with a histogram beneath showing what fraction of each hour of that day I was reading on this device. The calendar is in black-and-white, and the stripes are in black, white, or shades of gray, with the titles in black or white to contrast. The titles are all listed in the main post.Covers of four novels I read this month. Clockwise from top left:

"Victory or Death" by Ralts Bloodthorne shows a human woman in power armor but for helmet, lying on pavement. The crack pattern shows she fell from a height and hit hard. A rifle and a sword lie beside her. Three smaller bipeds, also in armor, look down at her. One has a tail.

"The Vampire Affair" is a Man from UNCLE novel by David McDaniel. Blond-haired, blue-eyed spy Illya Kuryakin (David McCallum) gives the reader a calculating look. Behind him brown-eyed, brown-haired Napoleon Solo (Robert Vaughn) looks puzzled. A forest in winter is the background.  

"The Seven Deaths of Evelyn Hardcastle" by Stuart Turton merely has the title on the cover, in yellow type on a black background. An art deco border surrounds the words. Red diamonds in the corners show a chess bishop, a revolver, a camping compass, and a bottle of poison, all significant to the murder mystery.

"The Good Men Do" by Andy Mangels and Michael A Martin is a Star Trek: Enterprise novel. It shows Trip Tucker (Connor Trinneer) in a red and gold spacesuit making his way through a damaged corridor.
go to BOKatTOOTdotCATbok@lor.sh
2024-11-25

How does #KateEditor count? This session has two tabs, but the dialog to choose a session claims it has three. The other session also claims to have an extra tab. Odd. 23.08.5 from #LinuxMint Software Manager.
#TextEditor #KDEKate

A partial screenshot of Kate text editor showing that two tabs are open in the current session while the Manage Sessions dialog box shows that there are three tabs in the current session.
Akseli :quake_verified:​ :kde:aks@scalie.zone
2024-11-18

I donated to the KDE fundraiser and adopted Kate text editor :)

kde.org/fundraisers/yearend202

#Linux #KDE #KateEditor

Jure Repinc :linux: :kde:JRepin@mstdn.io
2024-11-15

@eugenialoli @jbqueru What do you mean by ruler? If that means a vertical line at some column then Kate does have this. You can enable it via menu View β†’ Word Wrap β†’ Show Static Word Wrapper. The column can be set in Settings β†’ Configure Kate β†’ Editing β†’ Wrap Words At.

#KDE #Kate #KateEditor #editor #TextEditor

Eugenia Leugenialoli
2024-11-14

I was going to suggest to my husband @jbqueru to move to KDE's Kate code editor (currently he is using SublimeText, and previous VSCode), but there is no ruler feature on Kate. He kind of needs that for his arcane assemblers.

EDIT: sorted out, JBQ is switched to Kate.

Akseli :quake_verified:​ :kde:aks@scalie.zone
2024-10-12

Here's a fun little bash script that launches the correct session of Kate depending on what folder the file is in :)

#!/usr/bin/env bash

FILEPATH="$(realpath $1)"

case $FILEPATH/ in
~/Repositories/kde/*) kate -s KDE -b "$FILEPATH";;
~/Nextcloud/Notes/*) kate -s Notes -b "$FILEPATH";;
*) kate -s Default -b "$FILEPATH";;
esac

#KDE #KateEditor

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst