From b1855df62ae954142ca7bbc5888212bc75081303 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 4 Jul 2009 21:47:15 +0200 Subject: request a confirmation on deletion --- code/draw.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'code/draw.rb') 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) -- cgit 1.4.1-2-gfad0