@ -21,9 +21,9 @@ Some frequently used Git commands.
| Keycode | Output | Output with < kbd > Shift< / kbd > |
| Keycode | Output | Output with < kbd > Shift< / kbd > |
| :---------------------------------- | :--------------------- | :--------------------------- |
| :---------------------------------- | :--------------------- | :--------------------------- |
| [`G_PUSH` ](./noroadsleft.c#L 38-L42 ) | `git push origin ` | `git push origin ` |
| [`G_PUSH` ](./noroadsleft.c#L 49-L53 ) | `git push origin ` | `git push origin ` |
| [`G_FTCH` ](./noroadsleft.c#L 43-L52 ) | `git fetch upstream ` | `git pull upstream ` |
| [`G_FTCH` ](./noroadsleft.c#L 54-L63 ) | `git fetch upstream ` | `git pull upstream ` |
| [`G_BRCH` ](./noroadsleft.c#L 53-L62 ) | `master` | `$(git branch-name)` |
| [`G_BRCH` ](./noroadsleft.c#L 64-L73 ) | `master` | `$(git branch-name)` |
`$(git branch-name)` is an alias for `git rev-parse --abbrev-ref HEAD` , which normally returns the name of the current branch.
`$(git branch-name)` is an alias for `git rev-parse --abbrev-ref HEAD` , which normally returns the name of the current branch.
@ -33,24 +33,28 @@ Some of my macros and keycodes do different things depending on the value of the
| Keycode | `macroMode == 0` | `macroMode == 1` | `macroMode == 1` with < kbd > Shift</ kbd > |
| Keycode | `macroMode == 0` | `macroMode == 1` | `macroMode == 1` with < kbd > Shift</ kbd > |
| :------------------------------------- | :--------------- | :--------------- | :------------------------------------- |
| :------------------------------------- | :--------------- | :--------------- | :------------------------------------- |
| [`M_SALL` ](./noroadsleft.c#L 63-L71 ) | `Ctrl+A` | `Cmd+A` | `Cmd+A` |
| [`M_SALL` ](./noroadsleft.c#L 74-L82 ) | `Ctrl+A` | `Cmd+A` | `Cmd+A` |
| [`M_UNDO` ](./noroadsleft.c#L 72-L84 ) | `Ctrl+Z` | `Cmd+Z` | `Cmd+Shift+Z` |
| [`M_UNDO` ](./noroadsleft.c#L 83-L95 ) | `Ctrl+Z` | `Cmd+Z` | `Cmd+Shift+Z` |
| [`M_CUT` ](./noroadsleft.c#L 85-L93) | `Ctrl+X` | `Cmd+X` | `Cmd+X` |
| [`M_CUT` ](./noroadsleft.c#L 96-L104) | `Ctrl+X` | `Cmd+X` | `Cmd+X` |
| [`M_COPY` ](./noroadsleft.c#L 94-L102) | `Ctrl+C` | `Cmd+C` | `Cmd+C` |
| [`M_COPY` ](./noroadsleft.c#L 105-L113) | `Ctrl+C` | `Cmd+C` | `Cmd+C` |
| [`M_PASTE` ](./noroadsleft.c#L1 03-L115 ) | `Ctrl+V` | `Cmd+V` | `Cmd+Shift+Opt+V` |
| [`M_PASTE` ](./noroadsleft.c#L1 14-L126 ) | `Ctrl+V` | `Cmd+V` | `Cmd+Shift+Opt+V` |
| [`KC_PSCR` ](./noroadsleft.c#L16 6-L174 ) | `KC_PSCR` | `Cmd+Shift+3` | `Cmd+Shift+3` |
| [`KC_PSCR` ](./noroadsleft.c#L16 2-L170 ) | `KC_PSCR` | `Cmd+Shift+3` | `Cmd+Shift+3` |
| [`KC_HOME` ](./noroadsleft.c#L17 5-L183 ) | `KC_HOME` | `Cmd+Left` | `Cmd+Left` |
| [`KC_HOME` ](./noroadsleft.c#L17 1-L179 ) | `KC_HOME` | `Cmd+Left` | `Cmd+Left` |
| [`KC_END` ](./noroadsleft.c#L18 4-L192 ) | `KC_END` | `Cmd+Right` | `Cmd+Right` |
| [`KC_END` ](./noroadsleft.c#L18 0-L188 ) | `KC_END` | `Cmd+Right` | `Cmd+Right` |
### [Emulated Non-US Backslash ](./noroadsleft.c#L 121-L135 )
### [Emulated Non-US Backslash ](./noroadsleft.c#L 32-L42 )
Sometimes I type in languages from countries that use ISO layout, but my keyboard is ANSI, so I have one key fewer. This macro simulates the Non-US Backslash key if I use Right Alt + `KC_Z` .
Sometimes I type in languages from countries that use ISO layout, but my keyboards are all ANSI layout, so I have one key fewer than necessary .
### [Emulated Numeric Keypad ](./noroadsleft.c#L136-L150 )
This macro simulates the Non-US Backslash key if I hold Right Alt and tap the key to the right of Left Shift.
Requires defining `ANSI_NUBS_ROW` and `ANSI_NUBS_COL` in `config.h` at the keymap level.[< sup > 2</ sup > ](#footnotes)
### [Emulated Numeric Keypad ](./noroadsleft.c#L132-L146 )
If I hold the Right Alt key, the number row (`KC_1` through `KC_0` ) will output numpad keycodes instead of number row keycodes, enabling quicker access to characters like ™ and °.
If I hold the Right Alt key, the number row (`KC_1` through `KC_0` ) will output numpad keycodes instead of number row keycodes, enabling quicker access to characters like ™ and °.
### [Emulated Extended Function Keys ](./noroadsleft.c#L151-L165 )
### [Emulated Extended Function Keys ](./noroadsleft.c#L1 47-L161 )
Similar to the emulated numpad, if I hold the Right Alt key with the Fn key, the function row (`KC_F1` through `KC_F12` ) will output keycodes `KC_F13` throught `KC_F24` .
Similar to the emulated numpad, if I hold the Right Alt key with the Fn key, the function row (`KC_F1` through `KC_F12` ) will output keycodes `KC_F13` throught `KC_F24` .
@ -79,3 +83,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
- [KC60 ](../../keyboards/kc60/keymaps/noroadsleft/keymap.c#L111 )
- [KC60 ](../../keyboards/kc60/keymaps/noroadsleft/keymap.c#L111 )
- [KBDfans KBD75 rev1 ](../../keyboards/kbdfans/kbd75/keymaps/noroadsleft/keymap.c#L93 )
- [KBDfans KBD75 rev1 ](../../keyboards/kbdfans/kbd75/keymaps/noroadsleft/keymap.c#L93 )
- [CoseyFannitutti Discipline ](../../keyboards/coseyfannitutti/discipline/keymaps/noroadsleft/keymap.c#L66 )
- [CoseyFannitutti Discipline ](../../keyboards/coseyfannitutti/discipline/keymaps/noroadsleft/keymap.c#L66 )
- 2: [^ ](#emulated-non-us-backslash ) `ANSI_NUBS_ROW` and `ANSI_NUBS_COL` are in the following locations:
- [KC60 ](../../keyboards/kc60/keymaps/noroadsleft/config.h#L35-L36 )
- [KBDfans KBD75 rev1 ](../../keyboards/kbdfans/kbd75/keymaps/noroadsleft/config.h#L26-L27 )
- [CoseyFannitutti Discipline ](../../keyboards/coseyfannitutti/discipline/keymaps/noroadsleft/config.h#L19-L20 )