nix/.doc/Navigation.md

103 lines
2.8 KiB
Markdown
Raw Normal View History

# Navigation.
Navigation principles are shared between Gnome, Tmux and Nvim. The only difference is the *"Leader"* key. Gnome uses *Super* key, Tmux uses *Meta (alt)* key and Nvim uses *Space*. The rest somewhat repeats itself.
## Gnome
Key|Action
---|---
`Super+Esc`|Lauch Terminal emulator.
`Super+q`|Switch to the left workspace.
`Super+e`|Switch to the right workspace.
`Super+Q`|Move window to the left workspace.
`Super+E`|Move window to the right workspace.
`Super+w`|Toggle window maximize.
`Super+s`|Minimize window.
`Super+a`|Snap window to the left.
`Super+d`|Snap window to the right.
`Super+z`|Lock session.
`Super+Z`|Power off.
`Super+x`|Close window.
`Super+c`|Minimize all windows.
`Super+v`|Take a screenshot.
`Super+f`|Toggle window fullscreen.
`Super+\\`|None.
`Super+-`|None.
`Super+=`|None.
`Super+W`|None.
`Super+S`|None.
`Super+A`|None.
`Super+D`|None.
`Super+p`|None.
`Super+n`|None.
`Super+g`|None.
`Super+9`|None.
`Super+0`|None.
## Tmux.
Key|Action
---|---
`Meta+Esc`, `Meta+t`|New window. `Meta+t` is for the Termux Android app as it can't send the `Meta+Esc` combo.
`Meta+q`|Switch to the left window.
`Meta+e`|Switch to the right window.
`Meta+Q`|Move window to the left.
`Meta+E`|Move window to the right.
`Meta+w`|Switch to the above split.
`Meta+s`|Switch to the below split.
`Meta+a`|Switch to the left split.
`Meta+d`|Switch to the right split.
`Meta+z`|Detach from session.
`Meta+Z`|Detach all other clients from session.
`Meta+x`|Close window.
`Meta+x`|Close all other windows.
`Meta+c`|Close split.
`Meta+c`|Close all other splits.
`Meta+v`|Visual selection. `y` to copy.
`Meta+f`|None.
`Meta+\\`|Split vertically.
`Meta+-`|Split horizontally.
`Meta+=`|Equalize splits.
`Meta+W`|Resize split to the up.
`Meta+S`|Resize split to the down.
`Meta+A`|Resize split to the left.
`Meta+D`|Resize split to the right.
`Meta+p`|Scroll up.
`Meta+n`|Scroll down.
`Meta+g`|Switch sessions.
`Meta+9`|Switch to the previous session.
`Meta+0`|Switch to the next session.
## Nvim.
Key|Action
---|---
`Space+Esc`|None.
`Space+q`|Switch to the left buffer.
`Space+e`|Switch to the right buffer.
`Space+Q`|Move buffer to the left.
`Space+E`|Move buffer to the right.
`Space+w`|Switch to the above split.
`Space+s`|Switch to the below split.
`Space+a`|Switch to the left split.
`Space+d`|Switch to the right split.
`Space+z`|Save all and exit.
`Space+x`|Close buffer.
`Space+c`|Close split.
`Space+v`|Visual selection (or just default `v`).
`Space+f`|None.
`Space+\|`|Split vertically.
`Space+-`|Split horizontally.
`Space+=`|Equalize splits.
`Space+W`|Resize split to the up.
`Space+S`|Resize split to the down.
`Space+A`|Resize split to the left.
`Space+D`|Resize split to the right.
`Space+p`|None.
`Space+n`|None.
`Space+g`|None.
`Space+9`|None.
`Space+0`|None.
More info in [Nvim doc.](Nvim.md)