From 9841ddb2206ec0e2fa3dde3778fe36786f9c8b65 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 15 Jun 2009 20:16:00 +0200 Subject: added P, key for creating symlinks of the copied paths --- code/fm/keys.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'code') diff --git a/code/fm/keys.rb b/code/fm/keys.rb index f5854dc9..a2903cad 100644 --- a/code/fm/keys.rb +++ b/code/fm/keys.rb @@ -394,6 +394,12 @@ module Fm @pwd.find_file(@copy[0].basename) end + when 'P' + for f in @copy + File.symlink(f.path, File.expand_path(f.basename)) + end + + when /^[`'](.)$/ if dir = @memory[$1] and not @pwd.path == dir remember_dir -- cgit 1.4.1-2-gfad0