(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| // ==UserScript== | |
| // @name AutoReviewComments | |
| // @namespace benjol | |
| // @version 1.3.1 | |
| // @description Add pro-forma comments dialog for reviewing (pre-flag) | |
| // @grant none | |
| // @include http*://*stackoverflow.com/questions* | |
| // @include http*://*stackoverflow.com/review* | |
| // @include http*://*stackoverflow.com/admin/dashboard* | |
| // @include http*://*stackoverflow.com/tools* |
| @@ -28,7 +28,7 @@ | |
| ### Set diff-cmd to the absolute path of your 'diff' program. | |
| ### This will override the compile-time default, which is to use | |
| ### Subversion's internal diff implementation. | |
| -# diff-cmd = diff_program (diff, gdiff, etc.) | |
| +diff-cmd = colordiff | |
| ### Set diff3-cmd to the absolute path of your 'diff3' program. | |
| ### This will override the compile-time default, which is to use | |
| ### Subversion's internal diff3 implementation. |
| #!/bin/bash | |
| # Usage: cdup [DIRNAME] | |
| # Bash shortcut function to cd you to ancestor directory named as first argument. | |
| # If DIRNAME is not supplied, then .. is used. | |
| # Stop having to cd ../../../.. | |
| # Use `cd -` to undo, to restore old working directory. | |
| # Use aliases for common directories, like: alias docroot="cdup docroot". | |
| # Add function to your ~/.profile | |
| # | |
| # Example: |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| --[[ | |
| = ABOUT | |
| This module uses Roberto Ierusalimschy's powerful new pattern matching library | |
| LPeg[1] to tokenize Lua source-code in to a table of tokens. I think it handles | |
| all of Lua's syntax, but if you find anything missing I would appreciate a mail | |
| at [email protected]. This lexer is based on the BNF[2] from the Lua manual. | |
| = USAGE | |
| I've saved my copy of this module under [$LUA_PATH/lexers/lua.lua] which means |
| " http://recursivedream.com/blog/2012/auto-completing-google-contacts-in-vim/ | |
| " Escape query and handle goobook errors | |
| function! mailcomplete#Complete(findstart, base) | |
| if a:findstart == 1 | |
| let line = getline('.') | |
| let idx = col('.') | |
| while idx > 0 | |
| let idx -= 1 | |
| let c = line[idx] | |
| " break on header and previous email |
| -- | |
| -- LPeg-based XML parser. | |
| -- | |
| -- * Grammar term names are the same as in the XML 1.1 | |
| -- specification: http://www.w3.org/TR/xml11/ | |
| -- * Action functions are missing. | |
| -- | |
| -- Copyright (C) 2012 Adrian Perez <[email protected]> | |
| -- Distribute under terms of the MIT license. | |
| -- |
| (function(){ | |
| var separateThousands = function(n) { | |
| var s = String(n); | |
| s = s.replace(/[1-9][0-9]*/, function(match) { | |
| var r = ""; | |
| for (var i = 0; i < match.length; i++) { | |
| r = match[match.length - 1 - i] + r; | |
| if (i % 3 == 2 && i < match.length - 1) { | |
| r = "," + r; | |
| } |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn.
Author: Kaspars Dambis
kaspars.net / @konstruktors