Geany: Can we open a website link from geany text editor? - geany

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

Related

how to shift code up or down with the up and down arrow keys on vs code mac?

On linux, i press alt + up or down to shift code up or down on vs code.
how do i do the same on mac?
it's a command Move Line Up/Down.
open show all command with shift+cmd+p
type Preferences: Open keyboard shortcuts
search move line
look what keybinding you have (mine was option + up/down)

VSCode - Open new terminal window in vsc

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.

How to close the escape of the terminal in MacOS?

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):

How to paste into SourceTree terminal window when using vagrant ssh

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

With terminal on Macbook pro why can't I use the "delete button" to remove text on 'nled' command

I'm kind of confuse a little bit, I just got my Macbook Pro today and trying to do the C language programming through terminal and I use to use PC [Windows] and the "delete button" working as a backspace for Windows
now I'm on terminal before get into nled it was working normal but after nled command the delete button isn't effect anymore
is there a way to remove the text in nled ?? I even tried with fn+delete and isnot working still
Terminal has a preference setting to have the Delete key send Control-H instead of the usual delete character (ASCII DEL 0x7F):
Terminal > Preferences > Settings > [profile] > Advanced > Delete sends Ctrl-H
If you're going to be using nled often, you can create a custom settings profile just for running nled. Select an existing profile (e.g., Basic) and choose Duplicate Settings from the action menu (the gear icon at the bottom of the profile list). Customize the "Delete" preference, and then put the nled command in:
Terminal > Preferences > Settings > [profile] > Shell > Run command
Enable the "Run command" checkbox, and possibly also "Run inside shell". Now you can just choose this new profile from the Shell > New Tab/Window submenus and it will create a new terminal and run the nled command with the customized Delete behavior.

Resources