Removed git-related configuration and script; moved to separate repo.

This commit is contained in:
Pistos 2009-06-21 19:39:02 -04:00
parent d881783ef3
commit be2b22ecdb
2 changed files with 2 additions and 22 deletions

View File

@ -120,7 +120,7 @@ fuzzy_file_find false
# Use "% syntax" as placeholders
# e.g. %d for decimal integers, %s for strings
status.left -- %s %s%s%s%s -- (%s) --%s
status.left -- %s %s%s%s%s -- (%s) --
status.right - %s Buf %d of %d --- L%3d/%3d C%2d --
# The string to use to fill in the space between the left and right sides
# of the status line.
@ -131,8 +131,7 @@ status.unnamed_str (unnamed file)
status.read_only_str (read-only)
# status.vars: any subset of:
# line row num_lines col filename modified type buffer_number num_buffers selecting selection_mode session_name read_only
status.vars filename modified read_only selecting selection_mode type @git_branch session_name buffer_number num_buffers row num_lines col
#status.vars filename modified read_only selecting selection_mode type @git_branch buffer_number num_buffers row num_lines col
status.vars filename modified read_only selecting selection_mode type session_name buffer_number num_buffers row num_lines col
status.format inverse
# ---------------------------------------------------------------------
@ -415,7 +414,6 @@ key esc [ 1 ; 2 evaluate
key ctrl+alt+c shell "ruby -c $f"
#key f10 spawn "firefox --display=:0 http://apidock.com/ruby/$i"
#key f10 spawn "DISPLAY=:0 opera --remote 'openURL(http://www.ruby-doc.org/core-1.9/classes/$i.html,new-page)' 2>&1 > /dev/null"
key f9 shell "cd $d; git diff --ignore-space-change -- $f", 'git.diff'
# To use the following:
# 1) Copy to the clipboard some Ruby code which operates on stdin text and outputs to stdout.

View File

@ -1,18 +0,0 @@
git_proc = Proc.new do |buffer|
if buffer and buffer.name
dir = File.dirname( File.expand_path( buffer.name ) )
else
dir = '.'
end
if File.exist? dir
branch = Dir.chdir( dir ){ `git symbolic-ref HEAD 2>/dev/null`[ /[^\/\n]+$/ ] }
$diakonos.set_status_variable(
'@git_branch',
branch ? " git:#{branch} " : nil
)
end
end
$diakonos.register_proc( git_proc, :after_open )
$diakonos.register_proc( git_proc, :after_buffer_switch )