Compare commits

..

No commits in common. "67477adc1b1ed874de2464b3ebaeb75eee66cfe9" and "9561777fb72d8e3d79a92c4ac840ec0fcde4ac94" have entirely different histories.

8 changed files with 12 additions and 36 deletions

View file

@ -1,3 +1,3 @@
#!/bin/sh
echo 'export LUA_PATH="'"$1/?.lua;$1/?/init.lua;;"'"'
echo "$1/?.lua;$1/?/init.lua"

View file

@ -1,7 +0,0 @@
#!/bin/sh
for sheet in $(in2csv --names "$1")
do
basename=$(echo $1 | sed -e 's/\.[^\.]\+$//')
in2csv --sheet "$sheet" "$1" | csvformat -D \; > "$basename-$sheet.csv"
done

View file

@ -20,8 +20,7 @@
[alias]
adog = log --all --decorate --oneline --graph --date-order
dog = log --decorate --oneline --graph --date-order
fadd = "! git status --porcelain | sed -e '/^??/d' -e 's/^...//' | fzf -m --layout=reverse-list | xargs --open-tty git add"
faddall = "! git status --porcelain | sed 's/^...//' | fzf -m --layout=reverse-list | xargs --open-tty git add"
fadd = "! git status --porcelain | sed 's/^...//' | fzf -m --layout=reverse-list | xargs --open-tty git add"
fixup = "!git commit --patch --no-edit --amend $(git diff --name-only HEAD~1..HEAD)"
h = log -1 --format=%h
hash = log -1 --format=%H

View file

@ -24,19 +24,17 @@ pp() {
}
gfc() {
command="fadd"
unset patch
while test $# != 0
do
case "$1" in
--patch | -p) patch="--patch" ;;
--untracked | -u) command="faddall" ;;
--) shift; break ;;
*) break ;;
esac
shift
done
git $command $patch && git commit $@
git fadd $patch && git commit $@
}
# Funny

View file

@ -11,7 +11,7 @@ return function(_, bufnr)
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, bufopts)
vim.keymap.set('n', 'K', vim.lsp.buf.hover, bufopts)
vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, bufopts)
--vim.keymap.set('v', '<C-k>', vim.lsp.buf.signature_help, bufopts)
vim.keymap.set('n', '<C-k>', vim.lsp.buf.signature_help, bufopts)
vim.keymap.set('n', '<leader>wa', vim.lsp.buf.add_workspace_folder, bufopts)
vim.keymap.set('n', '<leader>wr', vim.lsp.buf.remove_workspace_folder, bufopts)

View file

@ -265,12 +265,17 @@ command! GitFirst call <sid>git_first() | call s:git_info()
command! GitLast call <sid>git_last() | call s:git_info()
command! GitInfo call <sid>git_info()
command! -nargs=1 GitCheckout call <sid>file_at_revision(<f-args>)
command! -nargs=? GitCompare try
\| call s:gitroot() | call <sid>git_diff(<f-args>)
\| catch
\| echo 'Not a git repo!'
\| endtry
command! GitRoot call <SID>cd_git_root('%')
command! GitOrig exec 'e '.b:git_original_file
command! ShowGitRoot try
\| echo <sid>gitroot()
\| catch | echo 'Not a git repository'
\| endtry
command! GitDiff set nolist | diffthis | vert bel split | exec "silent GitPrev" | set nolist | diffthis
command! GitDiff diffthis | vert bel split | exec "silent GitPrev" | diffthis
augroup END

View file

@ -529,8 +529,6 @@ exec 'noremap gk '.g:jmp_dist.'k'
nnoremap <C-k> ddkP
nnoremap <C-j> ddp
vnoremap <C-k> :m '<-2<CR>gv
vnoremap <C-j> :m '>+1<CR>gv
nnoremap <C-h> b
nnoremap <C-l> e

21
zshrc
View file

@ -30,23 +30,6 @@ task_prompt() {
fi
fi
}
due_soon_prompt() {
if [ $run_task_prompt -eq 0 ]
then
if [ "$(task +PENDING due.before:30min count)" -gt 0 ]; then
echo "%F{red}%B$(task +PENDING +DUE count)%b "; return
fi
if [ "$(task +PENDING due.before:1h count)" -gt 0 ]; then
echo "%F{yellow}%B$(task +PENDING +DUE count)%b "; return
fi
if [ "$(task +PENDING due.before:3h count)" -gt 0 ]; then
echo "%F{green}%B$(task +PENDING +DUE count)%b "; return
fi
if [ "$(task +PENDING due.before:tomorrow count)" -gt 0 ]; then
echo "%F{black}%B$(task +PENDING +DUE count)%b "; return
fi
fi
}
which timew > /dev/null
run_timew_prompt=$?
@ -69,9 +52,9 @@ ranger_prompt() {
}
prompt='$(task_prompt)%(?.%F{green}.%F{red})λ%F{blue}$(ranger_prompt)%f '
export PROMPT_full='$(due_soon_prompt)%B%F{magenta}%n%F{blue}@%F{magenta}%m%b %F{magenta}%~
export PROMPT_full='$(timew_prompt)%B%F{magenta}%n%F{blue}@%F{magenta}%m%b %F{magenta}%~
'"$prompt"
export PROMPT_gitlong='$(due_soon_prompt)$(gitprompt && echo -ne " ")%F$(git log --oneline --no-decorate -1 2>/dev/null)
export PROMPT_gitlong='%F{red}$(timew_prompt)$(gitprompt && echo -ne " ")%F$(git log --oneline --no-decorate -1 2>/dev/null)
%F{cyan}$(gitpath)'"$prompt"
# export PS1tiny=
# export PS1nano=