2 @copyright: (C) 2008, Thomas Leonard
3 @see: U{http://roscidus.com}
13 builtin_commands
[fn
.__name
__.replace('_', ':', 1)] = fn
17 def rox_trash(shell
, args
):
19 shell
.cwd
.file.resolve_relative_path(item
).trash()
22 return "Sent '%s' to trash" % args
[0]
24 return "Sent %d items to trash" % l
28 assert len(args
) == 1, "Multiple selection not allowed for cd"
29 shell
.set_cwd(shell
.cwd
.file.resolve_relative_path(args
[0]))
32 def rox_open(shell
, args
):
34 assert len(args
) == 1, "Multiple selection not yet supported: " + str(args
)
35 shell
.open_item(shell
.cwd
.file.resolve_relative_path(args
[0]))