e6f6389e598f

more
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 10 Jul 2014 11:56:05 -0400
parents 0112fc0dd59d
children 4e2fe1ec0997 70b6d271f34d
branches/tags (none)
files bin/base36-to-uuid bin/myctags gitconfig vim/custom-dictionary.utf-8.add vim/vimrc weechat/weechat.conf

Changes

--- /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))
--- 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
 
--- 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
--- 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
--- 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 <leader>r :silent !ranger %:h<cr>:redraw!<cr>
 nnoremap <leader>R :silent !ranger<cr>:redraw!<cr>
 
+" Jump (see the J mini-plugin later on)
+nnoremap <leader>j :J<space>
+
 " Insert Mode Completion {{{
 
 inoremap <c-f> <c-x><c-f>
@@ -2160,6 +2163,15 @@
 nnoremap <leader>Hb :HgBlame<cr>
 
 " }}}
+" 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(<f-args>)
+
+" }}}
 " Ack motions {{{
 
 " Motions to Ack for things.  Works with pretty much everything, including:
--- 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