Giter Club home page Giter Club logo

nemo_copy_folder_content_list's Introduction

nemo_copy_folder_content_list: Creates list of folderNames, and, a fileNames. (NOT full paths of each file)

Installation Guide: Nemo_Copy_Folder_Content_List

This nemo_action:

allows users to copy the names of all items within a folder to the clipboard, excluding their directory paths for a succinct listing.

Enabled Features

  • Clipboard Copying: Effortlessly copies just the item names in a folder to the clipboard.
  • Path Exclusion: Smartly omits the directory paths for a cleaner output.
  • Installation: No need to modify file paths or usernames, as the script dynamically resolves the current user's home directory.
  • Self-Cleaning: Post-installation, the script engages in a thorough clean-up process, deleting the cloned repository from your home directory. This action ensures your workspace remains uncluttered, preserving the sanctity and available space of your home directory without leaving behind any residual files or folders.

Quick Start

SingleCommand Install

To install the Nemo action on Linux Mint, open a terminal and execute this SingleCommand:

REPO_URL="https://github.com/ForDefault/nemo_copy_folder_content_list.git" && \
REPO_NAME=$(basename $REPO_URL .git) && \
git clone $REPO_URL && \
cd $REPO_NAME && \
sudo apt-get update && sudo apt-get install -y xclip && \
sed -i "s|/home/\$USER|/home/$USER|g" list_documents.nemo_action && \
mv list_documents.sh /home/$USER/.local/share/nemo/actions/ && \
mv list_documents.nemo_action /home/$USER/.local/share/nemo/actions/ && \
chmod +x /home/$USER/.local/share/nemo/actions/list_documents.sh && \
chmod +x /home/$USER/.local/share/nemo/actions/list_documents.nemo_action && \
cd .. && rm -rf $REPO_NAME

Usage

After installation, right-click on any folder in Nemo and select "List Document Names" from the context menu. The names of all items in the folder (both files and directories) will be copied to your clipboard without their paths.

My Other Nemo Actions:

Post-Installation

You might need to restart Nemo(I dont but you can). This command quits Nemo, and you can then reopen it normally.

nemo -q 

Troubleshooting

If the action does not appear in Nemo's context menu, or if you encounter issues:

  • Verify that xclip is installed and functioning correctly.
  • Check that the scripts have the correct permissions and are located in
cd /home/$USER/.local/share/nemo/actions/
  • Restart Nemo using
nemo -q

to refresh its configuration.

nemo_copy_folder_content_list's People

Contributors

fordefault avatar

Stargazers

 avatar

Watchers

 avatar

nemo_copy_folder_content_list's Issues

Installation doesn't work

Just a normal user (non-expert) here. Installation doesn't work for me. There's no folder named $USER in my home folder, but I assume it means my personal folder (I'm the super user). When I gave the installation command, I got the following (sorry, there's some Finnish there):

REPO_URL="https://github.com/ForDefault/nemo_copy_folder_content_list.git" && \ REPO_NAME=$(basename $REPO_URL .git) && \ git clone $REPO_URL && \ cd $REPO_NAME && \ sudo apt-get update && sudo apt-get install -y xclip && \ sed -i "s|/home/\$USER|/home/$USER|g" list_documents.nemo_action && \ mv list_documents.sh /home/$USER/.local/share/nemo/actions/ && \ mv list_documents.nemo_action /home/$USER/.local/share/nemo/actions/ && \ chmod +x /home/$USER/.local/share/nemo/actions/list_documents.sh && \ chmod +x /home/$USER/.local/share/nemo/actions/list_documents.nemo_action && \ cd .. && rm -rf $REPO_NAME Cloning into 'nemo_copy_folder_content_list'... remote: Enumerating objects: 66, done. remote: Counting objects: 100% (66/66), done. remote: Compressing objects: 100% (64/64), done. remote: Total 66 (delta 20), reused 0 (delta 0), pack-reused 0 Receiving objects: 100% (66/66), 23.69 KiB | 2.63 MiB/s, done. Resolving deltas: 100% (20/20), done. [sudo] ari-käyttäjän salasana: Nouda:1 http://dl.google.com/linux/earth/deb stable InRelease [1 821 B] Löytyi:2 http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu jammy InRelease Löytyi:3 http://archive.ubuntu.com/ubuntu jammy InRelease Löytyi:4 http://security.ubuntu.com/ubuntu jammy-security InRelease Löytyi:5 https://dl.winehq.org/wine-builds/ubuntu jammy InRelease Löytyi:6 http://ppa.launchpad.net/lutris-team/lutris/ubuntu jammy InRelease Löytyi:7 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Löytyi:8 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Siv:9 http://packages.linuxmint.com virginia InRelease Vrhe:1 http://dl.google.com/linux/earth/deb stable InRelease Seuraavia allekirjoituksia ei voinut varmentaa koska julkista avainta ei ole saatavilla: NO_PUBKEY E88979FB9B30ACF2 Löytyi:10 https://ppa.launchpadcontent.net/phoerious/keepassxc/ubuntu jammy InRelease Löytyi:11 http://packages.linuxmint.com virginia Release Luetaan pakettiluetteloita... Valmis W: GPG error: http://dl.google.com/linux/earth/deb stable InRelease: Seuraavia allekirjoituksia ei voinut varmentaa koska julkista avainta ei ole saatavilla: NO_PUBKEY E88979FB9B30ACF2 E: The repository 'http://dl.google.com/linux/earth/deb stable InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: http://ppa.launchpad.net/danielrichter2007/grub-customizer/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. W: http://ppa.launchpad.net/lutris-team/lutris/ubuntu/dists/jammy/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

There's nothing in my .local/share/nemo/actions/ after giving the command above. Xclip wasn't installed, but installing it didn't help.

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.