The title pretty much sums it up. I have some (minimal) content in /etc/hosts.

The file looks something like:

# some comment  localhost foo bar    baz
::1        localhost ip6-loopback ip6-localhost

I accidentally pressed Super_L+Space today when typing in bash, which immediately presented me something formatted like the output of ls, but listing all the functional content (not the comments) of that file except ip4-addresses, like that:

::1   localhost      foo             bar
baz   ip6-loopback   ip6-localhost
me@host$ s

That s on the last prompt is not a typo by the way: The next prompt after the hosts listing looks exactly like that.

I can easily reproduce the behavior.

So far, I have looked into the keyboard shortcuts of KDE Plasma and the terminal emulators, but there is no action bound to Super_L+Space. My .bashrc contains nothing related either. If I press the combination in any other window but a terminal emulator, nothing happens.

The bash history does not even contain an entry about the event.

What is happening here?

  • Do you really have Meta key on your keyboard on do you meant Alt? – Arkadiusz Drabczyk Feb 27 at 23:05
  • I mean the "Windows key". I'll edit the question to make that clear. – Turysaz Feb 27 at 23:05
  • Is there something interesting in output of bind -p? – Arkadiusz Drabczyk Feb 27 at 23:08
  • Actually, yes... I did not know bind until now, so I'm still trying to figure out what the output is telling me, but there is something about "possibe-hostname-completions", which looks promising. – Turysaz Feb 27 at 23:15
  • Interesting, can you post the entire line? – Arkadiusz Drabczyk Feb 27 at 23:16

It's Konsole-specific feature introduced in commit 5ba34471 back in 2012.

Reference: this Super User question

A short summary of the mechanism as originally described in the linked Super User question is as follows: Super_L+letter in Konsole sends ^X@s<letter>. The first part is "translated" into "possible-hostname-completions" by readline key bindings. (bind -p shows "\C-x@": possible-hostname-completions). The remaining part ("s<letter>") will be printed on the next prompt.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.