home.social

#kateeditor — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #kateeditor, aggregated by home.social.

  1. New wishlist-item for #KateEditor :

    • a command to "check all open files to see if they exist; close any that do not, and never mention them again ever"

    (Do you think your associates can arrange that for me, Mr. Morden?)

    #softwareGripe

  2. @[email protected]
    In RKWard we have a data viewer but not a data explorer.

    rkward.kde.org/

    Due to the integration of the Kate text editor, we also have functionality to operate the editor like vi.

    kate-editor.org/kate-vi-mode/

    @schuemaa

  3. 🚨 Stop the presses! 🚨 Breaking news: Someone uses a text editor! 📚 Gather 'round, folks, for the thrilling tale of a #programmer 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 #BreakingNews #TextEditor #KateEditor #PluginPreferences #DefaultSettings #HackerNews #ngated

  4. @ToniBarth #KDE's text editing framework had #TTS 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:
    kate-editor.org/

    #KateEditor #TextToSpeech

  5. #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.

  6. (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.

  7. 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.

  8. 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

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

    What a nice gang it is!

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

  10. #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)

  11. @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

  12. 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.

    #kde #kateeditor #kate #linux #opensource #foss #programming

  13. Revisiting for . It’s actually a lot easier than I made it before. So, install typograf-cli

    npm install typograf-cli -g

    In Kate, add External Tool.

    Name: Typograf (or anything)
    Executable: typograf (with `-g` installation flag, it should be in your $PATH)
    Arguments: --stdin -c /home/andrew/.config/typograf/typograf.json
    Input: %{Document:Selection:Text}
    Working directory: empty
    Mime types: empty
    Save: none
    Trigger: none
    Output: Replace selected text
    Editor command: typograf

    `-c` is for a settings file if you want to change the default behavior. It really wants a full path for some reason, so no `~/`.

    You can customize these to process the entire document, for example. But I just add a keyboard shortcut, and it does the magic on a selected text.

    ---

    Bonus, in you can add

    "Alt-y": "command:textfilter typograf --stdin -c /home/andrew/.config/typograf/typograf.json",

    to `.config/micro/bindings.json` for the same result.

    ---

    github.com/typograf/typograf-c

  14. Kate has the best Vim mode of all editors, Ctrl+Alt+V toggles it at any time, so when I need to use Vim motions I just enable it and when I need to edit I just disable it to get for humans copy-paste.

    #tt #kde #kateeditor

  15. The most important feature on #KDE #kateeditor for me is the fact that I can have independent font-size/zoom and color-scheme for each tab or split, even if the view is on the same file.

    It is like every buffer has its completely separate config context, and I love it.

    Please @cullmann , if you ever change it, make it configurable, never remove this feature :)

    #tt

  16. It made me realize that I was quite hooked on Kate. I switched in 2023, coming from Visual Studio Code. The latter is hard to escape in a professional context (so many plugins and integrations) but Kate works really well once you take time to learn it.

    #kateeditor #kde #opensource

  17. It took me an embarrassingly long time to learn that there is a setting to control the sidebar icon size for Kate. Shrinking the size to 24 instead of 32 makes the folder icon finally match its neighbors. Ladies and gentlemen, we got him.

  18. Completing 3 months that I moved to #KDE #kateeditor, and it is amazing!

    One of the features I like the most is the ability to have independent splits, which means each split can have its own color scheme and font-size.

    The way it is implemented using KTextWidgets allows each view to be independent while sharing the same context, so I can have project wise auto-complete, search/replace etc, but the widget showing/editing the text is independent.

    I love that the same experience is available on Kwrite, sadly, some other KDE applications using Kirigami do not share the same text widget, so the profiles are not the same.

    #tt

  19. I am planning to write my first #KDE #Kateeditor plugin, and that will be an AI panel.

    I want it to use local codellama with the project context and then I write a prompt and it gives me options to cycle, copy or insert at cursor position.

  20. I'm one of those weirdos that runs Kate on my mac at work. Looks like I should get off my butt and report some mac bugs, since I do know of a couple minor ones off the top of my head.

    cullmann.io/posts/kate-on-all-

  21. @gregorni

    Editor: #HelixEditor #KateEditor
    Terminal emulator: KDE Konsole
    Shell: #bash (GNU Bourne‐Again SHell)
    Linux Desktop: KDE Plasma 5 on #slackware current
    Langs: #bash :)
    Containerization: #docker
    SCM: #git

  22. Next surprise of the day:

    Searching through a cca. 430 MiB JSON file with syntax highlighting is (much) faster in #Kwrite than in Bat (the modern CLI cat with syntax highlighting)

    #KDE #KateEditor

  23. Ich war auf der Suche nach einem #editor, der #syntaxHighlighting , #builds, diverse Sprachen unterstützt, viel #konfiguration zulässt und vor allem #sessions oder #workspaces unterstützt, der aber im Gegensatz zu dem ganzen neumodischen, kurzlebigen electron-kram auch #schnell und #zukunftssicher ist.
    Ich glaube, ich bin erstmal fündig geworden und jetzt froher User des #kateEditor.s :fairydust:

    kate-editor.org
    @kde

  24. CW: re: Python CLI workaround for accessing Kate bookmarks.

    @woozle yeah, I realise the command-line isn't for everyone. :)
    Still, was a nice exercise for me. ;)

    Recording of the final version that uses #fzf to filter and preview, and #micro editor to edit (while focused on the bookmarked line): asciinema.org/a/YQSLCHdawYpL8P

    (Using #microEditor as editor in this example since I couldn't figure out how to launch the Windows version of #KateEditor from the #WSL command-line).

    And for completeness sake, even though it won't be useful to you, the final source code:

    #!/usr/bin/env python3
    import linecache
    from pathlib import Path
    import configparser
    config = configparser.ConfigParser()
    config.read('/mnt/c/Users/FiXato/AppData/Local/Packages/KDEe.V.Kate_7vt06qxq7ptv8/LocalCache/Local/katemetainfos')
    for section in config.sections():
    clean_section = section.replace('file:///C:/', '/mnt/c/')
    filename = str(Path(clean_section))
    if not config[section]['Bookmarks']:
    continue
    for linenr in config[section]['Bookmarks'].split(','):
    line = linecache.getline(filename, int(linenr) + 1)
    print(f"""{int(linenr) + 1} {filename} # {filename}:{int(linenr)} # {line.strip()}""")

    and the launcher #oneliner:

    ./fzf-katemarks.py | fzf --with-nth 4..-1 --preview="sed '{1}q;d' {2}" --bind "enter:execute(micro '{2}':{1})"