diff -Nru nautilus-hide-0.1.3/AUTHORS nautilus-hide-0.2.1/AUTHORS --- nautilus-hide-0.1.3/AUTHORS 2015-09-17 15:57:38.000000000 +0000 +++ nautilus-hide-0.2.1/AUTHORS 2017-02-13 20:36:45.000000000 +0000 @@ -3,3 +3,5 @@ Translators: Bruno Nova Okki +Silubr +Steeven Lopes diff -Nru nautilus-hide-0.1.3/cmake/FindXdotool.cmake nautilus-hide-0.2.1/cmake/FindXdotool.cmake --- nautilus-hide-0.1.3/cmake/FindXdotool.cmake 1970-01-01 00:00:00.000000000 +0000 +++ nautilus-hide-0.2.1/cmake/FindXdotool.cmake 2017-02-02 21:59:11.000000000 +0000 @@ -0,0 +1,9 @@ +find_program(XDOTOOL NAMES xdotool) + +if(XDOTOOL_NOTFOUND) + message (FATAL_ERROR "-- Not Found xdotool: install it first") +else(XDOTOOL_FOUND) + message ("-- Found xdotool") +endif() + +find_package_handle_standard_args(Xdotool "Could not find xdotool!" XDOTOOL) diff -Nru nautilus-hide-0.1.3/CMakeLists.txt nautilus-hide-0.2.1/CMakeLists.txt --- nautilus-hide-0.1.3/CMakeLists.txt 2015-09-17 15:57:38.000000000 +0000 +++ nautilus-hide-0.2.1/CMakeLists.txt 2017-02-02 21:59:11.000000000 +0000 @@ -1,6 +1,8 @@ cmake_minimum_required(VERSION 2.6) project(NautilusHide NONE) +list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) find_package(Gettext REQUIRED) +find_package(Xdotool REQUIRED) configure_file(extension/nautilus-hide.py extension/nautilus-hide.py) diff -Nru nautilus-hide-0.1.3/CONTRIBUTING.md nautilus-hide-0.2.1/CONTRIBUTING.md --- nautilus-hide-0.1.3/CONTRIBUTING.md 2015-09-17 15:57:38.000000000 +0000 +++ nautilus-hide-0.2.1/CONTRIBUTING.md 2017-02-02 21:59:11.000000000 +0000 @@ -9,10 +9,14 @@ ## Translating The extension needs to be translated to more languages. You are welcome to -translate it to yours, then send the translation through a pull request or -through the [issue tracker][issues]. +translate it to yours! -The translation template, in gettext format, is located in the "po" folder. +The translation template, in gettext format, is located in the `po` folder. +The `.po` files should be listed in the `gettext_create_translations()` command +of the *CMakeLists.txt*. + +You can send the translation through a pull request or through +the [issue tracker][issues]. ## Coding diff -Nru nautilus-hide-0.1.3/debian/changelog nautilus-hide-0.2.1/debian/changelog --- nautilus-hide-0.1.3/debian/changelog 2015-09-22 19:21:33.000000000 +0000 +++ nautilus-hide-0.2.1/debian/changelog 2016-04-05 11:06:14.000000000 +0000 @@ -1,3 +1,10 @@ +nautilus-hide (0.2.1-1~webupd8~yakkety) yakkety; urgency=medium + + * New upstream release. + * Depend on xdotool + + -- Alin Andrei Tue, 05 Apr 2016 12:06:14 +0100 + nautilus-hide (0.1.3-1) unstable; urgency=low * New upstream release. diff -Nru nautilus-hide-0.1.3/debian/control nautilus-hide-0.2.1/debian/control --- nautilus-hide-0.1.3/debian/control 2015-09-17 20:46:04.000000000 +0000 +++ nautilus-hide-0.2.1/debian/control 2016-04-05 11:06:14.000000000 +0000 @@ -2,7 +2,7 @@ Section: gnome Priority: optional Maintainer: Bruno Nova -Build-Depends: debhelper (>= 9), cmake (>= 2.6), gettext +Build-Depends: debhelper (>= 9), cmake (>= 2.6), gettext, xdotool Standards-Version: 3.9.6 Homepage: https://github.com/brunonova/nautilus-hide Vcs-Git: https://github.com/brunonova/nautilus-hide.git -b debian @@ -10,7 +10,7 @@ Package: nautilus-hide Architecture: all -Depends: ${misc:Depends}, nautilus, python-nautilus +Depends: ${misc:Depends}, nautilus, python-nautilus, xdotool Enhances: nautilus Description: Extension for Nautilus to hide files without renaming them Nautilus Hide is a simple Python extension for the Nautilus file manager that diff -Nru nautilus-hide-0.1.3/extension/nautilus-hide.py nautilus-hide-0.2.1/extension/nautilus-hide.py --- nautilus-hide-0.1.3/extension/nautilus-hide.py 2015-09-17 15:57:39.000000000 +0000 +++ nautilus-hide-0.2.1/extension/nautilus-hide.py 2017-02-02 21:59:11.000000000 +0000 @@ -1,5 +1,6 @@ # Nautilus Hide - Extension for Nautilus to hide files without renaming them # Copyright (C) 2015 Bruno Nova +# 2016 Steeven Lopes # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -14,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -import os +import os, subprocess from gi.repository import Nautilus, GObject from gettext import ngettext, locale, bindtextdomain, textdomain @@ -120,7 +121,7 @@ with open(hidden_path, "w") as f: for file in hidden: f.write(file + '\n') - # Nautilus should be refreshed here. But how to do that? + subprocess.Popen(["xdotool","key","F5"]) except: print("Failed to delete or write to {}!".format(hidden_path)) diff -Nru nautilus-hide-0.1.3/generate-pot-file.sh nautilus-hide-0.2.1/generate-pot-file.sh --- nautilus-hide-0.1.3/generate-pot-file.sh 2015-09-17 17:38:30.000000000 +0000 +++ nautilus-hide-0.2.1/generate-pot-file.sh 2017-02-20 19:59:19.000000000 +0000 @@ -3,5 +3,10 @@ FILEPATH="$(readlink -f "$0")" DIR="$(dirname "$FILEPATH")" cd "$DIR" -xgettext --package-name=nautilus-hide --package-version=0.1.3 -cTRANSLATORS \ - "extension/nautilus-hide.py" -o "po/nautilus-hide.pot" +xgettext --package-name=nautilus-hide \ + --package-version=0.2.1 \ + --copyright-holder='Bruno Nova ' \ + --msgid-bugs-address='https://github.com/brunonova/nautilus-hide/issues' \ + -cTRANSLATORS \ + -s -o "po/nautilus-hide.pot" \ + "extension/nautilus-hide.py" diff -Nru nautilus-hide-0.1.3/INSTALL.md nautilus-hide-0.2.1/INSTALL.md --- nautilus-hide-0.1.3/INSTALL.md 2015-09-17 15:57:38.000000000 +0000 +++ nautilus-hide-0.2.1/INSTALL.md 2017-02-02 21:59:11.000000000 +0000 @@ -7,6 +7,7 @@ * cmake * gettext * python-nautilus + * xdotool 2. Open a terminal in the project directory and run: diff -Nru nautilus-hide-0.1.3/nautilus-hide.appdata.xml nautilus-hide-0.2.1/nautilus-hide.appdata.xml --- nautilus-hide-0.1.3/nautilus-hide.appdata.xml 1970-01-01 00:00:00.000000000 +0000 +++ nautilus-hide-0.2.1/nautilus-hide.appdata.xml 2017-02-20 19:59:53.000000000 +0000 @@ -0,0 +1,65 @@ + + + + nautilus-hide + org.gnome.Nautilus.desktop + GPL-3.0+ + GPL-3.0+ + Nautilus Hide + Extension for Nautilus to hide files without renaming them + Extensão para o Nautilus para ocultar ficheiros sem os renomear + +

+ Nautilus Hide is a simple Python extension for the Nautilus file + manager that adds options to the right-click menu to hide or unhide + files. +

+

+ The extension hides the files without renaming them (i.e. without + prefixing a dot ('.') or suffixing a tilde ('~')). + It does that by adding their names to the folder's '.hidden' file, + which Nautilus reads to hide the listed files the next time you open + or refresh the folder. +

+

+ O Nautilus Hide é uma extensão em Python simples para o gestor de + ficheiros Nautilus que adiciona opções ao menu de contexto para + ocultar ou desocultar ficheiros. +

+

+ A extensão oculta os ficheiros sem os renomear (i.e. sem adicionar + um ponto ('.') ao início ou um til ('~') ao fim). + Faz isso adicionado os seus nomes ao ficheiro '.hidden' da pasta, + o qual o Nautilus lê para ocultar a lista de ficheiros da próxima + vez que abrir ou actualizar a pasta. +

+
+ http://brunonova.github.io/nautilus-hide/ + http://brunonova.github.io/nautilus-hide/issues/ + Bruno Nova + brunomb.nova@gmail.com + + + +
    +
  • Added German translation (thanks Silubr).
  • +
+
+
+ + +
    +
  • Refresh the folder automatically after hiding or + unhiding a file.
  • +
+
+
+ + +
    +
  • Moved the project to GitHub.
  • +
+
+
+
+
diff -Nru nautilus-hide-0.1.3/NEWS nautilus-hide-0.2.1/NEWS --- nautilus-hide-0.1.3/NEWS 2015-09-17 17:39:03.000000000 +0000 +++ nautilus-hide-0.2.1/NEWS 2017-02-13 20:37:30.000000000 +0000 @@ -1,3 +1,16 @@ +v0.2.1 +------ + +* Added German translation (thanks Silubr) + + +v0.2.0 +------ + +* Refresh the folder automatically after hiding or unhiding a file + (thanks Steeven Lopes) + + v0.1.3 ------ diff -Nru nautilus-hide-0.1.3/po/de.po nautilus-hide-0.2.1/po/de.po --- nautilus-hide-0.1.3/po/de.po 1970-01-01 00:00:00.000000000 +0000 +++ nautilus-hide-0.2.1/po/de.po 2017-02-13 20:27:43.000000000 +0000 @@ -0,0 +1,45 @@ +# German translation for nautilus-hide package. +# Copyright (C) 2015 Bruno Nova +# This file is distributed under the same license as the nautilus-hide package. +# Bruno Nova , 2015. +# +# Translators: +# Silubr, 2017. +# +msgid "" +msgstr "" +"Project-Id-Version: nautilus-hide 0.2.0\n" +"Report-Msgid-Bugs-To: https://github.com/brunonova/nautilus-hide/issues\n" +"POT-Creation-Date: 2017-01-31 04:13+0000\n" +"PO-Revision-Date: 2017-02-13 17:31+0200\n" +"Last-Translator: Silubr\n" +"Language-Team: \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: extension/nautilus-hide.py:100 +msgid "Hide this file" +msgid_plural "Hide these files" +msgstr[0] "Datei verstecken" +msgstr[1] "Dateien verstecken" + +#: extension/nautilus-hide.py:107 +msgid "Un_hide File" +msgid_plural "Un_hide Files" +msgstr[0] "Datei _einblenden" +msgstr[1] "Dateien _einblenden" + +#: extension/nautilus-hide.py:108 +msgid "Unhide this file" +msgid_plural "Unhide these files" +msgstr[0] "Datei einblenden" +msgstr[1] "Dateien einblenden" + +#: extension/nautilus-hide.py:99 +msgid "_Hide File" +msgid_plural "_Hide Files" +msgstr[0] "Datei _verstecken" +msgstr[1] "Dateien _verstecken" diff -Nru nautilus-hide-0.1.3/po/fr.po nautilus-hide-0.2.1/po/fr.po --- nautilus-hide-0.1.3/po/fr.po 2015-09-17 15:57:39.000000000 +0000 +++ nautilus-hide-0.2.1/po/fr.po 2017-02-02 21:59:11.000000000 +0000 @@ -1,16 +1,16 @@ -# French translation for nautilus-hide package. -# Copyright (C) 2015 Bruno Nova -# This file is distributed under the same license as the nautilus-hide package. -# Bruno Nova , 2015. -# -# Translators: -# Okki , 2015. -# +# French translation for nautilus-hide package. +# Copyright (C) 2015 Bruno Nova +# This file is distributed under the same license as the nautilus-hide package. +# Bruno Nova , 2015. +# +# Translators: +# Okki , 2015. +# msgid "" msgstr "" -"Project-Id-Version: nautilus-hide 0.1.1\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-09 12:02+0100\n" +"Project-Id-Version: nautilus-hide 0.1.3\n" +"Report-Msgid-Bugs-To: https://github.com/brunonova/nautilus-hide/issues\n" +"POT-Creation-Date: 2015-10-05 21:47+0100\n" "PO-Revision-Date: 2015-05-22 01:16+0200\n" "Last-Translator: Okki \n" "Language-Team: \n" diff -Nru nautilus-hide-0.1.3/po/nautilus-hide.pot nautilus-hide-0.2.1/po/nautilus-hide.pot --- nautilus-hide-0.1.3/po/nautilus-hide.pot 2015-09-17 15:57:39.000000000 +0000 +++ nautilus-hide-0.2.1/po/nautilus-hide.pot 2017-02-02 21:59:11.000000000 +0000 @@ -1,14 +1,14 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. +# Copyright (C) YEAR Bruno Nova +# This file is distributed under the same license as the nautilus-hide package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: nautilus-hide 0.1.1\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-09 12:02+0100\n" +"Project-Id-Version: nautilus-hide 0.2.0\n" +"Report-Msgid-Bugs-To: https://github.com/brunonova/nautilus-hide/issues\n" +"POT-Creation-Date: 2017-01-31 04:13+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,12 +18,6 @@ "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" -#: extension/nautilus-hide.py:99 -msgid "_Hide File" -msgid_plural "_Hide Files" -msgstr[0] "" -msgstr[1] "" - #: extension/nautilus-hide.py:100 msgid "Hide this file" msgid_plural "Hide these files" @@ -41,3 +35,9 @@ msgid_plural "Unhide these files" msgstr[0] "" msgstr[1] "" + +#: extension/nautilus-hide.py:99 +msgid "_Hide File" +msgid_plural "_Hide Files" +msgstr[0] "" +msgstr[1] "" diff -Nru nautilus-hide-0.1.3/po/pt.po nautilus-hide-0.2.1/po/pt.po --- nautilus-hide-0.1.3/po/pt.po 2015-09-17 15:57:39.000000000 +0000 +++ nautilus-hide-0.2.1/po/pt.po 2017-02-02 21:59:11.000000000 +0000 @@ -5,12 +5,12 @@ # msgid "" msgstr "" -"Project-Id-Version: nautilus-hide 0.1.1\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-05-09 12:02+0100\n" -"PO-Revision-Date: 2015-05-09 12:06+0100\n" +"Project-Id-Version: nautilus-hide 0.1.3\n" +"Report-Msgid-Bugs-To: https://github.com/brunonova/nautilus-hide/issues\n" +"POT-Creation-Date: 2015-12-08 13:18+0000\n" +"PO-Revision-Date: 2015-10-05 21:49+0100\n" "Last-Translator: Bruno Nova \n" -"Language-Team: Portuguese \n" +"Language-Team: \n" "Language: pt\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" diff -Nru nautilus-hide-0.1.3/README.md nautilus-hide-0.2.1/README.md --- nautilus-hide-0.1.3/README.md 2015-09-17 15:57:39.000000000 +0000 +++ nautilus-hide-0.2.1/README.md 2017-02-02 21:59:11.000000000 +0000 @@ -1,6 +1,8 @@ Nautilus Hide ============= +[![GPLv3 license](http://img.shields.io/badge/license-GPLv3-brightgreen.svg)](http://www.gnu.org/licenses/gpl-3.0.html) + Nautilus Hide is a simple Python extension for the Nautilus file manager that adds options to the right-click menu to hide or unhide files. @@ -29,7 +31,7 @@ This extension simply uses that ".hidden" file to hide files. When you choose to hide a file, its name is added to the folder's ".hidden" file. When you choose to unhide it, the name is removed. -You will have to refresh the folder to see the result. +If the file isn't hidden/unhidden, press `F5` to refresh the folder. ## Download