In Sourcetree when you click Terminal and use the vagrant ssh command in the window, how to paste text from your clipboard?
These don't work:
Ctrl + V
Ctrl+Shift+Ins
Right clicking in the window and selecting Paste.
To paste into it when using Windows, you have to:
Right click on the top bar
Select Edit
Select Paste
Related
Is there any option to open the program files in Terminal(windows) directly from the folder's location in the drive, without actually typing all the commands to navigate and then executing it.
I guess "open in Terminal" option in present in Ubuntu;
You can achieve this in a number of ways.
Click on File at the top left corner of the current folder location. You will see Open Windows PowerShell option. Click on any option. It will open Power Shell and automatically navigate to the current folder.
Another option, Press Shift and Right Click. It will show Open PowerShell window here option.
If you are looking for Ubuntu-like terminal(bash) then you can install the Git terminal from here. Then, on right-click you will see Git Bash Here option.
Is there any way to open a new terminal window within vscode and run code in it?
Click on "+" button marked with red color
You can also go to the View menu and select Terminal. It will open a terminal window under your editor window.
Or you can use the command " Ctrl + ` " and it will open a new terminal.
Recently I got a Macbook Pro. I can't manage to copy any sing in mceditor to clipboard and paste. No solutions seems to work.
Command+V - does paste a text from the buffer, but Command+C does nothing, I can't copy to buffer.
As seen in this answer, you can use the ⌘+R shortcut to disable "Mouse Reporting" in your Terminal window.
Or you can leave "Mouse Reporting" on to be able to use your mouse in MC, but press Fn to disable it just while selecting text to copy.
More details in this answer.
Run mc with -d switch (mc -d). It will disable mouse features in mc and now you can copy with LMB+select and paste with Cmd+RMB
1) Select text in File1 by F3(select block)
2) Run Menu (F9 edit/[copy to buff file] aka C-Ins)
3) Open File2
4) Run Menu (F9 edit/[paste from buff file] aka S-Ins)
when I paste the website address to the terminal, the terminal will escape the character.
eg:
I paste the http://stackoverflow.com/questions/ask?title=xxx ,
in the terminal, it will convert into http://stackoverflow.com/questions/ask\?title\=xxx
How to close the escape in MacOS terminal?
Thanks!
If you are asking how to paste into Terminal without escapes: from the menu bar, choose Edit > Paste (default shortcut: ⌘V).
You only get escaping if you use Edit > Paste Escaped Text (default shortcut: ⌃⌘V).
If your menu items have different keyboard shortcuts, you (or someone) has probably customized them using the Keyboard pane in System Preferences. It looks like this (although I haven't customized the Paste shortcuts):
I am a big fan of Geany text editor. I am using it to write Python, C and as a simple text editor.
My question is following:
Suppose I have opened a file example.txt and it contains:
https://www.youtube.com/
www.youtube.com
Is there any way I can select this text code and open from any browser?
Is there any plugin or any workaround that I can open the given link directly in a web browser (let's say firefox)
from the Geany text editor?
My intitial attempt is like this:
Edit > Format > Send Selection to > Set Custom Commands > firefox
Edit > Preferences > Keybindings > Send to Custom Command 1 > primary 1
Then, I did following steps:
selected the text "https://www.youtube.com/"
then press ctrl 1
then, the text "https://www.youtube.com/" vanishes
and, empty firefox is opened
Note that, however, if I type firefox https://www.youtube.com &
This opens youtube without any error.
My question is can we do something that if I select the text and ctrl 1 opens the same website.
Some related links are following:
https://askubuntu.com/questions/312677/how-to-set-custom-commands-in-geany?rq=1
http://www.geany.org/manual/#sending-text-through-custom-commands
You can do this with a context action. See https://www.geany.org/manual/#context-actions
Preferences -> Tools -> Contextaction
firefox %s
opens the selected Text
Right-click or define a keybinding for executing this context action.
I did following to open a link:
suppose the link is : www.youtube.com
then,
firefox www.youtube.com
select the line
right click, Edit > send selection to terminal > hit enter
Or, we can set keybindings for these:
Edit > Preferences > keybindings
Select Current Line(s) = shift alt L
Send selection to terminal = shift alt T
Usage:
firefox www.youtube.com
select this line: shift alt L
send to terminal: shift alt T
go to terminal : F4
run command : Enter
Another Example:
www.youtube.com
select this line: shift alt L
send to terminal: shift alt T
go to terminal : F4
go to beginning : ctrl A
add a command : firefox
run command : Enter