-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
link-target-to-tab@mdpenguin & search-path-to-tab@mdpenguin: Initial …
…release (#558)
- Loading branch information
Showing
16 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### 1.0 | ||
|
||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
10 changes: 10 additions & 0 deletions
10
link-target-to-tab@mdpenguin/files/link-target-to-tab@mdpenguin/check_file.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Binary file added
BIN
+18 KB
link-target-to-tab@mdpenguin/files/link-target-to-tab@mdpenguin/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
link-target-to-tab@mdpenguin/files/link-target-to-tab@mdpenguin/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
26 changes: 26 additions & 0 deletions
26
...t-to-tab@mdpenguin/files/link-target-to-tab@mdpenguin/po/[email protected]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"author": "mdpenguin" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### 1.0 | ||
|
||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
10 changes: 10 additions & 0 deletions
10
search-path-to-tab@mdpenguin/files/search-path-to-tab@mdpenguin/check_path.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Binary file added
BIN
+19.6 KB
search-path-to-tab@mdpenguin/files/search-path-to-tab@mdpenguin/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions
7
search-path-to-tab@mdpenguin/files/search-path-to-tab@mdpenguin/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
26 changes: 26 additions & 0 deletions
26
...h-to-tab@mdpenguin/files/search-path-to-tab@mdpenguin/po/[email protected]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"author": "mdpenguin" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |