Я хочу создать ярлык в Ubuntu, который бы открывал новую вкладку и осуществлял поиск выбранного текста в Firefox. Например, если я получаю какую-то ошибку, я бы выбрал ее, нажав на ярлык, и откроется новый поиск.
Я бы добавил ярлык через Настройки -> Сочетания клавиш. I know that I can open new tab through:
firefox --new-tab --url about:newtab
What I do not know is how to copy selected text or in other words what command does Ctrl+C execute? And how do I combine them?
Thanks!
Ctrl+C doesn't actually run any command. It sends SIGINT, i.e., Interrupt signal to the process running in foreground.
From Signal (IPC) - Wikipedia:
SIGINT
The SIGINT signal is sent to a process by its controlling terminal when a user wishes to interrupt the process. This is typically initiated by pressing Ctrl+C, but on some systems, the "delete" character or "break" key can be used.
If you want to copy text from terminal, you should use Ctrl+Shift+C.