How to paste in Cygwin with right click? - cygwin

We're more familiar with putty, so we use right-click more often to paste the text.
And sometimes when session timeout or close. Everything on the console is wiped out so we use Cygwin with more functions and controls to automate our tasks.
Maybe for some of you is easy, but I thought to post it, thanks!

So, the solution is very simple:
Click on Cygwin Window Bar -> Options -> Mouse -> Click actions -> Select Paste radio button.
Click Apply + Save and close the window.
You are Done now, Test & Check!
thanks!

Related

How to disable middle mouse click paste in IntelliJ IDEA 2017.1?

I have recently updated from version 2016.2 to 2017.1. Not counting this issue, it looks like all settings and plugins were imported from previous version successfully.
My question is, how to disable this behavior under Linux? I have already bound functionality to my middle button in IDEA, but it is being overwritten by that stupid second clipboard paste which I don't even use.
Only related thing I found in settings was Paste on middle mouse click in Terminal. It did not change anything in the normal main editor pane.
Edit: Few months later and it is still not fixed in current IDEA version. I am paying for the IDE and this feels like being ripped off.
Go to Settings -> Keymap -> Editor Actions.
Right click 'Paste from X clipboard'.
Select 'Remove Button2 Click'.
Apply.
This worked for me: Go to Settings -> Keymap and select 'Default' from the 'Keymaps:' dropdown in the top left - Or at least select away from 'Default for XWin Copy'. Then remove 'Button2 Click' from 'Paste from X clipboard.'
This is a bit of a pain because it resets all your keymaps, but at least it fixes middle click.
It's a known issue, please follow for updates:
IDEA-168643 2017 EAP - Middle mouse click always pastes

VS2012 change the Find Dialog (CRL+F) to the old (and working) find dialog

The "new and improved" VS 2012 Find And Replace Dialog, is frustrating me almost every time i have to use it (like every 30 seconds)
Is there way to make the find and replace window in VS 2012 act like it did in VS 2010?
I would like a non-docked, floating, DIALOG -- not the sticky auto-doc thing they have in VS 2012 (2013) now.
It would be nice to have a underlined-letter-hotkeys to navigate the dialog without a mouse, and the window to do not lose focus after search.
The way to make this is to use the FindInFiles dialog.
This can be done by learning to use "Ctl + Shift + F" instead of "Ctl + F" (bad), or simply change the shortcuts to use the old Find-In-Files dialog instead the new "thing" like this:
Tools, Options, Environment, Keyboard
In 'show commands containg:' enter this: FIND
Scroll down to Edit.Find
Remove any existing shortcut (I didn't bother)
Click into 'press shortcut keys' and press CTRL F
Click Assign
Scroll down to Edit.FindinFiles
Remove any existing shortcut (I didn't bother)
Click into 'press shortcut keys' and press CTRL SHIFT F
Click Assign
Hope that this will save you lot of furstration, like it was for me.

Execute batch-file from browser

i have got a batch-File. I mostly have to execute it when i'm in my browser (Firefox).
So i dont want to go to the directory and execute it. I want to have something in my browser.
First i thought about making a firefox-add-on. Something like a button, which executes my batch-file. But I failed.
Then i made a bookmark to the file, but it only shows me the content of the batch-file.
Is there any other option to execute a batch-file from the browser?
EDIT: I have found an add-on that creates an button to execute files:
https://addons.mozilla.org/de/firefox/addon/external-application-button/
I don't know a way you can run this from a browser, but perhaps you don't need to. I'd create a global keyboard shortcut. You haven't mentioned your OS so I've assumed Windows.
Go to your desktop, right-click and select New > Shortcut.
Browse to your .bat file.
Name the shortcut whatever you like - probably best to use yourfile.bat shortcut or similar.
Right-click your newly-created shortcut and select Properties.
On the Shortcut tab, click into the Shortcut key area.
Press Ctrl+Alt+B. I've used B for bat - you can use what you like, although some shortcuts may be used already in your browser - test and adjust if necessary.
Click OK - you're good to go!

Contextual menu Mac OS X - Pasting a text string

I would like to know if it is possible to set up a contextual menu option that allows me to select a string, e.g. from BBEdit or TextEdit etc., and after selecting it > right click > call Contextual menu item > Paste/Replace with string of text.
For example, if I had a text file open and wanted to select the word "blue" I would like the contextual menu item to be able to replace that with "red."
Yes, this is like copy and pasting, but there's a reason I am asking for this specifically and it would save me tons of time at my job.
I am not an experienced programmer, so consider me to be a complete newbie.
I want to do this in Automator. I know all the steps to get to the building part, just don't know which Utilities item to use for something like this.
I did figure out how to do it with a keyboard shortcut, though I'd also like to have a universal right-click contextual menu option. I used to use some app to do this for me in the old days.
Here's what I did. Go to Automator, select "no input" and "any application" above the actions window.
On the left, click on Utilities, drag "Run AppleScript" into the window on the right.
Insert, into the middle:
tell application "System Events"
keystroke "Text You Want To Input"
end tell
Save it, then go to System Preferences » Keyboard » Keyboard Shortcuts > Services, and find your saved title. Create a keyboard shortcut.

Elinks browser - howto paste without mouse?

Is it somehow possible to paste a URL in elinks?
I am connected per SSH and cannot use the mouse.
Very old question, I realise, but, comes up as the top result in google when searching for how to copy/paste in elinks - so as I have an answer, here it is, for the benefit of future searchers...
If connected via SSH and you are happy to use the mouse to copy/paste, but, it's not working as expected, you can just hold shift while clicking, e.g. using Putty for SSH, hold shift, left click and drag to select/copy and hold shift and right click to paste.
Source: http://elinks.or.cz/faq.html
I know that this is a few months old, but...
If you are using putty in windows, go to
Terminal > Features when configuring the connection.Then you need to check Disable xterm-style mouse reporting. This will allow you to right-click to paste in elinks (or any other program that blocks the mouse) just like you'd expect it to.

Resources