We had a recent discussion about X11 pasting behavior on the Padre IRC channel.
This is no Perl challenge, but we're building a Perl IDE and this is why I'ld like to know your preference. Apologies for mis-using perlmonks with this.
The test case was:
abc
def
abc was selected first
def is the current selection
The mouse pointer is placed over the "e" of def
We noticed three different middle-mouse-button pasting ways throughout the X11 world:
1. "abc" is inserted before/after the e making the second line "deabcf"
2. nothing happens at all, because the current selection "def" replaces the current selection "def" (gedit and poedit do this)
3. "abc" is used to replace the current selection "def" (the last selection is used to replace the current one), this is what Padre did in the last releases.
4. "def" is appended again (pasted at the text cursor's position), this is what Ubuntu's shell and xman's search input do.
I'ld like to know...
Which option is what you'd call "X11 default"?
Which option would be your favorite for a editor/IDE?
Thank you.
In reply to X11 pasting
by Sewi
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.