def execute(self): cwd = self.fm.thisdir marked = list(cwd.marked_items) cf = self.fm.thisfile if len(marked)> 0: command = tmux_command(["beetCue"] + [ shell_escape(f.path) for f in marked ]) elif not cf.is_directory: command = tmux_command(("beetCue", shell_escape(self.fm.thisfile.path))) for item in marked: cwd.toggle_mark(item) self.fm.execute_command(command)
def execute(self): selected_files = self.fm.thisdir.get_selection() if not selected_files: return space = ' ' self.fm.execute_command("cdemu unload 0") self.fm.execute_command("cdemu load 0 " + \ space.join([shell_escape(f.path) for f in selected_files])) self.fm.tab_open("/run/media/simon/")
def _extract(self, files, destination=None): args = ['aunpack', '-e'] if destination is None: args.extend((shell_escape(f.path) for f in files)) command = tmux_command(args) else: au_flags += ['-X', destination] obj = CommandLoader(args=['aunpack'] + au_flags \ + [f.path for f in files], descr=descr) obj.signal_bind('after', refresh) self.fm.loader.add(obj) self.fm.execute_command(command)
def execute(self): selected_files = self.fm.thisdir.get_selection() if not selected_files: return space = ' ' self.fm.execute_command("cdemu -b system unload 0") self.fm.execute_command("cdemu -b system load 0 " + \ space.join([shell_escape(f.path) for f in selected_files])) mountpath = "/run/media/core/virtualrom/" def mount_finished(path): currenttab = self.fm.current_tab self.fm.tab_open(9, mountpath) self.fm.tab_open(currenttab) obj = MountLoader(mountpath) obj.signal_bind('after', mount_finished) self.fm.loader.add(obj)
def execute(self): selected_files = self.fm.env.cwd.get_selection() if not selected_files: return space = ' ' self.fm.execute_command("cdemu -b system unload 0") self.fm.execute_command("cdemu -b system load 0 " + \ space.join([shell_escape(f.path) for f in selected_files])) mountpath = "/media/virtualrom/" def mount_finished(path): currenttab = self.fm.current_tab self.fm.tab_open(9, mountpath) self.fm.tab_open(currenttab) obj = MountLoader(mountpath) obj.signal_bind('after', mount_finished) self.fm.loader.add(obj)
def execute(self): if self.fm.thisfile.is_directory: p = shell_escape(self.fm.thisfile.path) args = ('beet', 'import', p) command = tmux_command(args) self.fm.execute_command(command)