about summary refs log tree commit diff stats
path: root/code
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-06-15 20:16:00 +0200
committerhut <hut@lavabit.com>2009-06-15 20:16:00 +0200
commit9841ddb2206ec0e2fa3dde3778fe36786f9c8b65 (patch)
tree6aa84c0ef5db43dfb7765b963700b129d0d49013 /code
parentdcef2be7770e7b33c8aa159642b2c4a157746b5b (diff)
downloadranger-9841ddb2206ec0e2fa3dde3778fe36786f9c8b65.tar.gz
added P, key for creating symlinks of the copied paths
Diffstat (limited to 'code')
-rw-r--r--code/fm/keys.rb6
1 files changed, 6 insertions, 0 deletions
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