clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

adding fzf setting

sspaeti 15022ad0 456ccc28

+131 -207
+2
.gitignore
··· 1 + 2 + obsidian/workspace
+6 -1
backup_dotfiles.sh
··· 7 7 cp ~/.config/nvim/init.vim $git/general/dotfiles/nvim/init.vim 8 8 cp -r ~/.config/nvim/themes $git/general/dotfiles/nvim/themes 9 9 cp -r ~/.config/nvim/autoload $git/general/dotfiles/nvim/autoload 10 - cp -r ~/.aliases.shrc $git/general/dotfiles/zsh/aliases.shrc 11 10 cp -r ~/.gitconfig $git/general/dotfiles/git/gitconfig 12 11 13 12 cp ~/.tmux.conf $git/general/dotfiles/tmux/tmux.conf 14 13 cp ~/.tmux/ide $git/general/dotfiles/tmux/ide 15 14 cp ~/.tmux/tmux-session $git/general/dotfiles/tmux/tmux-session 16 15 16 + #fzf/zsh 17 + cp ~/.fzf.zsh $git/general/dotfiles/fzf/fzf.zsh 18 + cp -r ~/.fzf/* $git/general/dotfiles/fzf/ 19 + 20 + #cp -r ~/.oh-my-zsh/custom/* $git/general/dotfiles/zsh/custom/ 21 + cp -r ~/.aliases.shrc $git/general/dotfiles/zsh/aliases.shrc 17 22 18 23 #obsidian 19 24 cp ~/Simon/Sync/SecondBrain/.obsidian/workspace $git/general/dotfiles/obsidian/workspace
+1
fzf/fzf.zsh
··· 1 + source ~/.fzf/shell/key-bindings.zsh
+120
fzf/shell/key-bindings.zsh
··· 1 + # ____ ____ 2 + # / __/___ / __/ 3 + # / /_/_ / / /_ 4 + # / __/ / /_/ __/ 5 + # /_/ /___/_/ key-bindings.zsh 6 + # 7 + # - $FZF_TMUX_OPTS 8 + # - $FZF_CTRL_T_COMMAND 9 + # - $FZF_CTRL_T_OPTS 10 + # - $FZF_CTRL_R_OPTS 11 + # - $FZF_ALT_C_COMMAND 12 + # - $FZF_ALT_C_OPTS 13 + 14 + # Key bindings 15 + # ------------ 16 + 17 + # The code at the top and the bottom of this file is the same as in completion.zsh. 18 + # Refer to that file for explanation. 19 + if 'zmodload' 'zsh/parameter' 2>'/dev/null' && (( ${+options} )); then 20 + __fzf_key_bindings_options="options=(${(j: :)${(kv)options[@]}})" 21 + else 22 + () { 23 + __fzf_key_bindings_options="setopt" 24 + 'local' '__fzf_opt' 25 + for __fzf_opt in "${(@)${(@f)$(set -o)}%% *}"; do 26 + if [[ -o "$__fzf_opt" ]]; then 27 + __fzf_key_bindings_options+=" -o $__fzf_opt" 28 + else 29 + __fzf_key_bindings_options+=" +o $__fzf_opt" 30 + fi 31 + done 32 + } 33 + fi 34 + 35 + 'emulate' 'zsh' '-o' 'no_aliases' 36 + 37 + { 38 + 39 + [[ -o interactive ]] || return 0 40 + 41 + # CTRL-T - Paste the selected file path(s) into the command line 42 + __fsel() { 43 + local cmd="${FZF_CTRL_T_COMMAND:-"command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune \ 44 + -o -type f -print \ 45 + -o -type d -print \ 46 + -o -type l -print 2> /dev/null | cut -b3-"}" 47 + setopt localoptions pipefail no_aliases 2> /dev/null 48 + local item 49 + eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse --bind=ctrl-z:ignore $FZF_DEFAULT_OPTS $FZF_CTRL_T_OPTS" $(__fzfcmd) -m "$@" | while read item; do 50 + echo -n "${(q)item} " 51 + done 52 + local ret=$? 53 + echo 54 + return $ret 55 + } 56 + 57 + __fzfcmd() { 58 + [ -n "$TMUX_PANE" ] && { [ "${FZF_TMUX:-0}" != 0 ] || [ -n "$FZF_TMUX_OPTS" ]; } && 59 + echo "fzf-tmux ${FZF_TMUX_OPTS:--d${FZF_TMUX_HEIGHT:-40%}} -- " || echo "fzf" 60 + } 61 + 62 + fzf-file-widget() { 63 + LBUFFER="${LBUFFER}$(__fsel)" 64 + local ret=$? 65 + zle reset-prompt 66 + return $ret 67 + } 68 + zle -N fzf-file-widget 69 + bindkey -M emacs '^T' fzf-file-widget 70 + bindkey -M vicmd '^T' fzf-file-widget 71 + bindkey -M viins '^T' fzf-file-widget 72 + 73 + # ALT-C - cd into the selected directory 74 + fzf-cd-widget() { 75 + local cmd="${FZF_ALT_C_COMMAND:-"command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune \ 76 + -o -type d -print 2> /dev/null | cut -b3-"}" 77 + setopt localoptions pipefail no_aliases 2> /dev/null 78 + local dir="$(eval "$cmd" | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse --bind=ctrl-z:ignore $FZF_DEFAULT_OPTS $FZF_ALT_C_OPTS" $(__fzfcmd) +m)" 79 + if [[ -z "$dir" ]]; then 80 + zle redisplay 81 + return 0 82 + fi 83 + zle push-line # Clear buffer. Auto-restored on next prompt. 84 + BUFFER="cd -- ${(q)dir}" 85 + zle accept-line 86 + local ret=$? 87 + unset dir # ensure this doesn't end up appearing in prompt expansion 88 + zle reset-prompt 89 + return $ret 90 + } 91 + zle -N fzf-cd-widget 92 + bindkey -M emacs '\ec' fzf-cd-widget 93 + bindkey -M vicmd '\ec' fzf-cd-widget 94 + bindkey -M viins '\ec' fzf-cd-widget 95 + 96 + # CTRL-R - Paste the selected command from history into the command line 97 + fzf-history-widget() { 98 + local selected num 99 + setopt localoptions noglobsubst noposixbuiltins pipefail no_aliases 2> /dev/null 100 + selected=( $(fc -rl 1 | perl -ne 'print if !$seen{(/^\s*[0-9]+\**\s+(.*)/, $1)}++' | 101 + FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort,ctrl-z:ignore $FZF_CTRL_R_OPTS --query=${(qqq)LBUFFER} +m" $(__fzfcmd)) ) 102 + local ret=$? 103 + if [ -n "$selected" ]; then 104 + num=$selected[1] 105 + if [ -n "$num" ]; then 106 + zle vi-fetch-history -n $num 107 + fi 108 + fi 109 + zle reset-prompt 110 + return $ret 111 + } 112 + zle -N fzf-history-widget 113 + bindkey -M emacs '^R' fzf-history-widget 114 + bindkey -M vicmd '^R' fzf-history-widget 115 + bindkey -M viins '^R' fzf-history-widget 116 + 117 + } always { 118 + eval $__fzf_key_bindings_options 119 + 'unset' '__fzf_key_bindings_options' 120 + }
+2
nvim/init.vim
··· 36 36 37 37 " search 38 38 Plug 'dyng/ctrlsf.vim' 39 + Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } 40 + Plug 'junegunn/fzf.vim' 39 41 40 42 "File Navigation 41 43 Plug 'francoiscabrol/ranger.vim'
-206
obsidian/workspace
··· 1 - { 2 - "main": { 3 - "id": "a35d0db2c8ba4ea5", 4 - "type": "split", 5 - "children": [ 6 - { 7 - "id": "342d191483e36d49", 8 - "type": "leaf", 9 - "state": { 10 - "type": "markdown", 11 - "state": { 12 - "file": "πŸ’‘ Resources/🌍 Wiki πŸ“‚ Files/πŸ”— Data Engineering/Python Pandas Koalas/Python/3_CHEAT SHEETs/5_Create virtual environment (virtualenv)/Create virtual environment (virtualenv).md", 13 - "mode": "preview", 14 - "source": false 15 - } 16 - } 17 - } 18 - ], 19 - "direction": "vertical" 20 - }, 21 - "left": { 22 - "id": "9ca8768b404c499d", 23 - "type": "split", 24 - "children": [ 25 - { 26 - "id": "2bb45565a393acf5", 27 - "type": "tabs", 28 - "children": [ 29 - { 30 - "id": "5753767794e2fe20", 31 - "type": "leaf", 32 - "state": { 33 - "type": "file-explorer", 34 - "state": {} 35 - } 36 - }, 37 - { 38 - "id": "043896868bb037b1", 39 - "type": "leaf", 40 - "state": { 41 - "type": "search", 42 - "state": { 43 - "query": "LG 34UC88-B", 44 - "matchingCase": false, 45 - "explainSearch": false, 46 - "collapseAll": true, 47 - "extraContext": true, 48 - "sortOrder": "alphabetical" 49 - } 50 - } 51 - }, 52 - { 53 - "id": "afaca6486017ef41", 54 - "type": "leaf", 55 - "state": { 56 - "type": "tag", 57 - "state": { 58 - "sortOrder": "frequency", 59 - "useHierarchy": true 60 - } 61 - } 62 - } 63 - ] 64 - } 65 - ], 66 - "direction": "horizontal", 67 - "width": 240.5, 68 - "collapsed": true 69 - }, 70 - "right": { 71 - "id": "7b34a42266f03cbc", 72 - "type": "split", 73 - "children": [ 74 - { 75 - "id": "ea371bd70ce46513", 76 - "type": "tabs", 77 - "dimension": 41.26074498567335, 78 - "children": [ 79 - { 80 - "id": "15a2709836bbd16c", 81 - "type": "leaf", 82 - "state": { 83 - "type": "outline", 84 - "state": { 85 - "file": "πŸ’‘ Resources/🌍 Wiki πŸ“‚ Files/πŸ”— Data Engineering/Python Pandas Koalas/Python/3_CHEAT SHEETs/5_Create virtual environment (virtualenv)/Create virtual environment (virtualenv).md" 86 - } 87 - } 88 - }, 89 - { 90 - "id": "96c102a3d9cbb92b", 91 - "type": "leaf", 92 - "state": { 93 - "type": "advanced-tables-toolbar", 94 - "state": {} 95 - } 96 - }, 97 - { 98 - "id": "9f49691c0d3e55d3", 99 - "type": "leaf", 100 - "state": { 101 - "type": "online.larslockefeer.obsidian-plugin-todo", 102 - "state": {} 103 - } 104 - } 105 - ] 106 - }, 107 - { 108 - "id": "682b71d3e4b0b542", 109 - "type": "tabs", 110 - "dimension": 29.441260744985676, 111 - "children": [ 112 - { 113 - "id": "f12a4c27da0cfe28", 114 - "type": "leaf", 115 - "state": { 116 - "type": "localgraph", 117 - "state": { 118 - "file": "πŸ’‘ Resources/🌍 Wiki πŸ“‚ Files/πŸ”— Data Engineering/Python Pandas Koalas/Python/3_CHEAT SHEETs/5_Create virtual environment (virtualenv)/Create virtual environment (virtualenv).md", 119 - "options": { 120 - "collapse-filter": true, 121 - "search": "", 122 - "localJumps": 1, 123 - "localBacklinks": true, 124 - "localForelinks": true, 125 - "localInterlinks": true, 126 - "showTags": false, 127 - "showAttachments": false, 128 - "hideUnresolved": false, 129 - "collapse-color-groups": true, 130 - "colorGroups": [ 131 - { 132 - "query": "tag:#πŸ—ƒ", 133 - "color": { 134 - "a": 1, 135 - "rgb": 2454549 136 - } 137 - }, 138 - { 139 - "query": "πŸ”—", 140 - "color": { 141 - "a": 1, 142 - "rgb": 12526114 143 - } 144 - } 145 - ], 146 - "collapse-display": true, 147 - "showArrow": false, 148 - "textFadeMultiplier": -0.4, 149 - "nodeSizeMultiplier": 0.925827991452992, 150 - "lineSizeMultiplier": 1, 151 - "collapse-forces": true, 152 - "centerStrength": 0.692174145299145, 153 - "repelStrength": 10.6383547008547, 154 - "linkStrength": 0.786324786324786, 155 - "linkDistance": 256, 156 - "scale": 0.7590679155213744, 157 - "close": true 158 - } 159 - } 160 - } 161 - } 162 - ] 163 - }, 164 - { 165 - "id": "f02bd5e72b99ee5d", 166 - "type": "tabs", 167 - "dimension": 29.297994269340975, 168 - "children": [ 169 - { 170 - "id": "f6ec3c3761eee3d3", 171 - "type": "leaf", 172 - "state": { 173 - "type": "backlink", 174 - "state": { 175 - "file": "πŸ’‘ Resources/🌍 Wiki πŸ“‚ Files/πŸ”— Data Engineering/Python Pandas Koalas/Python/3_CHEAT SHEETs/5_Create virtual environment (virtualenv)/Create virtual environment (virtualenv).md", 176 - "collapseAll": true, 177 - "extraContext": false, 178 - "sortOrder": "alphabetical", 179 - "showSearch": false, 180 - "searchQuery": "", 181 - "backlinkCollapsed": false, 182 - "unlinkedCollapsed": false 183 - } 184 - } 185 - } 186 - ] 187 - } 188 - ], 189 - "direction": "horizontal", 190 - "width": 264.5, 191 - "collapsed": true 192 - }, 193 - "active": "342d191483e36d49", 194 - "lastOpenFiles": [ 195 - "πŸ’‘ Resources/🌍 Wiki πŸ“‚ Files/πŸ”— Data Engineering/Python Pandas Koalas/Python/3_CHEAT SHEETs/5_Create virtual environment (virtualenv)/Create virtual environment (virtualenv).md", 196 - "βš›οΈ Areas/πŸ“¬ Inbox/ctrlsf - vim search in file.md", 197 - "βš›οΈ Areas/πŸ“¬ Inbox/SteuererkΓ€rung 2022 - Simon StΓΆckli.md", 198 - "πŸ’‘ Resources/🌍 Wiki πŸ“‚ Files/🐧 Linux/Vim & Tmux/Vim and Tmux Shortcuts.md", 199 - "🌿 Projects/21-08-01 - Personal Finance DWH/21-08-01 - Personal Finance DWH.md", 200 - "βš›οΈ Areas/πŸ’» Computer Stuff/Macbook/3_Monitor/Monitor.md", 201 - "βš›οΈ Areas/πŸ““ Journal/Thoughts On/Side Projects.md", 202 - "βš›οΈ Areas/πŸ’³ Finance/Ausgaben/Subscriptions.md", 203 - "βš›οΈ Areas/πŸ™ Airbyte/Admin/Work Set-Up/Home Office Set-up.md", 204 - "πŸ’‘ Resources/πŸ—ƒ Zettelkasten/πŸ”© Tools/Pandera.md" 205 - ] 206 - }