diff options
author | hut <hut@lavabit.com> | 2009-07-04 21:47:15 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-07-04 21:47:15 +0200 |
commit | b1855df62ae954142ca7bbc5888212bc75081303 (patch) | |
tree | e77c1d24f0a58476def55d3442363267e19be054 /code/draw.rb | |
parent | f0c18d64739e496cf943ea794fa937cff0a7916d (diff) | |
download | ranger-b1855df62ae954142ca7bbc5888212bc75081303.tar.gz |
request a confirmation on deletion
Diffstat (limited to 'code/draw.rb')
-rw-r--r-- | code/draw.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/code/draw.rb b/code/draw.rb index b493c846..1b40d47d 100644 --- a/code/draw.rb +++ b/code/draw.rb @@ -281,13 +281,14 @@ module Fm btm = lines - 1 case @buffer - when 'seriouslydd', 'dd' - puti btm, "Are you serious? Please press y to confirm." + when /^delete/, /^dd/ + puti btm, "#@buffer ".rjust(cols) + puti btm, 'Are you serious? (' + Option.confirm_string + ')' 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 (f)ilepreview (p)review (w)idebar" + puti btm, "Toggle (h)idden_files (d)irs_first (f)ilepreview (p)review (w)idebar (c)d (!)confirm" else attr_set(Color.base) attr_set(Color.info) |