Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Scott Kostyshak
On Thu, Apr 20, 2017 at 03:25:07PM -0400, Steve Litt wrote:
> On Thu, 20 Apr 2017 11:56:54 +0200
> Helge Hafting  wrote:
> 
> > Most linux sw lets me mark text with the mouse, and then click the 
> > middle mouse button in some other window in order to paste it there.
> > No wading through "cut/paste menus", this is one of the strengths of
> > the X windowing system.
> > 
> > I have no problem pasting terminal text into LyX (or using special
> > paste to deal with line endings). But how do I go the other way?
> > Sometimes, I want to mark a paragraph or two in LyX, and paste it
> > into vim or something else running in an xterm. But that doesn't
> > work, nothing happens. If I have copy-pasted text within that
> > terminal before, the old text is pasted instead of what I marked in
> > LyX.
> > 
> > Doesn't LyX put marked text on the clipboard?
> 
> Ugh!
> 
> I switched from Windows to Linux in March 2001. In almost every
> respect, I greatly prefer Linux.
> 
> And then there's cut and paste.
> 
> Windows has one single clipboard buffer. No matter how you copy to it,
> and no matter how you paste from it, it works every time.
> 
> Linux has (at least) two separate clipboard buffers. Sometimes one or
> the other or both acquires text when you highlight. Sometimes one or
> the other acquires when you highlight and Ctrl+C. Sometimes you have to
> highlight and menu Edit->Copy: Sometimes Edit->Copy does different
> things than Ctrl+C.

I actually prefer this behavior, although it caused me some confusion to
begin with. The reason I like it is because I can have one thing stored
in my clipboard and if I just want to do a quick copy/paste I can select
something without it overwriting the clipboard.

If you want them all to act as one clipboard, you can do that. For
example, in CopyQ you can check the boxes

  - Store text selected using mouse
  - Paste mouse selection with clipboard

and then I think it's basically like you have one clipboard.

Scott


signature.asc
Description: PGP signature


LyX and HiDPI Under Linux

2017-04-20 Thread Richard Heck
I'm thinking about buying one of these:

https://system76.com/laptops/galago

But it has HiDPI, and I'm curious what people's experience is using LyX
with HiDPI screens under Linux (KDE, in my case). Help?

Richard




Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Steve Litt
On Thu, 20 Apr 2017 11:56:54 +0200
Helge Hafting  wrote:

> Most linux sw lets me mark text with the mouse, and then click the 
> middle mouse button in some other window in order to paste it there.
> No wading through "cut/paste menus", this is one of the strengths of
> the X windowing system.
> 
> I have no problem pasting terminal text into LyX (or using special
> paste to deal with line endings). But how do I go the other way?
> Sometimes, I want to mark a paragraph or two in LyX, and paste it
> into vim or something else running in an xterm. But that doesn't
> work, nothing happens. If I have copy-pasted text within that
> terminal before, the old text is pasted instead of what I marked in
> LyX.
> 
> Doesn't LyX put marked text on the clipboard?

Ugh!

I switched from Windows to Linux in March 2001. In almost every
respect, I greatly prefer Linux.

And then there's cut and paste.

Windows has one single clipboard buffer. No matter how you copy to it,
and no matter how you paste from it, it works every time.

Linux has (at least) two separate clipboard buffers. Sometimes one or
the other or both acquires text when you highlight. Sometimes one or
the other acquires when you highlight and Ctrl+C. Sometimes you have to
highlight and menu Edit->Copy: Sometimes Edit->Copy does different
things than Ctrl+C.

On the pasting end, you can middlebutton, press Ctrl+V, or
Edit->Paste, each of which might draw from a different buffer to
paste.

I've tended to find that the most reliable way to do what I really
want to do, in most situations, is highlight and use Ctrl+C on the
copy end, and use the middle mouse button on the paste end. If that
doesn't work, use Edit->Paste.

For me, Linux's dual-you-guess-which cut and paste has been a
productivity sink for as long as I've used Linux. I've found various
muscle-memory actions to minimize the problem, but it's still there.

I'd like to hear about anybody who has been able to use a clipboard
application to lessen these problems, but the clipboard application
should be:

1) Window manager/Desktop environment agnostic

2) Quick and easy to see history of both clipboards and paste any of
   them into a document

3) Extra credit for a clipboard application that strongarms both
   clipboards to anything captured with Ctrl+C or Edit->copy or
   Edit->Cut

SteveT

Steve Litt 
April 2017 featured book: Troubleshooting Techniques
 of the Successful Technologist
http://www.troubleshooters.com/techniques


Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Paul A. Rubin

On 04/20/2017 02:56 PM, Guenter Milde wrote:

On 2017-04-20, Scott Kostyshak wrote:


Copying from the document Xwindow-style (middle button) does indeed not
work. Interestingly, it does work from the Source Pane, as does from
Document Settings.

middle-button paste work fine for me on Ubuntu with LyX 2.2.2. I'm not
sure what's going wrong.

I can reproduce both: (lyx 2.2.2 on Debian, XFCE, no clipboard manager)

Sometimes, select and middle-paste works, sometimes not!

* Short text parts without special markup work.
   Paragraph breaks work, too.
   ERT works.
   Layout list works.
   
* Footnotes in the selection -- fail

   Selection in a heading -- fail
   Line with Newline inset or Space inset -- fail

No error in the terminal, nor in xsession-errors.

Günter

The three failures Günter lists work at my end (LyX 2.2.2, Mint Serena, 
Mate, no clipboard manager that I'm aware of).


Paul



Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Guenter Milde
On 2017-04-20, Scott Kostyshak wrote:

>> Copying from the document Xwindow-style (middle button) does indeed not
>> work. Interestingly, it does work from the Source Pane, as does from
>> Document Settings.

> middle-button paste work fine for me on Ubuntu with LyX 2.2.2. I'm not
> sure what's going wrong.

I can reproduce both: (lyx 2.2.2 on Debian, XFCE, no clipboard manager)

Sometimes, select and middle-paste works, sometimes not!

* Short text parts without special markup work.
  Paragraph breaks work, too.
  ERT works.
  Layout list works.
  
* Footnotes in the selection -- fail
  Selection in a heading -- fail
  Line with Newline inset or Space inset -- fail

No error in the terminal, nor in xsession-errors.

Günter



Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Anthony Campbell
On 20 Apr 2017, Paul A. Rubin wrote:
> On 04/20/2017 10:58 AM, Scott Kostyshak wrote:
> > On Thu, Apr 20, 2017 at 10:18:05AM -0400, PhilipPirrip wrote:
> > > On 04/20/2017 07:41 AM, Helge Hafting wrote:
> > > > Fewer transitions between mouse and keyboard is a good thing.
> > > Hi Helge.
> > > Copying from the document Xwindow-style (middle button) does indeed not
> > > work. Interestingly, it does work from the Source Pane, as does from
> > > Document Settings.
> > > The use of keyboard can be avoided in yet another way, by using the
> > > right-click context menus. Both LyX and Gnome terminal let me do this.
> > middle-button paste work fine for me on Ubuntu with LyX 2.2.2. I'm not
> > sure what's going wrong.
> > 
> > Scott
> FWIW, middle-button works for me, too (Linux Mint Serena, based on Ubuntu
> Xenial).
> 
> Paul

And for me on OpenBSD.

A.
-- 
Anthony Campbellhttp://www.acampbell.uk


What's your preferred way to merge changes and manage conflicts in LyX files under git?

2017-04-20 Thread Cris Fuhrman
I'm collaborating using git on bitbucket (for a free private cloud
repository) and SourceTree for Windows on an article in LyX (2.2.2). There
are multiple image files (e.g., generated by R in SVG) and a big .bib file.
For the record, I'm not really using LyX's built-in version control, as it
doesn't recognize the other files that might change. SourceTree is very
visual and saves you from memorizing the cryptic git command lines;
although when you get stuck, you can still type them in a git bash window.

Yesterday, I had to merge some changes from another author, which took
(too) much of my time using the git-oriented way. We had both (somewhat
simultaneously) updated the same section of the article, and that section
got moved in one version. But resolving merge conflicts is also harder
because LyX source is not really meant to be human readable (and I use LyX
for the precise reason that I don't want to look at typesetting source). I
wonder, too, if git doesn't use syntax hints to help identify blocks of
code (e.g., balanced parentheses and brackets, which are used in many
programming languages but not so much in .lyx files).

When I pulled the changes (my local branch was out of sync by half a day),
there were conflicts. I'm not new to merging, but it's the first time I've
done it with a LyX file. I have configured SourceTree to use the kdiff3
tool, which did a great job to help me out (it resolved most of the
conflicts, but about 20% required manual intervention, where you basically
have to decide between version A, B or C in three separate windows for each
conflict). In the end, I was very conservative and wound up with some
duplication in the final document (the section that was moved). Finally, I
met with the co-author in person and was able to resolve some conflicts
that were redundant. I was actually just happy the LyX file wasn't corrupt
after the merge! I suppose this same problem would occur in source code,
but given that code has to function to pass tests, it's not quite the same
work flow. Editing academic publications is different than writing software
in this way. But I digress...

Alternatively, I could have cloned the head origin version before I merged
and and just resolved the differences in separate LyX windows using
copy/paste by hand, But with no tool to show differences, that is also not
ideal. The other strategy is to agree ahead of time not to touch the same
parts of the document in parallel. But these just seems counterproductive
when you're using source code control! Related humor: https://xkcd.com/1597/

What's your preferred way to merge changes and manage conflicts in LyX
files under git?


Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Paul A. Rubin

On 04/20/2017 10:58 AM, Scott Kostyshak wrote:

On Thu, Apr 20, 2017 at 10:18:05AM -0400, PhilipPirrip wrote:

On 04/20/2017 07:41 AM, Helge Hafting wrote:

Fewer transitions between mouse and keyboard is a good thing.

Hi Helge.
Copying from the document Xwindow-style (middle button) does indeed not
work. Interestingly, it does work from the Source Pane, as does from
Document Settings.
The use of keyboard can be avoided in yet another way, by using the
right-click context menus. Both LyX and Gnome terminal let me do this.

middle-button paste work fine for me on Ubuntu with LyX 2.2.2. I'm not
sure what's going wrong.

Scott
FWIW, middle-button works for me, too (Linux Mint Serena, based on 
Ubuntu Xenial).


Paul


Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Scott Kostyshak
On Thu, Apr 20, 2017 at 10:58:49AM -0400, Scott Kostyshak wrote:
> On Thu, Apr 20, 2017 at 10:18:05AM -0400, PhilipPirrip wrote:
> > On 04/20/2017 07:41 AM, Helge Hafting wrote:
> > > Fewer transitions between mouse and keyboard is a good thing.
> > 
> > Hi Helge.
> > Copying from the document Xwindow-style (middle button) does indeed not
> > work. Interestingly, it does work from the Source Pane, as does from
> > Document Settings.
> > The use of keyboard can be avoided in yet another way, by using the
> > right-click context menus. Both LyX and Gnome terminal let me do this.
> 
> middle-button paste work fine for me on Ubuntu with LyX 2.2.2. I'm not
> sure what's going wrong.

Note that I do get many messages

  QXcbClipboard: SelectionRequest too old

when selecting. But I only get these when I have my clipboard manager
(CopyQ) open.

Scott


signature.asc
Description: PGP signature


Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Scott Kostyshak
On Thu, Apr 20, 2017 at 10:18:05AM -0400, PhilipPirrip wrote:
> On 04/20/2017 07:41 AM, Helge Hafting wrote:
> > Fewer transitions between mouse and keyboard is a good thing.
> 
> Hi Helge.
> Copying from the document Xwindow-style (middle button) does indeed not
> work. Interestingly, it does work from the Source Pane, as does from
> Document Settings.
> The use of keyboard can be avoided in yet another way, by using the
> right-click context menus. Both LyX and Gnome terminal let me do this.

middle-button paste work fine for me on Ubuntu with LyX 2.2.2. I'm not
sure what's going wrong.

Scott


signature.asc
Description: PGP signature


Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread PhilipPirrip

On 04/20/2017 07:41 AM, Helge Hafting wrote:

Fewer transitions between mouse and keyboard is a good thing.


Hi Helge.
Copying from the document Xwindow-style (middle button) does indeed not 
work. Interestingly, it does work from the Source Pane, as does from 
Document Settings.
The use of keyboard can be avoided in yet another way, by using the 
right-click context menus. Both LyX and Gnome terminal let me do this.




Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Charlie
On Thu, 20 Apr 2017 11:56:54 +0200
Helge Hafting  wrote:

> Most linux sw lets me mark text with the mouse, and then click the 
> middle mouse button in some other window in order to paste it there.
> No wading through "cut/paste menus", this is one of the strengths of
> the X windowing system.
> 
> I have no problem pasting terminal text into LyX (or using special
> paste to deal with line endings). But how do I go the other way?
> Sometimes, I want to mark a paragraph or two in LyX, and paste it
> into vim or something else running in an xterm. But that doesn't
> work, nothing happens. If I have copy-pasted text within that
> terminal before, the old text is pasted instead of what I marked in
> LyX.
> 
> Doesn't LyX put marked text on the clipboard?
> 
> I understand that there will be limitations - LyX supports formatting 
> and the terminal only handles text. Still, I have no problem pasting 
> from openoffice into xterm, vim or gvim.
> 
> Currently, the only way I can copy text out of LyX 2.2.2 is by
> exporting an ascii file, or opening the .lyx file in a text editor.
> Which is cumbersome for extracting a paragraph from a much longer
> document.
> 
> Is this a bug? Or do I need to change some setup to get this
> functionality?
> 
> Helge Hafting

Not certain if I know this is what's required: LyX Version 2.2.2
Debian Linux testing.

I can just highlight text in a LyX document. Just pressing, at the same
time, left and right mouse buttons, can paste into xterm.

Something that does happen on a couple of blog sites, is, if directly
copying from text from LyX, causes it all to be seen as a hyperlink? No
biggie though. Just copy it into a text editor and paste from there.

Don't know if that helps.

Be well,
Charlie

-- 
Registered Linux User:- 329524
***

They deem me mad because I will not sell my days for gold and I
deem them mad because they think my days have a price. --Kahlil
Gibran

***

Debian GNU/Linux - Magic indeed.

-


Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Helge Hafting



Den 20. april 2017 12:10, skrev Wolfgang Engelmann:



Am 20.04.2017 um 11:56 schrieb Helge Hafting:
Most linux sw lets me mark text with the mouse, and then click the 
middle mouse button in some other window in order to paste it there. 
No wading through "cut/paste menus", this is one of the strengths of 
the X windowing system.


I have no problem pasting terminal text into LyX (or using special 
paste to deal with line endings). But how do I go the other way? 
Sometimes, I want to mark a paragraph or two in LyX, and paste it 
into vim or something else running in an xterm. But that doesn't 
work, nothing happens. If I have copy-pasted text within that 
terminal before, the old text is pasted instead of what I marked in LyX.


Doesn't LyX put marked text on the clipboard?

I understand that there will be limitations - LyX supports formatting 
and the terminal only handles text. Still, I have no problem pasting 
from openoffice into xterm, vim or gvim.


Currently, the only way I can copy text out of LyX 2.2.2 is by 
exporting an ascii file, or opening the .lyx file in a text editor. 
Which is cumbersome for extracting a paragraph from a much longer 
document.


Is this a bug? Or do I need to change some setup to get this 
functionality?


Helge Hafting

Mark the text to be copied, ctr c, paste with ctr v should work
Wolfgang
Well, this works for (g)vim and firefox, because they bind "paste" to 
"ctrl v".  Thanks. Emacs can also paste using a different paste key.


It does not work if I want to paste something into the terminal itself 
though.


One case is when I want to test a command that I am writing about in LyX 
- I sometimes teach shell scripting. So I want to mark a long 
complicated command and paste it into an xterm to ensure there are no 
typos or other snags.


Another case is when I mark some paragraphs and paste it into a terminal 
that is running this:

cat > quicknotes
I can paste stuff from everything else: other terminals, firefox, 
openoffice. But not from LyX :-( Of course I can use "vim quicknotes" 
instead, but why should I have to?


Finally, using the mouse alone for mark+paste is much easier than
* mouse mark
* ctrl+c
* move mouse to other window
* ctrl+v (or whatever that app uses for a paste key)

Fewer transitions between mouse and keyboard is a good thing. Some 
extremists don't use the mouse at all, and do everything from the 
keyboard. I am not there, but grabbing the mouse _once_ is so much 
quicker than grabbing it twice and also using the keyboard twice. (And 
then it don't work for xterm either.)


Helge Hafting


Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Wolfgang Engelmann



Am 20.04.2017 um 12:10 schrieb Wolfgang Engelmann:



Am 20.04.2017 um 11:56 schrieb Helge Hafting:
Most linux sw lets me mark text with the mouse, and then click the 
middle mouse button in some other window in order to paste it there. 
No wading through "cut/paste menus", this is one of the strengths of 
the X windowing system.


I have no problem pasting terminal text into LyX (or using special 
paste to deal with line endings). But how do I go the other way? 
Sometimes, I want to mark a paragraph or two in LyX, and paste it 
into vim or something else running in an xterm. But that doesn't 
work, nothing happens. If I have copy-pasted text within that 
terminal before, the old text is pasted instead of what I marked in LyX.


Doesn't LyX put marked text on the clipboard?

I understand that there will be limitations - LyX supports formatting 
and the terminal only handles text. Still, I have no problem pasting 
from openoffice into xterm, vim or gvim.


Currently, the only way I can copy text out of LyX 2.2.2 is by 
exporting an ascii file, or opening the .lyx file in a text editor. 
Which is cumbersome for extracting a paragraph from a much longer 
document.


Is this a bug? Or do I need to change some setup to get this 
functionality?


Helge Hafting

Mark the text to be copied, ctr c, paste with ctr v should work
Wolfgang
Or, if you want to copy a section, use the outline pane, click on the 
particular section (or whatever) with right mouse button, choose 'select'
(the selected part turns blue), ctr c and paste in your editor (or 
whatever) with ctr v

In This way you can also move up or down selected parts, very handy!

Wolfgang


Re: How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Wolfgang Engelmann



Am 20.04.2017 um 11:56 schrieb Helge Hafting:
Most linux sw lets me mark text with the mouse, and then click the 
middle mouse button in some other window in order to paste it there. 
No wading through "cut/paste menus", this is one of the strengths of 
the X windowing system.


I have no problem pasting terminal text into LyX (or using special 
paste to deal with line endings). But how do I go the other way? 
Sometimes, I want to mark a paragraph or two in LyX, and paste it into 
vim or something else running in an xterm. But that doesn't work, 
nothing happens. If I have copy-pasted text within that terminal 
before, the old text is pasted instead of what I marked in LyX.


Doesn't LyX put marked text on the clipboard?

I understand that there will be limitations - LyX supports formatting 
and the terminal only handles text. Still, I have no problem pasting 
from openoffice into xterm, vim or gvim.


Currently, the only way I can copy text out of LyX 2.2.2 is by 
exporting an ascii file, or opening the .lyx file in a text editor. 
Which is cumbersome for extracting a paragraph from a much longer 
document.


Is this a bug? Or do I need to change some setup to get this 
functionality?


Helge Hafting

Mark the text to be copied, ctr c, paste with ctr v should work
Wolfgang


How do I copy text from LyX to xterm/rxvt?

2017-04-20 Thread Helge Hafting
Most linux sw lets me mark text with the mouse, and then click the 
middle mouse button in some other window in order to paste it there. No 
wading through "cut/paste menus", this is one of the strengths of the X 
windowing system.


I have no problem pasting terminal text into LyX (or using special paste 
to deal with line endings). But how do I go the other way? Sometimes, I 
want to mark a paragraph or two in LyX, and paste it into vim or 
something else running in an xterm. But that doesn't work, nothing 
happens. If I have copy-pasted text within that terminal before, the old 
text is pasted instead of what I marked in LyX.


Doesn't LyX put marked text on the clipboard?

I understand that there will be limitations - LyX supports formatting 
and the terminal only handles text. Still, I have no problem pasting 
from openoffice into xterm, vim or gvim.


Currently, the only way I can copy text out of LyX 2.2.2 is by exporting 
an ascii file, or opening the .lyx file in a text editor. Which is 
cumbersome for extracting a paragraph from a much longer document.


Is this a bug? Or do I need to change some setup to get this functionality?

Helge Hafting


changing language of Mageia 5

2017-04-20 Thread Michael Berger

Dear all,

having to do a fresh installation of Mageia 5 due to hardware problems I 
accidentally choose "German" as languge instead of "English".


Can a switch to "English" be accomplished without going through a fresh 
installation of Mageia?


Thanks and regards,

Michael Berger