dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 8dffff0a1c07e247f95a768a9e164509ac98112b
parent a52f0390d2e8042eaeb2e37e9770483044b005b9
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon,  6 May 2019 20:21:07 +0200

Add C-y for yanking path to file, update nnn, add NNN_NOTE, add beamer snip

Diffstat:
M.config/zathura/zathurarc | 1+
M.profile | 1+
M.vim/UltiSnips/tex.snippets | 13+++++++++++++
Mbin/showclip | 4++--
4 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc @@ -10,3 +10,4 @@ set completion-highlight-fg "#aaaaaa" map <C-o> feedkeys ":exec getdoi --clip '$FILE'<Return>" map <C-b> feedkeys ":exec scholarref --add '$FILE'<Return>" +map <C-y> feedkeys ":exec sh -c 'echo "$FILE" | xclip'<Return>" diff --git a/.profile b/.profile @@ -22,6 +22,7 @@ export NNN_BMS # bookmarks (max 10) export NNN_USE_EDITOR=1 # always open text files in $EDITOR export NNN_OPENER="$HOME/.config/nnn/xdg-open" export NNN_OPENER_DETACH=1 # do not block nnn with file opener +export NNN_NOTE="$HOME/doc/todo.md" # shellcheck source=/dev/null [ -f ~/.secret_env_vars ] && . ~/.secret_env_vars diff --git a/.vim/UltiSnips/tex.snippets b/.vim/UltiSnips/tex.snippets @@ -11,6 +11,19 @@ snippet Eq "Insert reference to equation" (Eq.~\ref{eq:$0}) endsnippet +snippet columnslide "Insert Beamer slide with two columns" +\begin{frame}{$1} + \begin{columns} + \begin{column}{${2:0.50}\textwidth} + $4 + \end{column} + \begin{column}{${3:0.50}\textwidth} + $5 + \end{column} + \end{columns} +\end{frame} +endsnippet + snippet fig "Insert figure environment" \begin{figure}[${5:htbp}] \includegraphics[width=$1\textwidth]{$2} diff --git a/bin/showclip b/bin/showclip @@ -9,5 +9,5 @@ clip=$(xclip -o -selection clipboard) prim=$(xclip -o -selection primary) -[ "$clip" != "" ] && notify-send "Clipboard (C-v)" "$clip" -[ "$prim" != "" ] && notify-send "Primary (middle click)" "$prim" +[ "$clip" != "" ] && notify-send "Clipboard (C-v, st)" "$clip" +[ "$prim" != "" ] && notify-send "Primary (middle click, Vim, Tmux)" "$prim"