Skip to content

Commit

Permalink
command for moving file to _prj dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubujka committed Feb 5, 2012
1 parent eee7040 commit 6ac5563
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands/file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
rnd_file_in_dir dir
end

doc "Перенести файл в каталог проектов home_dir()/_prj"
file_cmd :move_file_to_prj_dir do |file|
safe_mv file, fjoin(home_dir, '_prj')
rnd_file_in_dir dirname(file)
end

file_cmd :move_edit_and_return_to_rnd do |file|
clear
dir = dirname(file)
Expand Down
1 change: 1 addition & 0 deletions rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ bind:
'C-o': move_file_homesubdir
G: git_add_clear_and_autocommit
p: goto_prj_file
P: move_file_to_prj_dir
"C-p": goto_dairy_file
b: run_file_in_browser
l: move_to_later
Expand Down

0 comments on commit 6ac5563

Please sign in to comment.