# HG changeset patch # User Steve Losh # Date 1405007765 14400 # Node ID e6f6389e598f33a32e75069d7b3cfafb597a4d82 # Parent 0112fc0dd59d0e93512ea047fc3639634c70591d more diff -r 0112fc0dd59d -r e6f6389e598f bin/base36-to-uuid --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/base36-to-uuid Thu Jul 10 11:56:05 2014 -0400 @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +import sys, uuid + +s = '' +if len(sys.argv) != 2 or sys.argv[1] == '-': + s = sys.stdin.read().strip() +else: + s = sys.argv[1] + +print uuid.UUID(hex(int(s, 36))[2:-1].zfill(32)) diff -r 0112fc0dd59d -r e6f6389e598f bin/myctags --- a/bin/myctags Tue Jun 24 09:47:11 2014 -0400 +++ b/bin/myctags Thu Jul 10 11:56:05 2014 -0400 @@ -5,6 +5,7 @@ /usr/local/bin/ctags -R . && sed -i .bak -E -e '/^[^ ]+ [^ ]+.py .+v$/d' tags mv tags tags1 +touch tags2 ffind '.js' --literal | xargs jsctags -f tags2 || echo > tags2 diff -r 0112fc0dd59d -r e6f6389e598f gitconfig --- a/gitconfig Tue Jun 24 09:47:11 2014 -0400 +++ b/gitconfig Thu Jul 10 11:56:05 2014 -0400 @@ -105,7 +105,7 @@ ; ksshow will open a single specific commit in kaleidoscope ; it includes the commit log info as a separate file - ksshow = "!sh -c 'export KSID=`uuid`; git log -n1 $1 > .git/LOG_MESSAGE; ksdiff --partial-changeset --UUID $KSID -- /dev/null .git/LOG_MESSAGE; git ksdiffid $1^..$1; ksdiff --mark-changeset-as-closed $KSID' -" + ksshow = "!sh -c 'export KSID=`uuidgen`; git log -n1 $1 > .git/LOG_MESSAGE; ksdiff --partial-changeset --UUID $KSID -- /dev/null .git/LOG_MESSAGE; git ksdiffid $1^..$1; ksdiff --mark-changeset-as-closed $KSID' -" ; ksreview takes a branch, finds all commits in that branch that aren't ; merged into master, and opens them one-by-one with ksshow. It's good for diff -r 0112fc0dd59d -r e6f6389e598f vim/custom-dictionary.utf-8.add --- a/vim/custom-dictionary.utf-8.add Tue Jun 24 09:47:11 2014 -0400 +++ b/vim/custom-dictionary.utf-8.add Thu Jul 10 11:56:05 2014 -0400 @@ -162,3 +162,4 @@ meatspace scrollback precompute +fuckery diff -r 0112fc0dd59d -r e6f6389e598f vim/vimrc --- a/vim/vimrc Tue Jun 24 09:47:11 2014 -0400 +++ b/vim/vimrc Thu Jul 10 11:56:05 2014 -0400 @@ -471,6 +471,9 @@ nnoremap r :silent !ranger %:h:redraw! nnoremap R :silent !ranger:redraw! +" Jump (see the J mini-plugin later on) +nnoremap j :J + " Insert Mode Completion {{{ inoremap @@ -2160,6 +2163,15 @@ nnoremap Hb :HgBlame " }}} +" J {{{ + +function! s:JumpTo(dest) + call system("tmux split-window -h 'j " . a:dest . "; and myctags &; and vim .'") +endfunction + +command! -nargs=1 J call s:JumpTo() + +" }}} " Ack motions {{{ " Motions to Ack for things. Works with pretty much everything, including: diff -r 0112fc0dd59d -r e6f6389e598f weechat/weechat.conf --- a/weechat/weechat.conf Tue Jun 24 09:47:11 2014 -0400 +++ b/weechat/weechat.conf Thu Jul 10 11:56:05 2014 -0400 @@ -116,7 +116,7 @@ chat_inactive_buffer = darkgray chat_inactive_window = darkgray chat_nick = lightcyan -chat_nick_colors = "027,048,068,070,081,082,099,112,129,136,169,178,208,226" +chat_nick_colors = "027,048,068,028,081,082,099,112,129,136,169,178,208,226,113,196,161,23,59,222" chat_nick_offline = darkgray chat_nick_offline_highlight = default chat_nick_offline_highlight_bg = darkgray