Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 947050 - Prompts ("root #", "user $") can be selected in *Cmd template elements
Summary: Prompts ("root #", "user $") can be selected in *Cmd template elements
Status: RESOLVED FIXED
Alias: None
Product: Websites
Classification: Unclassified
Component: Wiki (show other bugs)
Hardware: All Linux
: Normal trivial
Assignee: Gentoo Wiki Team
URL: https://wiki.gentoo.org/wiki/Handbook...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-27 21:05 UTC by xezo360hye
Modified: 2025-02-22 15:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xezo360hye 2024-12-27 21:05:39 UTC
When trying to copy-paste commands from Gentoo Wiki and using triple-click to select whole line, terminal prompts are also selected. This becomes especially annoying when multiple commands are placed in one block and due to the prompts they can't be immediately executed without "pre-processing" them.

Reproducible: Always

Steps to Reproduce:
1. Open any wiki page with CLI command(s) block.
2. Select all text using triple-click or moving through multiple lines (if 2+ commands).
Actual Results:  
Prompts are selected and copied along with command.

Expected Results:  
Only command is selected/copied, without prompt.

Can be patched by adding "user-select: none" to CSS styles of all *Cmd templates, but I don't have permissions to edit them.
Comment 1 xezo360hye 2025-02-22 15:28:22 UTC
Seems to be working fine now, even though no one replied here