Giter Site home page Giter Site logo

fred-barclay / caja-hide Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kdb2/nemo-hide

2.0 3.0 0.0 40 KB

Hide files without renaming them (with the .hidden file)

License: GNU General Public License v3.0

Python 100.00%
linux python debian caja

caja-hide's Introduction

Caja Hide

Extension for Caja to hide files without renaming them.

Adapted from Nautilus Hide, copyright (C) 2015 Bruno Nova [email protected] https://bitbucket.org/brunonova/nautilus-hide/src#clone, and Nemo Hide, copyright (C) 2015 KDB2 (Emmanuel) https://github.com/KDB2/Nemo-hide.

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 the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Description

Caja Hide is a simple Python extension for the Caja 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 Caja reads to hide the listed files the next time you open or refresh the folder.

Details

In Linux, and other UNIX-like systems, a file with a name that starts by a dot ('.') is considered a hidden file. Some file managers also hide files that end with a tilde ('~'), which are considered backup files.

To hide an existing file, you would have to rename it. That's not always feasible or desirable.

Some file managers, like Caja, offer an alternative way of hiding files: you create a text file that lists, line-by-line, the names of all the files you want to hide in a particular folder (directory) and save it in that folder with the name .hidden. The next time you open or refresh that folder, those files will not be visible.

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. Caja will automatically refresh upon hiding or unhiding a file so that the file will either disappear or re-appear.

Please note that Caja Hide can also be used to hide folders.

Installation

Dependencies:

Install these first.

  • caja
  • python 2.7
  • python-caja (the python 2 version. Depending on your distro it may be called python2-caja)
  • xautomation

Debian

a) Download source code

git clone https://github.com/Fred-Barclay/Caja-Hide.git
cd Caja-Wipe
dpkg-buildpackage
cd .. && sudo dpkg -i install caja-hide_0.8.9_all.deb

b) Restart caja
caja -q

Other Distros (per-user installation)

mkdir -p ~/.local/share/caja-python/extensions/
git clone https://github.com/Fred-Barclay/Caja-Hide.git
cd Caja-Hide/src
cp caja-hide.py ~/.local/share/caja-python/extensions/caja-hide.py

Restart Caja
caja -q

caja-hide's People

Contributors

fred-barclay avatar kdb2 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.