Is there any option to change the meta M- shortcut on nano text editor?
Im working with a Mac, and I wanted to change the meta shortcut for comfort reasons. I'm actually using the esc key but will love to change it to my preference.
You can rebind individual keybindings by editing your ~/.nanorc file to include keybindings. Unfortunately, nano only supports ^, M- and F as modifiers, so it would be difficult (not to mention tedious) to fit all M- keys elsewhere.
Instead, it might be simpler to rebind the key in your terminal program, or use an external hotkey remapping program. I have no expertise with the latter on Mac, but you could start looking here.
Related
I have just migrated from Atom, there, I was using Vim-plus but now on VS Code I have switched to neovim, but the problem is, there are many conflicting keybindings.
I tried to change them manually (something like, to close editor, 'Ctrl+c+t', which I mapped to close editor's tab, similarly others).
But I feel that's very unproductive and also can cause strain in my fingers. So any suggestions, or keybindings config of anyone which I can use alongside the NeoVim to increase my productivity. Or any other suggestions how to properly configure my VS Code?
NOTE: I know about the existence of an Atom Keybindings Extension which I honestly don't care, as I was mainly using Vim keybindings there and never bother to learn atom specific keybindings.
If you want VS Code to act like VIM, which is super unique in its interface and keybindings, there is an extension called:
VSCode Vim
VSCode Vim's Marketplace ID: vscodevim.vim
Personally I can't stand the VIM keybindings, so I don't know how great the extension is, but I know people who use it. It has 2.4 million downloads and counting. I also know, because of my buddy, that its not perfect, but it's close.
As with any other extension, don't just install it and hope it's what you wanted "out-of-the-box", this theme is customizable, and requires you to configure it. Make sure you read the README.md, and set it up so you know that it is best suited for your expectations.
If you are already using the VSCode VIM Extension, and you find that you are having conflicting issues using the keybindings associated with it. You can troubleshoot them using the keybindings troubleshooting tool by selecting it from the quick input menu.
Press F1
Type the phrase: "Keyboard Shortcut Troubleshooting"
Select the option "DEVELOPER: Toggle Keyboard Shortcut Troubleshooting Tool"
The tool should open in the console below. The menu might look like gibberish at first, however; the output of the newly opened console should make more sense once you use a familiar keybinding. Make sure that the console window is scrolled to the bottom and opened wide enough so your able to read everything logged. The tool will tell you what is attached to the keybinding your using, so you can see any conflicts that are happening, and what the key is set to do by you, by extensions, and by default.
Make changes to your keybindings.json file as necessary.
I've been dying to get this working on the default terminal on the mac, this feature is really useful when you write something wrong, and can just cmd + backspace to delete all the lines.
I googled online several times but I couldn't find anything related to this.
Well, the functionality is already there: ⌃+U will delete everything left to your cursor to the beginning of the line. You cannot, however, change this keyboard shortcut.
You can change application-specific keybindings by installing additional tools like, for example, Karabiner.
Alternatively, you can install iTerm2 as a Terminal replacement. That will allow you to enable this - and many other text editing keybindings - with one click in the settings.
On my mac, typing Option-Shift-R in any text field in any program inserts a "‰" character. The problem is that I use Option-Shift-R as a special shortcut in another program (PyCharm), and whenever I use this key it both executes the action in pycharm and types the character, which is annoying.
Given that I've never once needed the "per-mille" symbol in my life, is there a way on mac to disable this shortcut? There seems to be no option for it in the "Keyboard -> Shortcuts" menu.
It is your keyboard layout that's producing "‰" when you press Option-Shift-R. (It's also what produces "A" when you press the A key, and everything else.)
You can try switching to a different built-in keyboard layout using System Preferences > Keyboard > Input Sources, but you probably won't find one which produces nothing when you press Option-Shift-R.
So, your best bet is probably to create a custom keyboard layout and use that. There's an app called Ukelele that can help create such custom keyboard layouts. I haven't check recently, but I'm fairly sure it can create a new one by copying one of the built-in layouts, which you then tweak just a bit so most things work just as you expect.
In VS Code you need to use alt to set multiple cursors. Is there any way to change it to, maybe, ctrl? Using alt really annoys me as it's less comfortable to me and it always toggles menu bar which I hid on Windows:
photo
Or maybe is there any other solution, maybe to change key that toggles menu? I couldn't find any useful shortcut entries in shortcuts config of vs code.
It is not currently possible to customize mouse shortcuts, the feature request for that is here https://github.com/Microsoft/vscode/issues/3130
It's actually completely unusable on most Linux distributions as it's an OS-level shortcut.
I often use TextMate on a desktop Mac with a full (old-style) Macintosh keyboard with a full numeric keypad. I'd like to be able to bind menu item keys, macro key triggers and other actions to some of those numeric keypad keys.
I understand I can do this for some Cocoa (?) text editing commands in a ~/Library/KeyBindings/DefaultKeyBinding.dict file, but for Macros the TextMate dialog box doesn't distinguish between numeric keypad and main keypad keys with the same name. Ditto for the OS/X keyboard shortcuts preference pane used to change TextMate menu item keys.
Should I be trying to customize some of the core bundles instead?
Any advice much appreciated,
Stu
I understand I can do this for some Cocoa (?) text editing commands in a ~/Library/KeyBindings/DefaultKeyBinding.dict file
This is the key. TextMate does use this file, but in addition it has its own version that may be used to override settings or provide unique actions. You can even call some TextMate functions (selectors) directly through this method.
I recommend copying the default version from /Applications/TextMate.app/Contents/Resources/KeyBindings.dict to ~/Library/Application Support/TextMate/KeyBindings.dict and modifying it there.
Unfortunately, calling Bundle macros is a challenge... but I think it may be possible through some clever combinations of commands...
("insertText:"," keypad1.sh","selectWord:","executeCommand:")
Then, if you add into your source bundle the default values of the commands (in Support/bin) --- keypad1.sh returns 1... --- you can have customized commands in the Bundles you're interested in modifying.
I haven't tried this, but I think it may just work...