![]() """ Complete with current folder name """Įxtension = """ Compress marked files to current directory """ĭescr = "compressing files in: " + os.path.basename(parts) You need to have atool installed, otherwise you will see an error message when you create the archive. ![]() It supports name suggestions by getting the basename of the current directory and appending several possibilities for the extension. The following command allows users to compress several files on the current directory by marking them and then calling :compress package name. Marked_files = tuple(cwd.get_selection())Ĭwd = self.fm.get_directory(original_path)ĭescr = "extracting: " + os.path.basename(one_file.path)ĭescr = "extracting files from: " + os.path.basename( """ extract selected files to current directory.""" The following command implements archive extraction of the selected items to the current directory.įrom import CommandLoader These commands use atool to perform archive operations. Reason: bad style (Discuss in Talk:Ranger) Archives Label editor = "$EDITOR" - pager = "$PAGER" - and tricks Makes kile the default program for tex files:Įxt tex = kile open all files with xdg-utils, make sure your $EDITOR and $PAGER are set and add: Run ranger -copy-config=rifle if it does not exist. Ranger uses its own file opener called rifle. The complete list of supported themes can be obtained via pygmentize -L style. Install the python-pygments package, then copy /usr/share/doc/ranger/config/scope.sh to ~/.config/ranger/scope.sh and edit the variable PYGMENTIZE_STYLE in the configuration file of ranger to your liking. Ranger comes with four color schemes: default, jungle, snow and solarized.Ĭustom color schemes can be placed in ~/.config/ranger/colorschemes. To use it, type :empty and Enter with tab completion as desired. Self.fm.run("rm -rf /home/myname/.Trash/") ![]() Inspecting and emptying the "trash" is normally supported by graphical file managers such as nautilus, but you can also see the trash with the command gio list trash://, and empty it with: gio trash -empty.Ĭontinuing the above example, add the following entry to empty the trash directory ~/.Trash. Map DD shell mv %s /home/$/.local/share/Trash/files/Īlternatively, use GIO commandline tool provided by glib2 package: To add a keybind that moves files to your trash directory ~/.local/share/Trash/files/ with DD, amend the configuration file as follows: For commands.py, if you do not include the whole file, put this line at the top: Rc.conf only needs to include changes from the default file as both are loaded.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |