29
108
podbrushkin

@mander.xyz

podbrushkin 56 points a month ago

Ok, finally I've found solution! Obviously I found it 0.0001 seconds after I publicly asked this question.

Problem is that "Games" menu in mentioned /home/user/.config/menus/applications-kmenuedit.menu XML file does not contain a <Merge type="files"/> tag, that's why KDE Kickoff Application Menu was ignoring .desktop files if they belong to this category. And every sample .desktop file I've created probably belonged to Games category.

I changed this XML file to be like this:

<Menu>
  <Name>Games</Name>
  <Include/>
  <Exclude>
   <Filename>Quake.desktop</Filename>
  </Exclude>
  <Layout>
   <Merge type="menus"/>
   <Merge type="files"/>

Now it seems like everything works as expected. I don't understand why it doesn't work by default.

path: 0 25662511, hotness: undefined, score: 56, children: 4
podbrushkin 35 points a year ago

Go ahead. Shoot me.

I wonder, how many people regret saying it because they've been actually shot. Ah, yes. None. Good line.

path: 0 19614861, hotness: undefined, score: 35, children: 4
podbrushkin 15 points a year ago

I've got what I wanted with wezterm + powershell. I can edit my commands the same way I edit any text anywhere in the system, both in Windows and Linux, and I can copy-paste back and forth between terminal and any other app. This is awesome. This is freedom. This is UX done right.

I will paste below some observations I've made.

Possible solutions for Bash

Blesh

https://github.com/...

  • Super simple installation.
  • Home/End - Jump to start/end as expected. ✅
  • Ctrl+Backspace removes left char instead of left word. ❌
  • Ctrl+Delete removes next word as it should. ✅
  • Shift+arrows - char-wise text selection ✅
  • Shift+Ctrl+arrows - word-wise text selection ✅
  • Shift+Home/End don't do anything. ❌
  • Backspace/Delete: When smth is selected they delete it. ✅
  • Copy/Paste/Cut: ❌
    • It's Alt+W/Ctrl+Y/Ctrl+W instead of Ctrl+C/Ctrl+V/Ctrl+X.
    • All work with selection as expected.
    • All work with internal buffer instead of system clipboard.
  • System clipboard:
    • Can't copy selection to clipboard, can't paste clipboard into selection.
    • Ctrl+Shift+C/V work as they do in vanilla bash: copy what is selected with mouse to clipboard, paste from clipboard.
  • Ctrl+C prints current command and starts new one like in vanilla bash.

zsh-shift-select

  • Stated to have best compatibiliy with Alacritty.
    • Alacritty requires Cargo (440MB).
      • cannot install package alacritty 0.16.1, it requires rustc 1.85.0 or newer, while the currently active rustc version is 1.75.0 Fail. Will use Gnome Terminal instead.
  • Needs zsh, super simple installation.
    • Zsh should be default shell, gnome-shell crashed with SIGSEGV.
    • Plugin itself has simple installation, just git clone .zsh file and source it in .zshrc
  • Ctrl+arrows - prints CD instead of moving word-wise ❌
  • Ctrl+Backspace, Ctrl+Delete - are not deleting left/right word ❌
  • Home/End - Jump to start/end as expected. ✅
  • Shift+Left/Right - char-wise text selection ✅
  • Shift+Ctrl+arrows - word-wise text selection ✅
  • Shift+Home/End don't do anything. ❌
  • Shift+Up/Down - Select one line up/down ✅
  • Backspace/Delete - When smth is selected - delete it. ✅
  • Copy/Paste/Cut: ❌
    • Documented as Alt+W/Ctrl+Y/Ctrl+W instead of Ctrl+C/Ctrl+V/Ctrl+X.
    • Alt+W/Ctrl+Y work as copy/paste.
    • Ctrl+W removes previous word instead of Cut selection.
    • Work with internal buffer instead of system clipboard.
  • System clipboard:
    • Ctrl+Shift+C/V work as they do in blesh and vanilla bash.
    • Can't copy selection to clipboard, can't paste clipboard into selection.
  • Ctrl+C prints current command and starts new one like in vanilla bash.

wezterm + Powershell

PSReadLine starts with EditMode = Emacs by default.

Set-PSReadLineOption -EditMode Windows Fixes Ctrl+arrows, Ctrl+backspace, Shift+Ctrl+arrows.

Set-PSReadLineKeyHandler -Chord Ctrl+Delete -Function KillWord - Fixes Ctrl+Delete.

Set-PSReadLineKeyHandler -Chord Ctrl+o -Function AddLine - allows Ctrl+o instead of Shift+Enter to create a new line without trying to execute. Shift+Enter is not possible in Linux.

Reassigning Shift+Home/End in Gnome Terminal from scrolling viewport to something else is a rabbit hole, so I switched to wezterm, which fixed Shift+Home/End, and apparently also fixed a bug of Shift+arrows printing D;D;D; instead of selecting. But broke Shift+Ctrl+arrows. But you can fix it back by disabling this assignment in lua config.

Ctrl+C/V/X work fine, but without system clipboard synchronization. To fix it, install xclip. If it makes terminal freeze on Ctrl+C/X, update PSReadLine module.

  • Ctrl+arrows ✅
  • Ctrl+Backspace, Ctrl+Delete ✅
  • Home/End ✅
  • Shift+Left/Right ✅
  • Shift+Ctrl+arrows ✅
  • Shift+Home/End ✅
  • Shift+Up/Down ❌
  • Shift+Enter - Ctrl+o instead ✅
  • Ctrl+C,Ctrl+V,Ctrl+X - Flawless ✅

Fedora KDE

By default it has Konsole terminal, it doesn't send Shift+Left/Right to shell (try showkey -a). These terminals don't fit because they don't send this chord: Konsole, QTerminal, Yakuake. And Wezterm doesn't support Fedora 43. Then I've tried Kitty and it works both in bash and Powershell. Therefore, Wezterm for Ubuntu+Gnome and Kitty for Fedora+KDE.

Windows + conhost + Powershell Core

PSReadLine starts with EditMode = Windows by default.

  • Ctrl+arrows ✅
  • Ctrl+Backspace, Ctrl+Delete ✅
  • Home/End ✅
  • Shift+Left/Right ✅
  • Shift+Ctrl+arrows ✅
  • Shift+Home/End ✅
  • Shift+Up/Down ❌
  • Shift+Enter ✅
  • Esc - clear current command ✅
  • Ctrl+C,Ctrl+V,Ctrl+X - Flawless, all with system clipboard. ✅
path: 0 20221568, hotness: undefined, score: 15, children: 2
podbrushkin 13 points 7 months ago

This post is in global feed.

path: 0 22841510 22844878, hotness: undefined, score: 13, children: 2
podbrushkin 11 points a year ago

It’s nice to see you think of it as of movement towards consistency. I also look at it this way.

But what is it about Ctrl? Text editing is historically the main task of computers, and Ctrl is the main “modifier” key. To me it seems fair it’s dedicated for some text editing shortcuts. Probably they are consistent since 1980’s.

path: 0 20209977 20210255, hotness: undefined, score: 11, children: 4
podbrushkin 10 points 7 months ago

Try image with white legend in bottom left corner.

path: 0 22946279 22946422, hotness: undefined, score: 10, children: 1
podbrushkin 9 points a year ago

It’s solving device addiction with another device. Sure it will be very interesting to investigate phone models to pick from. Indeed we are good at tricking ourselves. Creating “windows” with no phone at all works better for me.

path: 0 19403768, hotness: undefined, score: 9, children: 0
podbrushkin 8 points a year ago

Solutions should bring more freedom, not restrictions. Imagine not being able to upvote something you like.

path: 0 19529607, hotness: undefined, score: 8, children: 2
podbrushkin 7 points 10 months ago

My laptop screen doesn't have physical buttons and ddcutil and ddccontrol don't work either.

path: 0 20921646 20921729, hotness: undefined, score: 7, children: 1
podbrushkin 6 points a year ago

Make sure to check out LifeMap external url where it is available. Chosen taxon will be found in another tree-exploration tool, which is more fine-grained and is more suitable for exploring small branches and closest neighbors of chosen taxon in terms of hierarchy.

path: 0 19100486 19100772, hotness: undefined, score: 6, children: 0
podbrushkin 6 points a year ago

You're welcome. There are very few large graph visualizations out there in the web, because there is a lack of software tools for such stuff.

path: 0 19097168 19097561, hotness: undefined, score: 6, children: 0
podbrushkin 6 points a year ago

This is extremely interesting. How many magazines and newspapers are digitized in the way you can analyze them like that? This is a simple word-based analyze, also those texts can be enriched with metadata, e.g. mentions of people can be marked with their identifiers in Wikidata.

path: 0 19470056, hotness: undefined, score: 6, children: 3
podbrushkin 5 points a year ago

Does this picture mean “consume a lot of posts and news on these topics and participate in comments section”?

path: 0 19408632, hotness: undefined, score: 5, children: 3
podbrushkin 5 points a year ago

A day will come when I get to know what vibecoding is. Or maybe this word will die out sooner. You never know.

path: 0 19408664, hotness: undefined, score: 5, children: 5
podbrushkin 5 points a year ago

I wonder, when you chose those instances, how far from the top they have been comparing by users count.

path: 0 19403108, hotness: undefined, score: 5, children: 1
podbrushkin 5 points a year ago

I’ve seen this and several others SO topics before posting. Some even recommend emulating a mouse with numpad. It’s like everyone suddenly start pretending not to know how text selection usually works.

path: 0 20208387 20209131, hotness: undefined, score: 5, children: 0
podbrushkin 4 points a year ago

What terminal emulator are you using where ctrl-c copies instead of sending SIGINT when text is selected?

This is what I experienced in conhost.exe (legacy windows console experience, predecessor of Windows Terminal) + Powershell. In windows terminal it works this way too. This is why I suspect it’s related not to terminal itself (conhost.exe/wt.exe/gnome terminal etc), and not to specific shell (bash/powershell), but to an extension for shell (ReadLine,PSReadLine).

As for various types of buffers and clipboards, I always felt like one system-wide clipboard with clipboard history is enough. When I cut something from terminal, quite often I paste it into another app, and not back to terminal.

path: 0 20208973 20210043, hotness: undefined, score: 4, children: 0
podbrushkin 4 points a year ago

If only keyword filters would’ve work for pictures as well. Also, lemmy 1.0 will support keywords platform-wide.

path: 0 20045115, hotness: undefined, score: 4, children: 0
podbrushkin 4 points 7 months ago

Thank you, it looks very useful. It even has an API endpoint: https://federation-checker.vercel.app/api/check?hostname=mander.xyz

path: 0 22745222 22745301, hotness: undefined, score: 4, children: 0
podbrushkin 4 points a month ago

Yes, I've tried quite a lot of commands and combinations, restarts etc, but seems like problem was in some obscure tag in some obscure XML file which I've never touched before. I've added a comment with solution.

path: 0 25662337 25662554, hotness: undefined, score: 4, children: 0

thanks for using Leebra!

go to feed...