Skip to content

Instantly share code, notes, and snippets.

@LintaoAmons
LintaoAmons / .tmux.conf
Created November 6, 2022 14:01
My current tmux config
#-------------------------------------------------------#
#-------------------------------------------------------#
# General settings ⬇️ ⬇️ ⬇️
#-------------------------------------------------------#
#set mouse off/on - if off, forces you to use keyboard with prefix-[
set -g mouse on
# start with window 1 (instead of 0)
set -g base-index 1
@LintaoAmons
LintaoAmons / alacritty.yml
Created October 13, 2022 01:40
Alacritty - Mac command mapping to Meta
# Font configuration (changes require restart)
font:
normal:
family: Hack Nerd Font Mono
style: Regular
bold:
family: Hack Nerd Font Mono
style: Bold
italic:
family: Hack Nerd Font Mono
@LintaoAmons
LintaoAmons / .tmux.conf
Created October 8, 2022 09:50
Popup terminal with tmux
# ... your other config
bind-key -n M-3 run-shell 'toggle-tmux-popup'
# you can switch `M-3` to any keybindings you like.
@LintaoAmons
LintaoAmons / 配置Obsidian-像Vim一样跳转.md
Last active March 5, 2023 14:47
配置Obsidian-像Vim一样跳转.md

文件间跳转

  • <ctrl-enter> Follow link under cursor
  • <ctrl-p> open quick switcher
  • <ctrl-i> Navigate forward
  • <ctrl-o> Navigate back

Pane navigation

  • <cmd-ctrl-enter> Open link under cursor in new pane
  • <cmd-h> Focus on pane to the left
  • `` Focus on pane to the right
@LintaoAmons
LintaoAmons / .ideavimrc
Last active April 5, 2023 16:44
ideavimrc
" ================================================================================================
" = Extensions =====================================
" ================================================================================================
Plug 'tpope/vim-surround'
Plug 'preservim/nerdtree'
" ================================================================================================
" = Basic settings =====================================
" ================================================================================================
set clipboard+=unnamed
@LintaoAmons
LintaoAmons / tmux-cheats.md
Created May 10, 2022 07:14 — forked from Starefossen/tmux-cheats.md
My personal tmux cheat sheet for working with sessions, windows, and panes. `NB` I have remapped the command prefix to `ctrl` + `a`.

Sessions

New Session

  • tmux new [-s name] [cmd] (:new) - new session

Switch Session

  • tmux ls (:ls) - list sessions
  • tmux switch [-t name] (:switch) - switches to an existing session