From 89857c607556bb95538096ea64bbbad1ab8d4085 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 6 Jul 2009 18:04:36 +0200 Subject: use Fm.externally instead of starti/closei in keys.rb --- code/keys.rb | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/code/keys.rb b/code/keys.rb index ce23e8a9..1026017b 100644 --- a/code/keys.rb +++ b/code/keys.rb @@ -324,7 +324,8 @@ module Fm if str =~ /^\s?(.*)(L|;||)$/ @buffer = '' @search_string = $1 - press('l') if $2 == ';' or $2 == 'L' + + press 'l' if $2 == ';' or $2 == 'L' else search(str) end @@ -334,31 +335,30 @@ module Fm ## Launching applications {{{ when 's' - closei - system('clear') ls = ['ls'] ls << '--color=auto' #if Option.color ls << '--group-directories-first' #if Option.color - system(*ls) - system('bash') - @pwd.schedule - starti + + externally do + system("clear; #{ls * ' '}; bash") + @pwd.schedule + end when 'tar' - closei - system('tar', 'cvvf', 'pack.tar', *selection.map{|x| x.basename}) - @pwd.refresh! - starti + externally do + system('tar', 'cvvf', 'pack.tar', *selection.map{|x| x.basename}) + @pwd.refresh! + end when /^!(.+)$/ str = $1 if str =~ /^(\!?)(.*)(|)$/ @buffer = '' if $3 == '' - closei - system("bash", "-c", $2) - Action.wait_for_enter unless $1.empty? - starti + externally do + system("bash", "-c", $2) + Action.wait_for_enter unless $1.empty? + end @pwd.schedule end end @@ -390,8 +390,7 @@ module Fm @bars.last.kill unless @bars.empty? when '' - closei - starti + externally when 'R' @pwd.refresh! -- cgit 1.4.1-2-gfad0 s?h=main&id=792451d1be576dfd35c2473cb4ede75ccca63782'>diff stats
blob: 0f7c736db9b280ab782d558003059044c0400694 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32