Skip to content

Commit

Permalink
[copy-name-to-clipboard@torchipeppo] Add action (#553)
Browse files Browse the repository at this point in the history
A simple derivative of Claudiux's Copy Path.
No more F2->Ctrl+C->Esc!
  • Loading branch information
torchipeppo authored Oct 29, 2024
1 parent de3c621 commit 5130ced
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 0 deletions.
4 changes: 4 additions & 0 deletions copy-name-to-clipboard@torchipeppo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

### 1.0.0

* Initial release
15 changes: 15 additions & 0 deletions copy-name-to-clipboard@torchipeppo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Copy Name To Clipboard
======================

Copy the name of a file or folder to the clipboard by right-clicking on it.

This is a simple derivative of claudiux's "Copy Path To Clipboard" action.

DESCRIPTION
-----------

This action adds a context menu item for copying the name of the selected file/folder to the clipboard. You can then paste this path anywhere as usual.

DEPENDENCY
----------
Requires `xclip` to be installed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Nemo Action]
_Name=Copy name to clipboard
_Comment=Copy the name of the selected item to the clipboard
Exec=sh -c "echo -n $(basename %F) | xclip -selection clipboard"
Selection=s
Extensions=any;
Icon-Name=edit-copy
Dependencies=xclip;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"description": "Copy the name of the selected item to the clipboard. Requires xclip to be installed.",
"uuid": "copy-name-to-clipboard@torchipeppo",
"name": "Copy Name To Clipboard",
"author": "torchipeppo",
"version": "1.0.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# COPY NAME TO CLIPBOARD
# This file is put in the public domain.
# torchipeppo, 2023
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: copy-name-to-clipboard@torchipeppo 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-actions/"
"issues\n"
"POT-Creation-Date: 2024-10-29 12:02+0100\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#. metadata.json->description
msgid ""
"Copy the name of the selected item to the clipboard. Requires xclip to be "
"installed."
msgstr ""

#. metadata.json->name
msgid "Copy Name To Clipboard"
msgstr ""

#. [email protected]_action.in->Name
msgid "Copy name to clipboard"
msgstr ""

#. [email protected]_action.in->Comment
msgid "Copy the name of the selected item to the clipboard"
msgstr ""
3 changes: 3 additions & 0 deletions copy-name-to-clipboard@torchipeppo/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"author": "torchipeppo"
}

0 comments on commit 5130ced

Please sign in to comment.