Xterm style copy/paste?

General and specific configuration/INI settings

Xterm style copy/paste?

Postby willriddle » Wed Jun 06, 2007 2:36 pm

Does UltraEdit support unix style copy/paste like putty does?
Where you can select something and just paste it in with the mouse?
If not, does anyone know of an editor that does?
User avatar
willriddle
Newbie
 
Posts: 2
Joined: Tue Jun 05, 2007 11:00 pm

Re: Xterm style copy/paste?

Postby jorrasdk » Wed Jun 06, 2007 4:41 pm

I think UE can meet you halfways.

In UE13.00: Advanced - Configuration - Editor - Miscellaneous you'll find the option:

Automatically copy to clipboard when selection is made

However this option will not make the mouse paste the clipboard contents directly. Right click will however show a popup menu from where you can click on paste.
User avatar
jorrasdk
Master
Master
 
Posts: 275
Joined: Mon Mar 19, 2007 11:00 pm
Location: Denmark

Re: Xterm style copy/paste?

Postby willriddle » Thu Jun 07, 2007 11:08 am

Nice tip.. thank you.

It would be nice to add the "other half" but that's a good start.
User avatar
willriddle
Newbie
 
Posts: 2
Joined: Tue Jun 05, 2007 11:00 pm

Re: Xterm style copy/paste?

Postby Mofi » Thu Jun 07, 2007 12:11 pm

Maybe if you explain what Xterm style copy/paste exactly is for those who don't know putty like I, then we propably can give you more suggestions.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Xterm style copy/paste?

Postby brass » Fri Jun 08, 2007 3:26 am

I would also like this.

What the xterm copy/paste means is where you select a line, group of lines, or just a word or two, and once you let go of the left mouse button, whatever was highlighted is automatically on the clipboard.

It's the Unix way of copy/paste, whatever is highlighted is "The Clipboard"
User avatar
brass
Newbie
 
Posts: 4
Joined: Wed Apr 19, 2006 11:00 pm

Re: Xterm style copy/paste?

Postby brass » Fri Jun 08, 2007 4:50 am

also, middle click = paste would be nifty, since I'm asking.


Is there a way to write this in the scripting language?
User avatar
brass
Newbie
 
Posts: 4
Joined: Wed Apr 19, 2006 11:00 pm

Re: Xterm style copy/paste?

Postby Mofi » Fri Jun 08, 2007 6:49 am

brass wrote:What the xterm copy/paste means is where you select a line, group of lines, or just a word or two, and once you let go of the left mouse button, whatever was highlighted is automatically on the clipboard.


Then new setting Automatically copy to clipboard when selection is made is what you need to enable. But this feature is not available in UE v13.00a+2. It will be available in next version which will be v13.10 where currently the release candidate is available for the beta testers. So next week look out for UltraEdit v13.10.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Xterm style copy/paste?

Postby jorrasdk » Fri Jun 08, 2007 7:05 am

:oops: Sorry my mistake. I run both 13.00a and 13.10 beta and was not aware which version I was using at the time I wrote the post above about this option.
User avatar
jorrasdk
Master
Master
 
Posts: 275
Joined: Mon Mar 19, 2007 11:00 pm
Location: Denmark

Re: Xterm style copy/paste?

Postby toddm » Wed Jun 13, 2007 2:24 pm

I don't see how always copying the selection to the clipboard is more useful than annoying. It's been a while since I've used Unix/Linux by itself, but everyday I use Linux through Exceed on a Windows box.

In this case selecting text in a Exceed/Linux window copies it to a secondary clipboard that doesn't overwrite anything I've copied manually.

This is useful because it essentially gives me easy access to multiple clipboards.

So if I use ctrl-c text is copied to the main clipboard and selections are copied to a second clipboard. Ctrl-v pastes from the main clipboard and middle clicking pastes from the secondary clipboard. Though with Exceed/Linux the second clipboard is only valid when text is selected.

I've suggested this to the UltraEdit developers a couple times in the past, but no luck so far.
User avatar
toddm
Advanced User
Advanced User
 
Posts: 83
Joined: Wed Jul 28, 2004 11:00 pm

Re: Xterm style copy/paste?

Postby bobh » Wed Jun 13, 2007 3:04 pm

Did you know that UEStudio (and UltraEdit) have up to 9 user clipboards in addition to the standard Windows clipboard already as a built-in feature?
User avatar
bobh
Advanced User
Advanced User
 
Posts: 59
Joined: Tue Dec 28, 2004 12:00 am

Re: Xterm style copy/paste?

Postby toddm » Wed Jun 13, 2007 4:44 pm

Yes, but copy by selection and middle click paste will make them easy to use. As it is now I never use multiple clipboards as it's a pain to keep track of what's where.

I do use a program called Clipboard Recorder though so I can recall previous text I've copied.
User avatar
toddm
Advanced User
Advanced User
 
Posts: 83
Joined: Wed Jul 28, 2004 11:00 pm

Re: Xterm style copy/paste?

Postby Mofi » Thu Jun 14, 2007 6:53 am

With the auto copy feature and some macros you can get closely to what you want. Only paste from second clipboard with middle mouse will not be possible, you need a different hotkey instead. I have nothing below tested.

First macro must be executed once on startup of UltraEdit and contains only 1 line:

Clipboard 1

So now the default clipboard for the auto copy feature is user clipboard 1.


Second macro is for copying a text to the Windows clipboard. Assign hotkey Ctrl+C to this macro:

Clipboard 0
Copy
Clipboard 1


Third macro is to paste from Windows clipboard, assign hotkey Ctrl+V to this macro:

Clipboard 0
Paste
Clipboard 1


Fourth macro is to paste from user clipboard 1 the last automatically copied text to this clipboard:

Clipboard 1
Paste

And so on for Ctrl+X, Ctrl+Shift+C and Ctrl+Shift+X and Paste & Copy command. I know, not perfect but maybe helpful for you. But when you really use this, the copy, cut and paste toolbar and menu commands are also working with user clipboard 1 and not with the Windows clipboard.

BTW: UltraEdit has also a clipboard recorder - click on View - Views/Lists - Clipboard History.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Xterm style copy/paste?

Postby brass » Thu Jun 14, 2007 11:24 pm

Happy now that 13.10 is out! Works excellent!

I just wrote a program to hang out in systray that pastes on middle click, and I can leave out my SSH apps and others that can already do it, or middle button is used for something else so it doesn't mess those up.

Almost tweaked perfectly!
User avatar
brass
Newbie
 
Posts: 4
Joined: Wed Apr 19, 2006 11:00 pm

Re: Xterm style copy/paste?

Postby DigitalSorceress » Wed Jun 27, 2007 1:04 pm

Actually, I wish that the built-in SSH console in UE would work that way. Right now, you have to use a right-click context menu. It's quite inefficient.

Still, I love the little thing for those quick: log in, execute a command, log out. Like when I edit the /etc/aliases file on our mailserver and all I wanna do is run 'newaliases'.
User avatar
DigitalSorceress
Basic User
Basic User
 
Posts: 21
Joined: Tue Sep 19, 2006 11:00 pm


Return to Configuration/INI Settings

cron