From a043e0a81460a94e0732672afc3831689984caf8 Mon Sep 17 00:00:00 2001 From: xmusjackson Date: Sun, 14 May 2023 20:57:35 -0500 Subject: Add "Extract to subdirectory" option This commit adds an "Extract to subdirectory" option to the extract dialog which allows the user to extract the contents of the archive to a directory with the name of the archive (without the extension.) The user will be prompted if the directory must be created. file-utils.c: Improve remove_extension_from_path Rework this function so that it correctly parses and truncates files with multiple extensions like .tar.gz file-utils.c: Improve get_file_extension Improve this function to correctly identify and return supported compressed tar file extensions --- data/org.mate.engrampa.gschema.xml.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data') diff --git a/data/org.mate.engrampa.gschema.xml.in b/data/org.mate.engrampa.gschema.xml.in index fed9a1e..5b62190 100644 --- a/data/org.mate.engrampa.gschema.xml.in +++ b/data/org.mate.engrampa.gschema.xml.in @@ -154,6 +154,10 @@ false Close dialog after decompression + + false + Create a folder with the archive name and extract there + -- cgit v1.2.1