1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
#!/usr/bin/env python
# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
# Catfish - a versatile file searching tool
# Copyright (C) 2007-2012 Christian Dywan <christian@twotoasts.de>
# Copyright (C) 2012-2022 Sean Davis <bluesabre@xfce.org>
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2, as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program. If not, see <https://www.gnu.org/licenses/>.
# pylint: disable=C0413
def text_list():
txt_list = ('ardour', 'audacity', 'desktop', 'document',
'fontforge', 'gtk-builder', 'javascript', 'json',
'm4', 'mbox', 'message', 'mimearchive', 'msg',
'none', 'perl', 'pgp-keys', 'php', 'postscript',
'rtf', 'ruby', 'shellscript', 'spreadsheet', 'sql',
'subrip', 'text', 'troff', 'url', 'winhlp',
'x-bittorent', 'x-cue', 'x-extension-cfg',
'x-designer', 'x-glade', 'x-mpegurl', 'x-sami',
'x-theme', 'x-trash', 'xbel', 'xml', 'xpixmap', 'yaml')
return txt_list
def document_list():
doc_list = ('pdf', 'ebook', 'epub', 'msword')
return doc_list
def app_list():
app_list = ('android.package', 'appimage', 'debian.binary',
'apple-diskimage', 'flatpak', 'java-archive',
'rpm', 'vnd.snap', 'x-msdos', 'x-msi', 'x-desktop')
return app_list
def arch_list():
arch_list = ('7z', 'archive', 'arj', 'bzip', 'comicbook',
'compressed', 'cpio', 'epub', 'gzip',
'java-pack200', 'lha', 'lhz', 'lzma', 'lzop',
'vnd.oasis.opendocument', 'vnd.rar', 'stuffit',
'tar', 'x-ace', 'x-pak', 'x-shar', 'xz', 'zip',
'zstd', 'java-archive', 'debian.binary',
'flatpak', 'vnd.snap', 'appimage', 'x-ms-dos',
'x-msi', 'apple-diskimage', 'android.package',
'rpm', 'java-archive')
return arch_list
def arch_ext_list():
arch_ext_list = ('.ar', '.ear', '.pea', '.war')
return arch_ext_list
def filter_list():
filter_list = ('image', 'audio', 'video', 'text')
return filter_list
|