diff options
| author | Johannes Ranke <johannes.ranke@jrwb.de> | 2026-01-02 10:35:42 +0100 |
|---|---|---|
| committer | Johannes Ranke <johannes.ranke@jrwb.de> | 2026-01-02 10:35:42 +0100 |
| commit | a68e5f7914291a983b5ba91f4268993ea467790b (patch) | |
| tree | 5dd9ba10cc8e4a6c42ea77a603811c21d65bb4d4 | |
| parent | c9e7a12b9bd64faa1c1a609ccef17241bc2a8276 (diff) | |
| parent | dd4940ac218890ddd0537af9250470f50eb77099 (diff) | |
Merge branch 'main' into slim
| -rw-r--r-- | bashrc | 19 | ||||
| -rw-r--r-- | gitignore | 1 | ||||
| -rw-r--r-- | vimrc | 2 |
3 files changed, 22 insertions, 0 deletions
@@ -89,3 +89,22 @@ export PATH export RETICULATE_PYTHON=/usr/bin/python3 export RETICULATE_AUTOCONFIGURE=FALSE # }}} +# ripgrep->fzf->vim [QUERY] from https://junegunn.github.io/fzf/tips/ripgrep-integration/ +rfv() ( + RELOAD='reload:rg --column --color=always --smart-case {q} || :' + OPENER='if [[ $FZF_SELECT_COUNT -eq 0 ]]; then + vim {1} +{2} # No selection. Open the current line in Vim. + else + vim +cw -q {+f} # Build quickfix list for the selected items. + fi' + fzf --disabled --ansi --multi \ + --bind "start:$RELOAD" --bind "change:$RELOAD" \ + --bind "enter:become:$OPENER" \ + --bind "ctrl-o:execute:$OPENER" \ + --bind 'alt-a:select-all,alt-d:deselect-all,ctrl-/:toggle-preview' \ + --delimiter : \ + --preview 'bat --style=full --color=always --highlight-line {2} {1}' \ + --preview-window '~4,+{2}+4/3,<80(up)' \ + --query "$*" +) + @@ -12,3 +12,4 @@ ~$*.xlk* ~$*.ppt* +.wine/dosdevices/** @@ -70,6 +70,8 @@ let cmdline_map_start = '<LocalLeader>s' " R plugin {{{1 Plug 'jalvesaq/Nvim-R' vmap r <Esc>:call SendSelectionToR("echo", "down")<CR> +imap ,, <SPACE>\|><CR> +vmap ,, a \|><CR> let R_assign = 0 let R_pdfviewer = 'okular' let R_openpdf = 1 |
