When working in Unix with various programming languages I often use Kate as my primary editor.
It has a really nice function of being able to open a built-in terminal window which is quite useful.
The problem is that switching back and forth to the terminal view using a mouse is quite a pain and I can't find any shortcuts for this. The only shortcut I could find is for closing the entire terminal (not just changing the focus). This is a bit annoying as it causes the text in the terminal window to get truncated (I think it's a known Kate bug).
Does anyone know a better shortcut?
Note that the Kate bug has been fixed. The correct answer to this question is now F4.
There's a "Focus Terminal" shortcut in the "Configure shortcuts"
There you can set it up. F4 didn't work by default in my case and Shift+Tab worked only in one direction.
this is a bug in kate. possible workarounds: a) shift back by pressing Shift+Tab, b) try another shortcut (some do work). see also Bug 157496: Alt+[Key] shortcuts for menu items do not work.
Today (Kate v 22.08.2), it's
Settings > Configure Keyboard Shortcuts > Type "terminal" in Search box >
edit shortcut for "Focus Terminal Panel".
For me, the default was Ctrl+Shift+ F4, while F4 hid the terminal.
I swapped them because it's more convenient for me.
The focus shift is only visible by appearance of the cursor changing slightly.
Related
I am a retired Linux user and I am now only working on Windows 10. There is a super simple feature that I used a lot on Linux "Stay on top".
I don't understand why, but it's never been a feature on Windows whereas it is super useful especially when you program.
I tried a bunch of software to do that but none are as convenient as right click on the top toolbar of Windows 10 and select "Stay on top".
Is there a way using a script or something else to do this on my own ? I think it should be easy but I'm lacking english keywords to find this.
https://i.imgur.com/iFw4iA1.png
This is the link to an image showing the menu where I want the option to be. (I can't directly post it here :'( )
Thank you for your help, I hope I've been clear enough.
My RStudio keyboard shortcuts of Command+Enter and Option+Enter cannot work, after upgrading RStudio Version 1.0.136 on my Mac BookPro notebook. Any one can help me? Many thanks.
Best,
Gary
You can try to rebind them to something different as a semi-solution. However, why the shortcuts don't work I couldn't tell you.
Go to Tools -> Modify keyboard shortcuts and in the search field type run. You will see the Run current line or selection and the bindings behind it. If they are empty then we have an immediate answer to your problem. If not, you can bind it to something different.
I was using ctrl + - to make the code font smaller (or zooming out) in the R studio source editor and I got the pop up window (picture attached).
I think I pressed OK by mistake and I lost a huge chunk of code. How can I recover that?
Also. it makes me bit skeptical of using Rstudio. Pop out message
ctrl + z is the undo command (Windows)
For other shortcuts:
https://support.rstudio.com/hc/en-us/articles/200711853-Keyboard-Shortcuts
From a beginner standpoint, I find rstudio to be one of the most user friendly dedicated IDE's available for any programming language.
If you are on Windows, a JSON file with your code is available at
C:\Users[your user]\AppData\Local\RStudio-Desktop\sources
Follow instructions as:
https://stackoverflow.com/a/51433764/3142205
This is a terrible bug that RStudio has. I have never seen a code editor that every time you change the zoom level you lose your code! It is a terrible issue that makes me wonder if I should go back to Notepad++. I have never lost a file using Notepad++.
Updated: This issue has been solved in RStudio 1.2.1335 "Allow changing zoom level without reloading (#2125)".
In this case I immediately press ctrl + z. If this is not recovering your code try with history tab -> go to history tab:
Use ctrl with + on the right keyboard, don't use key.
may the shortcut of Zoom Source Editor with Ctrl+Shift+1 is a substitute plan.
It’s a pity that Rstudio doesn't provides a support to ctrl + +/-(mouse scroll)
I'm used to Emacs navigation, in particular Ctrl+P, N, F, and B, but I'm also used to Jupyter notebooks by now. The general question is: how to enable those shortcuts in a notebook?
What tickles me is the fact that on Mac those keybindings are already in place in a standard Anaconda IPython. But it's perfectly understandable since most system and browser shortcuts are bound to Cmd instead of Ctrl.
Since I spend a lot of time in Ubuntu, I wanted to reproduce the same behaviour here. It soon became apparent that most browsers hold some of the keybindings very dearly, such as Ctrl+P for print or Ctrl+N for New window. Turning these off is a huge matter in itself, so I decided to use another browser solely for the Jupyter Notebook, and Vivaldi seems like a nice choice since all shortcuts are easily customizable there.
I believed that with browser shortcuts being turned off, the IPython syntax would kick in, but none such thing has happened. Next I tried one of many manuals on the Jupyter notebook shortcuts customization (such as this one http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/Custom%20Keyboard%20Shortcuts.html) to bind the 4 shortcuts I need. It works only up to some extent and only in the Jupyter inline magic:
%%javascript
Jupyter.keyboard_manager.command_shortcuts.add_shortcut('ctrl-p', 'jupyter-notebook:move-cursor-up')
What it does is that occasionally now the cursor in command mode does indeed move up when I press ctrl-p, but this behaviour is unstable. Moreover, after it moves, it immediately enters the edit mode in the cell above, which isn't happening if I simply press 'Up' arrow. As for the same trick for the edit mode:
%%javascript
Jupyter.keyboard_manager.edit_shortcuts.add_shortcut('ctrl-p', 'jupyter-notebook:move-cursor-up')
alas, it doesn't work at all.
Forgive me for the prolonged intro. The questions I have now are:
What is wrong with the key bindings I use in inline mode? Is it a silly mistake I made or a Jupyter glitch?
When I try to use these byndings through my custom.js file, they do not work. However, the file itself is recognized, e.g. the alert() commands work perfectly fine.
I've stumbled a few times on a emacs-bindings for the CodeMirror, however, as far as I understood, they are mostly used for copy-paste related matters rather than navigation, is it true? Would it help to use this set of bindings instead of pursuing the path with custom.js?
Thank you.
UPD
Installing emacs.js from CodeMirror and adding this code actually solved my problem. Just had to make sure that all conflicting browser keybindings were turned off.
require(["codemirror/keymap/emacs", "notebook/js/cell", "base/js/namespace"],
function(emacs_keymap, cell, IPython) {
cell.Cell.options_default.cm_config.keyMap = 'emacs';
var cells = IPython.notebook.get_cells();
for(var c=0; c< cells.length ; c++){
cells[c].code_mirror.setOption('keyMap', 'emacs');
}
}
);
this is driving me crazy. Everytime I click on the terminal, I get text output but the click does not happen. I can't select anything, scroll on the terminal or perform any mouse operations.
For example, if I click I get things like "TB#TB", which is "TB" when I click and "#TB" when I release the click. If I scroll I get 'UC'` for every scroll of the wheel. Total rubbish.
I'm using cygwin to connect to a redhat machine and it happens only for this one machine. If I connect to a different one, also running redhat, it doesn't happen, so I think the issue is on the remote machine's side. It's also independent of what shell I'm using.
Any ideas?
EDIT: I discovered that pressing shift returns all the usual mouse functionality. I wonder why.
This is more like a "come down to your machine and solve problem"
You must have save default setting for that particular machine to direct it to shift option. As you said shift solves the problem.
You should reset the settings.
go here.
Putty configuration>windows>selection>click on shift overrides application's use of mouse
hope this helps