Using Karabiner to remap COMMAND_R to Hash # - hash

I have created a remapping in my private.xml file as follows to try and get round the need to use a modifier key to enter a hash:
<?xml version="1.0"?>
<root>
<item>
<name>Command_R to Hash # (Alt+3)</name>
<identifier>private.Command_R_to_hash</identifier>
<autogen>
__KeyToKey__
KeyCode::COMMAND_R, ModifierFlag::NONE,
KeyCode::KEY_3, ModifierFlag::OPTION_L
</autogen>
</item>
</root>
However, when I have reloaded the file, COMMAND_R continues to work as a normal COMMAND_R.
I am using a MacBook Pro running OS X 10.11.2 (El Capitan) with Karabiner version 10.15.0
Thanks for any help and a Merry Christmas to one and all.

<autogen>
__KeyOverlaidModifier__
KeyCode::COMMAND_L,
KeyCode::COMMAND_L,
KeyCode::KEY_3, ModifierFlag::SHIFT_L
</autogen>
with this mod when you holding down "command" it act as "command", when you tap "command" it produce "#"
doc reference here
https://pqrs.org/osx/karabiner/xml.html.en#syntax-KeyOverlaidModifier
recommend reading
https://stevelosh.com/blog/2012/10/a-modern-space-cadet/#better-shifting

Related

Is there no way to get Macro Libraries written in 4.27 to work in 4.26?

Didn't realise that macros libraries written in the latest version 4.27 wouldnt work in 4.26.
Is there not a way to make to make it work?
Ben
As Ken White stated:
Not if they use features that didn't exist in 4.26.
It is possible using a manual process:
Open each Macro in 4.27, Take note of the Input and Output Pins.
Select all nodes in the body. Press CTRL-C
Create a corresponding macro in 4.26, Add the Input and Output Pins.
With the mouse in the Blueprint area, press CTRL-V to paste the body.

Tilde symbol does not display correctly in PowerShell

I wanted to type cd~ into PowerShell to move to my home directory, however when I pressed SHIFT and the tilde keys the output is cd˜, so instead of the big regular tilde symbol ~, I got small superscript tilde symbol ˜ I can type the tilde symbol in other applications, the problem only occurs when I use PowerShell or cmd.exe, I'm using ENG(Canada) US Keyboard, Window 8.1 and PowerShell version 4.0
The closest topic I found on the site that cover a problem similar to mine is this one Tilde not recognized in Mac terminal but it's for MAC and I am using Window 8.1
Any suggestion on how I can fix the problem?
This is probably caused by your keyboard settings ( input services in control panel ). You need to find offending service and remove it.
Until you find it, you can fix this with AHK hotstrings :
::˜::~

Is there a way to map the tab key to meta in emacs?

I'm looking to rebind Meta to the tab key in my emacs environment. I've looked around but been unable to find anything other than binding it to command or option, which are slightly better but still not ideal.
You cannot do this in Emacs alone, you need to modify the keymap in your window system (*nux, Mac, MS Windows).
See the similar questions for the reasoning: Mapping Caps Lock to Control from within Emacs on Windows, elisp how to check if Shift key is pressed, and Can I send a keypress to Windows from Emacs?.
You can make the change in your window system - but it'd be helpful to know what that is...
If you use OS X, you can install KeyRemap4MacBook and use a private.xml like this:
<?xml version="1.0"?>
<root>
<appdef>
<appname>EMACS</appname>
<equal>org.gnu.Emacs</equal>
</appdef>
<item>
<name>tabtometa</name>
<identifier>tabtometa</identifier>
<only>EMACS</only>
<autogen>__KeyOverlaidModifier__ KeyCode::TAB, KeyCode::OPTION_L, KeyCode::TAB</autogen>
</item>
</root>
It changes tab to option when held but keeps it as tab when pressed.
If you want to use option to insert non-ASCII characters, change OPTION_L to CONTROL_R and use:
(setq ns-option-modifier 'nil)
(setq ns-right-control-modifier 'meta)

Key Mapping for ViPlugin for Eclipse

I want to duplicate some of my Vi key mappings in the ViPlugin for Eclipse. Specifically, I use "jj" for the Esc key, which is done like this in my rc file:
map! jj <Esc>
The ViPlugin User Manual explains how to set up some rc file type of configurations. The example given is:
<?xml version="1.0"?>
<xml>
<shiftwidth>4</shiftwidth>
<vimcursor>true</vimcursor>
<ignorecase>true</ignorecase>
<expandtab>true</expandtab>
<hlsearch>true</hlsearch>
<incsearch>true</incsearch>
<undolevels>1000</undolevels>
<wordseparators>.,(,), ,TAB,ENTER,:,;,?,+,=,ANGLE_BRACKET_RIGHT,ANGLE_BRACKET_LEFT,*,{,},",|,COMMA,-,\,/,#,[,],},~,!,#,$,%,^,',`,´,AND</wordseparators>
</xml>
The User Manual also mentions about a handful of Eclipse Actions that the ViPlugin implements, which can be assigned Keybinding (for example, EraseBackOneWord and AddOneLevelOfIndentation), but that doesn't seem to be helpful here.
I believe what you trying to achieve isn't possible using the ViPlugin. It supports a limited set of rebindable actions which are accessible through the default eclipse key bindings menu.

eclipse: make 'down' key go to end of line IF its the last line

simple eclipse question: is there a way i can make the 'down' key move to the end of the line (like the 'end' key binding) IF im editing the last line of the file (so it continues to behave like before, if its not the last line of the file)?
pretty much like visual studio works, move up and down lines if its not the last line, but acts like 'end' if its the last line.
thanks.
Not with the eclipse as it is currently distributed: a command like "Line Down", associated to the ↓ key, will always move down the lines, not jump at the end of one.
You would need to define your own keyboard shortcut, like the one describe in this Eclipse wiki entry, associated to your own key-binding configuration. It would be similar to:
<extension
point="org.eclipse.ui.bindings">
<key
commandId="org.eclipse.ui.examples.contributions.view.edit"
contextId="org.eclipse.ui.examples.contributions.view.context"
sequence="ARROW_DOWN"
schemeId="org.eclipse.ui.examples.contributions.scheme">
</key>
</extension>
See also the help page.
then you would run your patched version of eclipse, with the relevant action taken when ARROW_DOWN is pressed.