From 48ab2a825a44df7f6c6066db9ba08f3fadc6e383 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 29 Jun 2009 02:12:51 +0200 Subject: new option 'wide_bar' toggles wide bar in selected column --- code/draw.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'code/draw.rb') diff --git a/code/draw.rb b/code/draw.rb index cd12770f..cb8ae88a 100644 --- a/code/draw.rb +++ b/code/draw.rb @@ -122,7 +122,11 @@ module Fm puti l, left, fn[0, wid-1].ljust(wid+1) end - attr_at(l, left, fn.size.limit(wid-1), mycolor.send(clrname)) + if infos and OPTIONS['wide_bar'] + attr_at(l, left-1, wid+1, mycolor.send(clrname)) + else + attr_at(l, left, fn.size.limit(wid-1), mycolor.send(clrname)) + end end column_clear(c, l-1) @@ -282,7 +286,7 @@ module Fm when 'S' puti btm, "Sort by (n)ame (s)ize (m)time (c)time (CAPITAL:reversed)" when 't' - puti btm, "Toggle (h)idden_files (d)irs_first (c)olor (f)ilepreview (p)review" + puti btm, "Toggle (h)idden_files (d)irs_first (c)olor (f)ilepreview (p)review (w)idebar" else attr_set(Color.base) attr_set(Color.info) -- cgit 1.4.1-2-gfad0 ore resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log tree commit diff stats
path: root/sandbox/mu_run
blob: b96cfd1c62bb354ff4ea2b89597db9687e6049a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/zsh
# Little bit of glue to support running Mu from Vim over tmux.

export ALREADY_FOCUSED=0
tmux list-panes |grep "^1.*active" -q && export ALREADY_FOCUSED=1
if [[ $ALREADY_FOCUSED -eq 0 ]]
then
  tmux select-pane -t 1
fi

tmux send-keys 'F4'

if [[ $ALREADY_FOCUSED -eq 0 ]]
then
  tmux last-pane
fi