In my console2 settings under tabs, I have 3 different tabs the defult console, one with powershell shell and one with bash shell.
Is there a way to set a hotkey so when I press ex, ctrl + a it opens up powershell and ctrl + b it opens up bash?
I'm using ConsoleZ which is a fork of Console2. So the setting is possibly the same, if not you might consider using ConsoleZ instead.
You can define hotkeys for New tab 1 to New tab 12 in the settings. By default the hotkeys to open new tabs are Ctrl+F1 to Ctrl+F10 and to switch existing tabs Ctrl+1 to Ctrl+0
Related
I am running an R file with the PyCharm R plugin. Is there a way to clear the console? I have tried ctrl + L and cmd + L, but neither of them works.
I can't find a default key-binding for clearing the R-console in PyCharm, but you can press Ctrl-Shift-A (or navigate to Help-> Find action) to find the action, and set your own binding, in this case you would want to search for/bind clear all (not clear).
Put the mouse cursor on the area of the R-console where the text is that you want to clear.
Press the right mouse button. Choose the option "Clear All".
See screenshot.
I'm used to using Ctrl- Alt - I to create new code chunks in R Markdown. Well I don't know what I did, but now that combo of keys inverts the colors on my screen instead of creating a new code chunk. Suggestions on how to change it?
That keyboard shortcut is enabled when you enable Windows Magnifier.
https://support.microsoft.com/en-us/help/11542/windows-use-magnifier-to-make-things-easier-to-see
To confirm that it is enabled:
open Settings (Win-x, n for Settings)
select Ease of Access
left side, select Magnifier
notice if you have "Turn on Magnifier" enabled
(You can disable it here, but keep reading for more context.)
On that screen, you can see that default hotkeys include:
Win + (windows key and "plus" key) for enabling
Win Esc to turn off magnifier
So perhaps it should be possible to disable globally with Win Esc and then regain control of Ctrl-Alt-I in RStudio (and/or elsewhere).
If I run tmux with synchronized panes, I can type and have the text appear in all panes at the same time.
Furthermore, if I use the mouse to select text and copy it into the system clipboard, I can paste and have it appear in all panes.
However, if I want to use tmux native copy (prefix-[) and paste (prefix-]), the pasted content appears in only one pane.
Is there a native tmux way to paste in all panes of the current window?
There is no native tmux way so far to achieve it. Because pasting buffer is calling paste-buffer command. It can only be applied on a single pane, with the optional -t.
Your system clipboard approach worked because you were using the send-key (I guess) in key mapping.
What you can try is, if you have synchronized panes, you type in one pane: tmux pasteb, you will see that this command was typed in all panes, however the result/output comes only to your current pane.
I'm using tmux for the first time as a replacement for iterm (mostly because of the split panels function) and it works great. Now, i have a question about the copy-text behaviour.
It's possible to configure tmux, so i can select text with the left button (in copy mode) and it's automatically copied (to the clipboard) when i release the left button? (same as in irc clients)
Tmux’s select behavior will depend on your mouse settings. If mode-mouse is off, Tmux should stay out of the way. But, by default, it may be set to “on”. Then it will use its own “paste buffer”. To bypass that, you can hold down shift while selecting and pasting. (This works on Linuxes, but probably on Mac, too; not sure what OS you’re on.)
I'm trying to create a visual indicator of which pane is currently focused in tmux when my terminal (iterm2, OSX) window gains focus. I have found that iterm2 sends a focus gained escape sequence (^[[I) so now I am trying to find how I can capture that and fire the prefix q command which shows pane numbers with the active pane in red.
Any ideas on how to capture the escape sequence in tmux OR in iterm2?
I have a partial solution to my issue which takes a different approach. Since I usually have vim and one terminal pane open, dimming vim when it is not focussed is a good indicator which pane is active. In order to achieve this I have modified the vim-diminactive plugin to react to focus events (https://github.com/blueyed/vim-diminactive/pull/8), this requires the Vitality.vim plugin as well as enabling (focus-events) in tmux options.
In order to completely solve my issue I am working on changing the background colour of terminal panes when they lose focus. I use zsh so I can capture the focus event with bindkey (I have verified this works) to issue a background colour change escape code to iterm2, however this seems to have no effect in tmux.