Skip to content

Commit

Permalink
link-target-to-tab@mdpenguin & search-path-to-tab@mdpenguin: Initial …
Browse files Browse the repository at this point in the history
…release (#558)
  • Loading branch information
mdpenguin authored Nov 6, 2024
1 parent 20a221a commit 736def2
Show file tree
Hide file tree
Showing 16 changed files with 140 additions and 0 deletions.
3 changes: 3 additions & 0 deletions link-target-to-tab@mdpenguin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### 1.0

* Initial release
3 changes: 3 additions & 0 deletions link-target-to-tab@mdpenguin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Open Link Target Path in New Tab

Opens the path to the target of a symbolic link in a new tab
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

file="$1"

# exit with no errors if file is a symlink
if [ -L "$file" ]; then
exit 0;
fi

exit 1;
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": "Open the path to the target of a symbolic link in a new tab",
"uuid": "link-target-to-tab@mdpenguin",
"name": "Open Link Target Path in New Tab",
"author": "mdpenguin",
"version": "1.0.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# OPEN LINK TARGET PATH IN NEW TAB
# This file is put in the public domain.
# mdpenguin, 2024
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: link-target-to-tab@mdpenguin 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-actions/"
"issues\n"
"POT-Creation-Date: 2024-11-06 15:02-0500\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 "Open the path to the target of a symbolic link in a new tab"
msgstr ""

#. metadata.json->name
msgid "Open Link Target Path in New Tab"
msgstr ""
3 changes: 3 additions & 0 deletions link-target-to-tab@mdpenguin/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"author": "mdpenguin"
}
18 changes: 18 additions & 0 deletions link-target-to-tab@mdpenguin/[email protected]_action.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[Nemo Action]

# displayed details
_Name=Show Link Target in New Tab
_Comment=Opens the path to the target of a symlink in a new tab
Icon-Name=emblem-symbolic-link

# only show if selected file or folder is a symlink
Conditions=exec <link-target-to-tab@mdpenguin/check_file.sh %F>;

# only accept selecting single link
Selection=s

# show with any file type
Extensions=any;

# open link target in new tab
Exec=sh -c 'target_path=$(readlink -f %F); nemo "$target_path" -t --existing-window'
3 changes: 3 additions & 0 deletions search-path-to-tab@mdpenguin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### 1.0

* Initial release
3 changes: 3 additions & 0 deletions search-path-to-tab@mdpenguin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Open Path from Search in New Tab

Opens the path to a file selected in Nemo search results in a new tab
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

path="$1"

# exit without error if path is a Nemo search
if [ "$path" == "Search" ]; then
exit 0;
fi

exit 1;
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": "Open the path of a selected file from Nemo search in a new tab",
"uuid": "search-path-to-tab@mdpenguin",
"name": "Show Path from Search in New Tab",
"author": "mdpenguin",
"version": "1.0.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# SHOW PATH FROM SEARCH IN NEW TAB
# This file is put in the public domain.
# mdpenguin, 2024
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: search-path-to-tab@mdpenguin 1.0.0\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-actions/"
"issues\n"
"POT-Creation-Date: 2024-11-06 15:03-0500\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 "Open the path of a selected file from Nemo search in a new tab"
msgstr ""

#. metadata.json->name
msgid "Show Path from Search in New Tab"
msgstr ""
3 changes: 3 additions & 0 deletions search-path-to-tab@mdpenguin/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"author": "mdpenguin"
}
18 changes: 18 additions & 0 deletions search-path-to-tab@mdpenguin/[email protected]_action.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[Nemo Action]

# displayed details
_Name=Show in New Tab
_Comment=Opens the path of selected file from Nemo search in a new tab
Icon-Name=xapp-go-history-next-symbolic

# only show if file is in Nemo search dialog
Conditions=exec <search-path-to-tab@mdpenguin/check_path.sh %p>;

# only accept selecting single link
Selection=s

# show with any file type
Extensions=any;

# open file path in new tab
Exec=nemo %F -t --existing-window

0 comments on commit 736def2

Please sign in to comment.