From d6c898431e819000e1ba0df84bb14d53f71a2256 Mon Sep 17 00:00:00 2001 From: Ioannis Angelakopoulos Date: Sun, 6 Jan 2019 18:49:33 +0200 Subject: [PATCH] removes ranger plugins v3 --- .config/ranger/plugins.bak/__init__.py | 0 .../__pycache__/__init__.cpython-37.opt-1.pyc | Bin 135 -> 0 bytes .../__pycache__/devicons.cpython-37.opt-1.pyc | Bin 3442 -> 0 bytes .../devicons_linemode.cpython-37.opt-1.pyc | Bin 1013 -> 0 bytes .config/ranger/plugins.bak/devicons.py | 232 ------------------ .../ranger/plugins.bak/devicons_linemode.py | 19 -- 6 files changed, 251 deletions(-) delete mode 100644 .config/ranger/plugins.bak/__init__.py delete mode 100644 .config/ranger/plugins.bak/__pycache__/__init__.cpython-37.opt-1.pyc delete mode 100644 .config/ranger/plugins.bak/__pycache__/devicons.cpython-37.opt-1.pyc delete mode 100644 .config/ranger/plugins.bak/__pycache__/devicons_linemode.cpython-37.opt-1.pyc delete mode 100755 .config/ranger/plugins.bak/devicons.py delete mode 100755 .config/ranger/plugins.bak/devicons_linemode.py diff --git a/.config/ranger/plugins.bak/__init__.py b/.config/ranger/plugins.bak/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/.config/ranger/plugins.bak/__pycache__/__init__.cpython-37.opt-1.pyc b/.config/ranger/plugins.bak/__pycache__/__init__.cpython-37.opt-1.pyc deleted file mode 100644 index 56b67e14b9c64c3d65b041ba01f41198e9d84a42..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 135 zcmZ?b<>g`kg58{kF(CReh=2h`Aj1KOi&=m~3PUi1CZpdt{l%{9q73;^xXXa&=#K-FuRNmsS$<0qG%}KQbnN$qK F3;;1G9ufcm diff --git a/.config/ranger/plugins.bak/__pycache__/devicons.cpython-37.opt-1.pyc b/.config/ranger/plugins.bak/__pycache__/devicons.cpython-37.opt-1.pyc deleted file mode 100644 index 6a8a25fc19588b370176b224f8a2141c897093a3..0000000000000000000000000000000000000000 GIT bin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zO4|2At)8`49d~VB z@g(s>PX`J7fZNF+Mvwz`xbBnhe4w6(?|pXc1S=dG8HM_Avz9&1W7d}3)m0eGr-~D7 z6&Ku1IIVEf-I+D*;`$-Oz8}VEBHbKMuuh9jP}%p{5#D#)WIk{bw>R%PiX(og{KQ}9 z^NV)UPqIfJV6l`s;CW_0s`9#J1OV^SYLsb8SVt$M3z)c>DGtML)LH9jP}pMMZnH}+^-)`$H3&y{VN{{`N8;oSfL diff --git a/.config/ranger/plugins.bak/__pycache__/devicons_linemode.cpython-37.opt-1.pyc b/.config/ranger/plugins.bak/__pycache__/devicons_linemode.cpython-37.opt-1.pyc deleted file mode 100644 index a253d54ca0f09eebae4fdfd69ef085dcd4837b9c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1013 zcmb7D&x_MQ6rRaU+G%YxD+NVFyv9RxC(EG3N_oZEzP@oyra5+cN<(N`k5r+H$)|)g!;k9 za-ru-rOyhdVNYL-@u(dEIHxe(Q!u)wkOzw9Oa(btOz|6%hbn}S9Us5bn-AmV!nGm2 zP$~6;<(_*Z~B*eU)7-=Q=Bw#bT;WmI8rEIn69?ZMHJ&X}NG&OHGAR5Y{?Fiec*1P$K)w^&0s#cw!N4aKsE zBt75XRXib Yo)@ooJ@5v8Y2pwUbU;NAQz2sd2W{Ht+yDRo diff --git a/.config/ranger/plugins.bak/devicons.py b/.config/ranger/plugins.bak/devicons.py deleted file mode 100755 index dd370086..00000000 --- a/.config/ranger/plugins.bak/devicons.py +++ /dev/null @@ -1,232 +0,0 @@ -#!/usr/bin/python -# coding=UTF-8 -# These glyphs, and the mapping of file extensions to glyphs -# has been copied from the vimscript code that is present in -# https://github.com/ryanoasis/vim-devicons -import re; -import os; - -# all those glyphs will show as weird squares if you don't have the correct patched font -# My advice is to use NerdFonts which can be found here: -# https://github.com/ryanoasis/nerd-fonts -file_node_extensions = { - '7z' : '', - 'ai' : '', - 'apk' : '', - 'avi' : '', - 'bat' : '', - 'bmp' : '', - 'bz2' : '', - 'c' : '', - 'c++' : '', - 'cab' : '', - 'cbr' : '', - 'cbz' : '', - 'cc' : '', - 'clj' : '', - 'cljc' : '', - 'cljs' : '', - 'coffee' : '', - 'conf' : '', - 'cp' : '', - 'cpio' : '', - 'cpp' : '', - 'css' : '', - 'cxx' : '', - 'd' : '', - 'dart' : '', - 'db' : '', - 'deb' : '', - 'diff' : '', - 'dump' : '', - 'edn' : '', - 'ejs' : '', - 'epub' : '', - 'erl' : '', - 'exe' : '', - 'f#' : '', - 'fish' : '', - 'flac' : '', - 'flv' : '', - 'fs' : '', - 'fsi' : '', - 'fsscript' : '', - 'fsx' : '', - 'gem' : '', - 'gif' : '', - 'go' : '', - 'gz' : '', - 'gzip' : '', - 'hbs' : '', - 'hrl' : '', - 'hs' : '', - 'htm' : '', - 'html' : '', - 'ico' : '', - 'ini' : '', - 'java' : '', - 'jl' : '', - 'jpeg' : '', - 'jpg' : '', - 'js' : '', - 'json' : '', - 'jsx' : '', - 'less' : '', - 'lha' : '', - 'lhs' : '', - 'log' : '', - 'lua' : '', - 'lzh' : '', - 'lzma' : '', - 'markdown' : '', - 'md' : '', - 'mkv' : '', - 'ml' : 'λ', - 'mli' : 'λ', - 'mov' : '', - 'mp3' : '', - 'mp4' : '', - 'mpeg' : '', - 'mpg' : '', - 'mustache' : '', - 'ogg' : '', - 'pdf' : '', - 'php' : '', - 'pl' : '', - 'pm' : '', - 'png' : '', - 'psb' : '', - 'psd' : '', - 'py' : '', - 'pyc' : '', - 'pyd' : '', - 'pyo' : '', - 'rar' : '', - 'rb' : '', - 'rc' : '', - 'rlib' : '', - 'rpm' : '', - 'rs' : '', - 'rss' : '', - 'scala' : '', - 'scss' : '', - 'sh' : '', - 'slim' : '', - 'sln' : '', - 'sql' : '', - 'styl' : '', - 'suo' : '', - 't' : '', - 'tar' : '', - 'tgz' : '', - 'ts' : '', - 'twig' : '', - 'vim' : '', - 'vimrc' : '', - 'wav' : '', - 'webm' : '', - 'xml' : '', - 'xul' : '', - 'xz' : '', - 'yml' : '', - 'zip' : '', -} - -dir_node_exact_matches = { -# English - '.git' : '', - 'Desktop' : '', - 'Documents' : '', - 'Downloads' : '', - 'Dropbox' : '', - 'Music' : '', - 'Pictures' : '', - 'Public' : '', - 'Templates' : '', - 'Videos' : '', -# Spanish - 'Escritorio' : '', - 'Documentos' : '', - 'Descargas' : '', - 'Música' : '', - 'Imágenes' : '', - 'Público' : '', - 'Plantillas' : '', - 'Vídeos' : '', -# French - 'Bureau' : '', - 'Documents' : '', - 'Images' : '', - 'Musique' : '', - 'Publique' : '', - 'Téléchargements' : '', - 'Vidéos' : '', -# Portuguese - 'Documentos' : '', - 'Imagens' : '', - 'Modelos' : '', - 'Música' : '', - 'Público' : '', - 'Vídeos' : '', - 'Área de trabalho' : '', -# Italian - 'Documenti' : '', - 'Immagini' : '', - 'Modelli' : '', - 'Musica' : '', - 'Pubblici' : '', - 'Scaricati' : '', - 'Scrivania' : '', - 'Video' : '', -# German - 'Bilder' : '', - 'Dokumente' : '', - 'Musik' : '', - 'Schreibtisch' : '', - 'Vorlagen' : '', - 'Öffentlich' : '', -} - -file_node_exact_matches = { - '.Xdefaults' : '', - '.Xresources' : '', - '.bashprofile' : '', - '.bashrc' : '', - '.dmrc' : '', - '.ds_store' : '', - '.fasd' : '', - '.gitconfig' : '', - '.gitignore' : '', - '.jack-settings' : '', - '.mime.types' : '', - '.nvidia-settings-rc' : '', - '.pam_environment' : '', - '.profile' : '', - '.recently-used' : '', - '.selected_editor' : '', - '.vimrc' : '', - '.xinputrc' : '', - 'config' : '', - 'dropbox' : '', - 'exact-match-case-sensitive-1.txt' : 'X1', - 'exact-match-case-sensitive-2' : 'X2', - 'favicon.ico' : '', - 'gruntfile.coffee' : '', - 'gruntfile.js' : '', - 'gruntfile.ls' : '', - 'gulpfile.coffee' : '', - 'gulpfile.js' : '', - 'gulpfile.ls' : '', - 'ini' : '', - 'ledger' : '', - 'license' : '', - 'mimeapps.list' : '', - 'node_modules' : '', - 'procfile' : '', - 'react.jsx' : '', - 'user-dirs.dirs' : '', -} - -def devicon(file): - if file.is_directory: return dir_node_exact_matches.get(file.relative_path, '') - return file_node_exact_matches.get(file.relative_path, file_node_extensions.get(file.extension, '')) diff --git a/.config/ranger/plugins.bak/devicons_linemode.py b/.config/ranger/plugins.bak/devicons_linemode.py deleted file mode 100755 index d8263303..00000000 --- a/.config/ranger/plugins.bak/devicons_linemode.py +++ /dev/null @@ -1,19 +0,0 @@ -import ranger.api -from ranger.core.linemode import LinemodeBase -from plugins.devicons import * - -@ranger.api.register_linemode -class DevIconsLinemode(LinemodeBase): - name = "devicons" - - uses_metadata = False - - def filetitle(self, file, metadata): - return devicon(file) + ' ' + file.relative_path - -@ranger.api.register_linemode -class DevIconsLinemodeFile(LinemodeBase): - name = "filename" - - def filetitle(self, file, metadata): - return devicon(file) + ' ' + file.relative_path