commit d2c36c87b86c95d27f4353dfbafed0f1fd4d8594 Author: kebler.net Date: Sat Sep 3 11:59:42 2022 -0700 initial commit of UCI nemo actions diff --git a/browser-here.nemo_action b/browser-here.nemo_action new file mode 100644 index 0000000..c2bbe9c --- /dev/null +++ b/browser-here.nemo_action @@ -0,0 +1,100 @@ +[Nemo Action] + +############################################# +#### DEBUGGING: +#### +#### Run Nemo with the environment +#### variable NEMO_ACTION_VERBOSE +#### set to get useful log output +#### for debugging your actions +#### +#### i.e. $ nemo --quit +#### $ NEMO_ACTION_VERBOSE=1 nemo +############################################# + +# Whether this action is active. For troubleshooting. +# Optional - if this field is omitted, the action will be active +#Active=true + +# Standard tokens that can be used in the Name, Comment (tooltip) and Exec fields: +# +# %U - insert URI list of selection +# %F - insert path list of selection +# %P - insert path of parent (current) directory +# %f or %N (deprecated) - insert display name of first selected file +# %p - insert display name of parent directory +# %D - insert device path of file (i.e. /dev/sdb1) + + +# The name to show in the menu, locale supported with standard desktop spec. +# **** REQUIRED **** +Name=Open Browser Tab Here + +# Tool tip, locale supported (Appears in the status bar) +Comment=Start Firefox Editor in current directory + +# What to run. Enclose in < > to run an executable that resides in the actions folder. +# **** REQUIRED **** +#Exec=gedit %F +Exec=firefox -P DGK-Work -new-tab %P + +# Icon name to use in the menu - must be a theme icon name +#Icon-Name=sublime-text + +# Gtk Stock ID to use for the icon. Note if both Icon-name and Stock-Id are +# defined, the Stock-Id takes precedence. +#Stock-Id=gtk-cdrom + +# What type selection: [s]ingle, [m]ultiple, any, notnone, none (background click), or +# a number representing how many files must be selected to display. +# ****** REQUIRED ******* +Selection=any + +# What extensions to display on - this is an array, end with a semicolon +# Single entry options, ending in a semicolon: +# "dir" for directory selection +# "none" for no extension. +# "nodirs" for any selection, but not including directories. +# "any" for any file type, including directories. +# Individual specific extensions can be a semicolon-terminated list +# Extensions are NOT case sensitive. jpg will match JPG, jPg, jpg, etc.. +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +Extensions=any; + +# What mime-types to display on - this is an array, end with a semicolon +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +#Mimetypes=text/plain; + +# Separator to use (if any) - add a string to insert between path/url entries +# in the exec line. Optional - if you leave this out, a space is inserted. +# Note you can have trailing spaces here. +#Separator=, + +# Quote type to use (if any) - enclose paths/urls with quotes. Optional - defaults +# to no quotes. +# Can be: single, double, backtick +#Quote=double + +# Dependencies - program executables required for this action to work. Nemo will +# Search in the path for these program(s) and not display the action if any are missing. +# You can also supply an absolute path to a file (i.e. /usr/lib/gvfs/gvfsd-archive) to check +# instead of or in addition to an executable in the path. +# This is an array, separate entries with semi-colon, and terminate with a semicolon. +Dependencies=firefox; + +# Conditions - semicolon-separated array of special conditions: +# "desktop" current (parent) folder is desktop +# "removable" target (first selection) is removable +# "gsettings " is true +# "gsettings <[eq|ne|gt|lt]> " +# "dbus " exists + +#Conditions=desktop; + +# Escape Spaces - set to true to escape spaces in filenames and uris ($U, $F, $P, $D) +# +# Sometimes this may be preferred to getting raw filenames that must be enclosed in +# quotes. +# +# Optional - by default this is false +#EscapeSpaces=true diff --git a/clip2link.sh b/clip2link.sh new file mode 100755 index 0000000..6404a39 --- /dev/null +++ b/clip2link.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# uncomment next line for debugging log file +# exec 1> "$1"/link.log 2>&1 +LINK_PATH=$(/usr/bin/xclip -o -se c) +LINK_NAME="$(basename "${LINK_PATH}")" +echo Link Path="$LINK_PATH", Link Name="$LINK_NAME", Link Destination "$1/$LINK_NAME" +ln -s "$LINK_PATH" "$1"/"$LINK_NAME" +xdotool key ctrl+r diff --git a/edit-as-root.nemo_action b/edit-as-root.nemo_action new file mode 100644 index 0000000..4933e43 --- /dev/null +++ b/edit-as-root.nemo_action @@ -0,0 +1,110 @@ +[Nemo Action] + +############################################# +#### DEBUGGING: +#### +#### Run Nemo with the environment +#### variable NEMO_ACTION_VERBOSE +#### set to get useful log output +#### for debugging your actions +#### +#### i.e. $ nemo --quit +#### $ NEMO_ACTION_VERBOSE=1 nemo +############################################# + +# Whether this action is active. For troubleshooting. +# Optional - if this field is omitted, the action will be active +Active=true + +# Standard tokens that can be used in the Name, Comment (tooltip) and Exec fields: +# +# %U - insert URI list of selection +# %F - insert path list of selection +# %P - insert path of parent (current) directory +# %f or %N (deprecated) - insert display name of first selected file +# %p - insert display name of parent directory +# %D - insert device path of file (i.e. /dev/sdb1) + + +# The name to show in the menu, locale supported with standard desktop spec. +# **** REQUIRED **** +Name=Edit File as Root + +# Tool tip, locale supported (Appears in the status bar) +Comment=Edit file as root + +# What to run. Enclose in < > to run an executable that resides in the actions folder. +# **** REQUIRED **** +Exec=xed admin://%F +#Exec= + +# Icon name to use in the menu - must be a theme icon name +Icon-Name=text-plain + +# Gtk Stock ID to use for the icon. Note if both Icon-name and Stock-Id are +# defined, the Stock-Id takes precedence. +#Stock-Id=gtk-cdrom + +# What type selection: [s]ingle, [m]ultiple, any, notnone, none (background click), or +# a number representing how many files must be selected to display. +# ****** REQUIRED ******* +Selection=s + +# What extensions to display on - this is an array, end with a semicolon +# Single entry options, ending in a semicolon: +# "dir" for directory selection +# "none" for no extension. +# "nodirs" for any selection, but not including directories. +# "any" for any file type, including directories. +# Individual specific extensions can be a semicolon-terminated list +# Extensions are NOT case sensitive. jpg will match JPG, jPg, jpg, etc.. +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +Extensions=nodirs; + +# What mime-types to display on - this is an array, end with a semicolon +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +Mimetypes=text/plain; + +# Separator to use (if any) - add a string to insert between path/url entries +# in the exec line. Optional - if you leave this out, a space is inserted. +# Note you can have trailing spaces here. +#Separator=, + +# Quote type to use (if any) - enclose paths/urls with quotes. Optional - defaults +# to no quotes. +# Can be: single, double, backtick +#Quote=double + +# Dependencies - program executables required for this action to work. Nemo will +# Search in the path for these program(s) and not display the action if any are missing. +# You can also supply an absolute path to a file (i.e. /usr/lib/gvfs/gvfsd-archive) to check +# instead of or in addition to an executable in the path. +# This is an array, separate entries with semi-colon, and terminate with a semicolon. +#Dependencies=gedit; + +# Conditions - semicolon-separated array of special conditions: +# "desktop" current (parent) folder is desktop +# "removable" target (first selection) is removable +# "gsettings " is true +# "gsettings <[eq|ne|gt|lt]> " +# "dbus " exists + +#Conditions=desktop; + +# Escape Spaces - set to true to escape spaces in filenames and uris ($U, $F, $P, $D) +# +# Sometimes this may be preferred to getting raw filenames that must be enclosed in +# quotes. +# +# Optional - by default this is false + +EscapeSpaces=true + +# Run in terminal - set to true to execute the Exec line in a spawned terminal window. +# +# Generally if you use this you should not have Quotes defined, as that will be taken care +# of during converting the expanded command string into an arg vector. +# +# Optional - by default this is false + +#Terminal=false diff --git a/link-clipboard.nemo_action b/link-clipboard.nemo_action new file mode 100644 index 0000000..e1eea86 --- /dev/null +++ b/link-clipboard.nemo_action @@ -0,0 +1,111 @@ +[Nemo Action] + +############################################# +#### DEBUGGING: +#### +#### Run Nemo with the environment +#### variable NEMO_ACTION_VERBOSE +#### set to get useful log output +#### for debugging your actions +#### +#### i.e. $ nemo --quit +#### $ NEMO_ACTION_VERBOSE=1 nemo +############################################# + +# Whether this action is active. For troubleshooting. +# Optional - if this field is omitted, the action will be active +Active=true + +# Standard tokens that can be used in the Name, Comment (tooltip) and Exec fields: +# +# %U - insert URI list of selection +# %F - insert path list of selection +# %P - insert path of parent (current) directory +# %f or %N (deprecated) - insert display name of first selected file +# %p - insert display name of parent directory +# %D - insert device path of file (i.e. /dev/sdb1) + + +# The name to show in the menu, locale supported with standard desktop spec. +# **** REQUIRED **** +Name=Link to Clipboard + +# Tool tip, locale supported (Appears in the status bar) +Comment=Copy File Path to Clipboard for Pasting Link Elsewhere + +# What to run. Enclose in < > to run an executable that resides in the actions folder. +# **** REQUIRED **** +#Exec= echo %F | /usr/bin/xclip -se c +Exec=<./path2clip.sh %F> +#Exec= + +# Icon name to use in the menu - must be a theme icon name +Icon-Name=text-plain + +# Gtk Stock ID to use for the icon. Note if both Icon-name and Stock-Id are +# defined, the Stock-Id takes precedence. +#Stock-Id=gtk-cdrom + +# What type selection: [s]ingle, [m]ultiple, any, notnone, none (background click), or +# a number representing how many files must be selected to display. +# ****** REQUIRED ******* +Selection=s + +# What extensions to display on - this is an array, end with a semicolon +# Single entry options, ending in a semicolon: +# "dir" for directory selection +# "none" for no extension. +# "nodirs" for any selection, but not including directories. +# "any" for any file type, including directories. +# Individual specific extensions can be a semicolon-terminated list +# Extensions are NOT case sensitive. jpg will match JPG, jPg, jpg, etc.. +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +Extensions=any; + +# What mime-types to display on - this is an array, end with a semicolon +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +Mimetypes=text/plain; + +# Separator to use (if any) - add a string to insert between path/url entries +# in the exec line. Optional - if you leave this out, a space is inserted. +# Note you can have trailing spaces here. +#Separator=, + +# Quote type to use (if any) - enclose paths/urls with quotes. Optional - defaults +# to no quotes. +# Can be: single, double, backtick +#Quote=double + +# Dependencies - program executables required for this action to work. Nemo will +# Search in the path for these program(s) and not display the action if any are missing. +# You can also supply an absolute path to a file (i.e. /usr/lib/gvfs/gvfsd-archive) to check +# instead of or in addition to an executable in the path. +# This is an array, separate entries with semi-colon, and terminate with a semicolon. +#Dependencies=gedit; + +# Conditions - semicolon-separated array of special conditions: +# "desktop" current (parent) folder is desktop +# "removable" target (first selection) is removable +# "gsettings " is true +# "gsettings <[eq|ne|gt|lt]> " +# "dbus " exists + +#Conditions=desktop; + +# Escape Spaces - set to true to escape spaces in filenames and uris ($U, $F, $P, $D) +# +# Sometimes this may be preferred to getting raw filenames that must be enclosed in +# quotes. +# +# Optional - by default this is false + +EscapeSpaces=true + +# Run in terminal - set to true to execute the Exec line in a spawned terminal window. +# +# Generally if you use this you should not have Quotes defined, as that will be taken care +# of during converting the expanded command string into an arg vector. +# +# Optional - by default this is false + +#Terminal=false diff --git a/link.log b/link.log new file mode 100644 index 0000000..78a0bba --- /dev/null +++ b/link.log @@ -0,0 +1 @@ +Link Path=/mnt/238/nas/data/downloads/hugo-update, Link Name=hugo-update, Link Destination /home/david/.local/share/nemo/actions/hugo-update diff --git a/paste-link.nemo_action b/paste-link.nemo_action new file mode 100644 index 0000000..6517d32 --- /dev/null +++ b/paste-link.nemo_action @@ -0,0 +1,111 @@ +[Nemo Action] + +############################################# +#### DEBUGGING: +#### +#### Run Nemo with the environment +#### variable NEMO_ACTION_VERBOSE +#### set to get useful log output +#### for debugging your actions +#### +#### i.e. $ nemo --quit +#### $ NEMO_ACTION_VERBOSE=1 nemo +############################################# + +# Whether this action is active. For troubleshooting. +# Optional - if this field is omitted, the action will be active +Active=true + +# Standard tokens that can be used in the Name, Comment (tooltip) and Exec fields: +# +# %U - insert URI list of selection +# %F - insert path list of selection +# %P - insert path of parent (current) directory +# %f or %N (deprecated) - insert display name of first selected file +# %p - insert display name of parent directory +# %D - insert device path of file (i.e. /dev/sdb1) + + +# The name to show in the menu, locale supported with standard desktop spec. +# **** REQUIRED **** +Name=Paste Link Here + +# Tool tip, locale supported (Appears in the status bar) +Comment=Paste File Path in clipboard as link in current directory + +# What to run. Enclose in < > to run an executable that resides in the actions folder. +# **** REQUIRED **** +Exec=<./clip2link.sh %P> + + +# Icon name to use in the menu - must be a theme icon name +Icon-Name=text-plain + +# Gtk Stock ID to use for the icon. Note if both Icon-name and Stock-Id are +# defined, the Stock-Id takes precedence. +#Stock-Id=gtk-cdrom + +# What type selection: [s]ingle, [m]ultiple, any, notnone, none (background click), or +# a number representing how many files must be selected to display. +# ****** REQUIRED ******* +Selection=none + +# What extensions to display on - this is an array, end with a semicolon +# Single entry options, ending in a semicolon: +# "dir" for directory selection +# "none" for no extension. +# "nodirs" for any selection, but not including directories. +# "any" for any file type, including directories. +# Individual specific extensions can be a semicolon-terminated list +# Extensions are NOT case sensitive. jpg will match JPG, jPg, jpg, etc.. +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +Extensions=dir;none + +# What mime-types to display on - this is an array, end with a semicolon +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +Mimetypes=text/plain; + +# Separator to use (if any) - add a string to insert between path/url entries +# in the exec line. Optional - if you leave this out, a space is inserted. +# Note you can have trailing spaces here. +#Separator=, + +# Quote type to use (if any) - enclose paths/urls with quotes. Optional - defaults +# to no quotes. +# Can be: single, double, backtick +#Quote=double + +# Dependencies - program executables required for this action to work. Nemo will +# Search in the path for these program(s) and not display the action if any are missing. +# You can also supply an absolute path to a file (i.e. /usr/lib/gvfs/gvfsd-archive) to check +# instead of or in addition to an executable in the path. +# This is an array, separate entries with semi-colon, and terminate with a semicolon. +#Dependencies=gedit/mnt/AllData/DGK/testfiletosend +; + +# Conditions - semicolon-separated array of special conditions: +# "desktop" current (parent) folder is desktop +# "removable" target (first selection) is removable +# "gsettings " is true +# "gsettings <[eq|ne|gt|lt]> " +# "dbus " exists + +#Conditions=desktop; + +# Escape Spaces - set to true to escape spaces in filenames and uris ($U, $F, $P, $D) +# +# Sometimes this may be preferred to getting raw filenames that must be enclosed in +# quotes. +# +# Optional - by default this is false + +EscapeSpaces=true + +# Run in terminal - set to true to execute the Exec line in a spawned terminal window. +# +# Generally if you use this you should not have Quotes defined, as that will be taken care +# of during converting the expanded command string into an arg vector. +# +# Optional - by default this is false + +#Terminal=false diff --git a/path2clip.sh b/path2clip.sh new file mode 100755 index 0000000..ddd72f8 --- /dev/null +++ b/path2clip.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# uncomment next two lines for debugging log file +# LINK_DIR=$(dirname "$1") +# exec 1> "$LINK_DIR"/link.log 2>&1 +echo The Link Path- $1 - was sent to clipboard +echo "$1" | /usr/bin/xclip -se c diff --git a/sample.nemo_action b/sample.nemo_action new file mode 100644 index 0000000..af5da94 --- /dev/null +++ b/sample.nemo_action @@ -0,0 +1,110 @@ +[Nemo Action] + +############################################# +#### DEBUGGING: +#### +#### Run Nemo with the environment +#### variable NEMO_ACTION_VERBOSE +#### set to get useful log output +#### for debugging your actions +#### +#### i.e. $ nemo --quit +#### $ NEMO_ACTION_VERBOSE=1 nemo +############################################# + +# Whether this action is active. For troubleshooting. +# Optional - if this field is omitted, the action will be active +Active=false + +# Standard tokens that can be used in the Name, Comment (tooltip) and Exec fields: +# +# %U - insert URI list of selection +# %F - insert path list of selection +# %P - insert path of parent (current) directory +# %f or %N (deprecated) - insert display name of first selected file +# %p - insert display name of parent directory +# %D - insert device path of file (i.e. /dev/sdb1) + + +# The name to show in the menu, locale supported with standard desktop spec. +# **** REQUIRED **** +Name=Edit File as Root + +# Tool tip, locale supported (Appears in the status bar) +Comment=Edit file as root. %N + +# What to run. Enclose in < > to run an executable that resides in the actions folder. +# **** REQUIRED **** +Exec=gksu gedit %F +#Exec= + +# Icon name to use in the menu - must be a theme icon name +Icon-Name=folder + +# Gtk Stock ID to use for the icon. Note if both Icon-name and Stock-Id are +# defined, the Stock-Id takes precedence. +#Stock-Id=gtk-cdrom + +# What type selection: [s]ingle, [m]ultiple, any, notnone, none (background click), or +# a number representing how many files must be selected to display. +# ****** REQUIRED ******* +Selection=s + +# What extensions to display on - this is an array, end with a semicolon +# Single entry options, ending in a semicolon: +# "dir" for directory selection +# "none" for no extension. +# "nodirs" for any selection, but not including directories. +# "any" for any file type, including directories. +# Individual specific extensions can be a semicolon-terminated list +# Extensions are NOT case sensitive. jpg will match JPG, jPg, jpg, etc.. +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +Extensions=any; + +# What mime-types to display on - this is an array, end with a semicolon +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +#Mimetypes=text/plain; + +# Separator to use (if any) - add a string to insert between path/url entries +# in the exec line. Optional - if you leave this out, a space is inserted. +# Note you can have trailing spaces here. +#Separator=, + +# Quote type to use (if any) - enclose paths/urls with quotes. Optional - defaults +# to no quotes. +# Can be: single, double, backtick +#Quote=double + +# Dependencies - program executables required for this action to work. Nemo will +# Search in the path for these program(s) and not display the action if any are missing. +# You can also supply an absolute path to a file (i.e. /usr/lib/gvfs/gvfsd-archive) to check +# instead of or in addition to an executable in the path. +# This is an array, separate entries with semi-colon, and terminate with a semicolon. +#Dependencies=gedit; + +# Conditions - semicolon-separated array of special conditions: +# "desktop" current (parent) folder is desktop +# "removable" target (first selection) is removable +# "gsettings " is true +# "gsettings <[eq|ne|gt|lt]> " +# "dbus " exists + +#Conditions=desktop; + +# Escape Spaces - set to true to escape spaces in filenames and uris ($U, $F, $P, $D) +# +# Sometimes this may be preferred to getting raw filenames that must be enclosed in +# quotes. +# +# Optional - by default this is false + +EscapeSpaces=true + +# Run in terminal - set to true to execute the Exec line in a spawned terminal window. +# +# Generally if you use this you should not have Quotes defined, as that will be taken care +# of during converting the expanded command string into an arg vector. +# +# Optional - by default this is false + +#Terminal=false diff --git a/send-by-mail.nemo_action b/send-by-mail.nemo_action new file mode 100644 index 0000000..d27af63 --- /dev/null +++ b/send-by-mail.nemo_action @@ -0,0 +1,7 @@ +[Nemo Action] +Name=Send by Email +Exec=/usr/bin/gnome-gmail -r %F +Icon-Name=mail-attachment-symbolic +Selection=NotNone +Extensions=nodirs; +Separator=/#/ diff --git a/smartgit.nemo_action b/smartgit.nemo_action new file mode 100644 index 0000000..dcf4af8 --- /dev/null +++ b/smartgit.nemo_action @@ -0,0 +1,100 @@ +[Nemo Action] + +############################################# +#### DEBUGGING: +#### +#### Run Nemo with the environment +#### variable NEMO_ACTION_VERBOSE +#### set to get useful log output +#### for debugging your actions +#### +#### i.e. $ nemo --quit +#### $ NEMO_ACTION_VERBOSE=1 nemo +############################################# + +# Whether this action is active. For troubleshooting. +# Optional - if this field is omitted, the action will be active +#Active=true + +# Standard tokens that can be used in the Name, Comment (tooltip) and Exec fields: +# +# %U - insert URI list of selection +# %F - insert path list of selection +# %P - insert path of parent (current) directory +# %f or %N (deprecated) - insert display name of first selected file +# %p - insert display name of parent directory +# %D - insert device path of file (i.e. /dev/sdb1) + + +# The name to show in the menu, locale supported with standard desktop spec. +# **** REQUIRED **** +Name=Smartgit Current Dir + +# Tool tip, locale supported (Appears in the status bar) +Comment=Start SmartGit with current directory + +# What to run. Enclose in < > to run an executable that resides in the actions folder. +# **** REQUIRED **** +#Exec=gedit %F +Exec=/opt/smartgit/bin/smartgit.sh %F + +# Icon name to use in the menu - must be a theme icon name +#Icon-Name=sublime-text + +# Gtk Stock ID to use for the icon. Note if both Icon-name and Stock-Id are +# defined, the Stock-Id takes precedence. +#Stock-Id=gtk-cdrom + +# What type selection: [s]ingle, [m]ultiple, any, notnone, none (background click), or +# a number representing how many files must be selected to display. +# ****** REQUIRED ******* +Selection=any + +# What extensions to display on - this is an array, end with a semicolon +# Single entry options, ending in a semicolon: +# "dir" for directory selection +# "none" for no extension. +# "nodirs" for any selection, but not including directories. +# "any" for any file type, including directories. +# Individual specific extensions can be a semicolon-terminated list +# Extensions are NOT case sensitive. jpg will match JPG, jPg, jpg, etc.. +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +Extensions=any; + +# What mime-types to display on - this is an array, end with a semicolon +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +#Mimetypes=text/plain; + +# Separator to use (if any) - add a string to insert between path/url entries +# in the exec line. Optional - if you leave this out, a space is inserted. +# Note you can have trailing spaces here. +#Separator=, + +# Quote type to use (if any) - enclose paths/urls with quotes. Optional - defaults +# to no quotes. +# Can be: single, double, backtick +#Quote=double + +# Dependencies - program executables required for this action to work. Nemo will +# Search in the path for these program(s) and not display the action if any are missing. +# You can also supply an absolute path to a file (i.e. /usr/lib/gvfs/gvfsd-archive) to check +# instead of or in addition to an executable in the path. +# This is an array, separate entries with semi-colon, and terminate with a semicolon. +Dependencies=/opt/bin/smartgit + +# Conditions - semicolon-separated array of special conditions: +# "desktop" current (parent) folder is desktop +# "removable" target (first selection) is removable +# "gsettings " is true +# "gsettings <[eq|ne|gt|lt]> " +# "dbus " exists + +#Conditions=desktop; + +# Escape Spaces - set to true to escape spaces in filenames and uris ($U, $F, $P, $D) +# +# Sometimes this may be preferred to getting raw filenames that must be enclosed in +# quotes. +# +# Optional - by default this is false +#EscapeSpaces=true diff --git a/vscode-selected.nemo_action b/vscode-selected.nemo_action new file mode 100644 index 0000000..926a0be --- /dev/null +++ b/vscode-selected.nemo_action @@ -0,0 +1,99 @@ +[Nemo Action] + +############################################# +#### DEBUGGING: +#### +#### Run Nemo with the environment +#### variable NEMO_ACTION_VERBOSE +#### set to get useful log output +#### for debugging your actions +#### +#### i.e. $ nemo --quit +#### $ NEMO_ACTION_VERBOSE=1 nemo +############################################# + +# Whether this action is active. For troubleshooting. +# Optional - if this field is omitted, the action will be active +#Active=true + +# Standard tokens that can be used in the Name, Comment (tooltip) and Exec fields: +# +# %U - insert URI list of selection +# %F - insert path list of selection +# %P - insert path of parent (current) directory +# %f or %N (deprecated) - insert display name of first selected file +# %p - insert display name of parent directory +# %D - insert device path of file (i.e. /dev/sdb1) + + +# The name to show in the menu, locale supported with standard desktop spec. +# **** REQUIRED **** +Name=Launch vscode with selected +# Tool tip, locale supported (Appears in the status bar) +Comment=Start VSCODE Editor with Selected Directory + +# What to run. Enclose in < > to run an executable that resides in the actions folder. +# **** REQUIRED **** +#Exec=gedit %F +Exec=/opt/bin/vscode %F + +# Icon name to use in the menu - must be a theme icon name +#Icon-Name=Atom-text + +# Gtk Stock ID to use for the icon. Note if both Icon-name and Stock-Id are +# defined, the Stock-Id takes precedence. +#Stock-Id=gtk-cdrom + +# What type selection: [s]ingle, [m]ultiple, any, notnone, none (background click), or +# a number representing how many files must be selected to display. +# ****** REQUIRED ******* +Selection=s + +# What extensions to display on - this is an array, end with a semicolon +# Single entry options, ending in a semicolon: +# "dir" for directory selection +# "none" for no extension. +# "nodirs" for any selection, but not including directories. +# "any" for any file type, including directories. +# Individual specific extensions can be a semicolon-terminated list +# Extensions are NOT case sensitive. jpg will match JPG, jPg, jpg, etc.. +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +Extensions=any; + +# What mime-types to display on - this is an array, end with a semicolon +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +#Mimetypes=text/plain; + +# Separator to use (if any) - add a string to insert between path/url entries +# in the exec line. Optional - if you leave this out, a space is inserted. +# Note you can have trailing spaces here. +#Separator=, + +# Quote type to use (if any) - enclose paths/urls with quotes. Optional - defaults +# to no quotes. +# Can be: single, double, backtick +#Quote=double + +# Dependencies - program executables required for this action to work. Nemo will +# Search in the path for these program(s) and not display the action if any are missing. +# You can also supply an absolute path to a file (i.e. /usr/lib/gvfs/gvfsd-archive) to check +# instead of or in addition to an executable in the path. +# This is an array, separate entries with semi-colon, and terminate with a semicolon. +Dependencies=/opt/bin/vscode; + +# Conditions - semicolon-separated array of special conditions: +# "desktop" current (parent) folder is desktop +# "removable" target (first selection) is removable +# "gsettings " is true +# "gsettings <[eq|ne|gt|lt]> " +# "dbus " exists + +#Conditions=desktop; + +# Escape Spaces - set to true to escape spaces in filenames and uris ($U, $F, $P, $D) +# +# Sometimes this may be preferred to getting raw filenames that must be enclosed in +# quotes. +# +# Optional - by default this is false +#EscapeSpaces=true diff --git a/vscode.nemo_action b/vscode.nemo_action new file mode 100644 index 0000000..b4aaf0f --- /dev/null +++ b/vscode.nemo_action @@ -0,0 +1,100 @@ +[Nemo Action] + +############################################# +#### DEBUGGING: +#### +#### Run Nemo with the environment +#### variable NEMO_ACTION_VERBOSE +#### set to get useful log output +#### for debugging your actions +#### +#### i.e. $ nemo --quit +#### $ NEMO_ACTION_VERBOSE=1 nemo +############################################# + +# Whether this action is active. For troubleshooting. +# Optional - if this field is omitted, the action will be active +#Active=true + +# Standard tokens that can be used in the Name, Comment (tooltip) and Exec fields: +# +# %U - insert URI list of selection +# %F - insert path list of selection +# %P - insert path of parent (current) directory +# %f or %N (deprecated) - insert display name of first selected file +# %p - insert display name of parent directory +# %D - insert device path of file (i.e. /dev/sdb1) + + +# The name to show in the menu, locale supported with standard desktop spec. +# **** REQUIRED **** +Name=Launch VSCODE Current Dir + +# Tool tip, locale supported (Appears in the status bar) +Comment=Start VSCODE Editor with current directory + +# What to run. Enclose in < > to run an executable that resides in the actions folder. +# **** REQUIRED **** +#Exec=gedit %F +Exec=/opt/bin/vscode %P + +# Icon name to use in the menu - must be a theme icon name +#Icon-Name=sublime-text + +# Gtk Stock ID to use for the icon. Note if both Icon-name and Stock-Id are +# defined, the Stock-Id takes precedence. +#Stock-Id=gtk-cdrom + +# What type selection: [s]ingle, [m]ultiple, any, notnone, none (background click), or +# a number representing how many files must be selected to display. +# ****** REQUIRED ******* +Selection=any + +# What extensions to display on - this is an array, end with a semicolon +# Single entry options, ending in a semicolon: +# "dir" for directory selection +# "none" for no extension. +# "nodirs" for any selection, but not including directories. +# "any" for any file type, including directories. +# Individual specific extensions can be a semicolon-terminated list +# Extensions are NOT case sensitive. jpg will match JPG, jPg, jpg, etc.. +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +Extensions=any; + +# What mime-types to display on - this is an array, end with a semicolon +# **** EITHER EXTENSIONS OR MIMETYPES IS REQUIRED ***** +#Mimetypes=text/plain; + +# Separator to use (if any) - add a string to insert between path/url entries +# in the exec line. Optional - if you leave this out, a space is inserted. +# Note you can have trailing spaces here. +#Separator=, + +# Quote type to use (if any) - enclose paths/urls with quotes. Optional - defaults +# to no quotes. +# Can be: single, double, backtick +#Quote=double + +# Dependencies - program executables required for this action to work. Nemo will +# Search in the path for these program(s) and not display the action if any are missing. +# You can also supply an absolute path to a file (i.e. /usr/lib/gvfs/gvfsd-archive) to check +# instead of or in addition to an executable in the path. +# This is an array, separate entries with semi-colon, and terminate with a semicolon. +Dependencies=/opt/bin/vscode; + +# Conditions - semicolon-separated array of special conditions: +# "desktop" current (parent) folder is desktop +# "removable" target (first selection) is removable +# "gsettings " is true +# "gsettings <[eq|ne|gt|lt]> " +# "dbus " exists + +#Conditions=desktop; + +# Escape Spaces - set to true to escape spaces in filenames and uris ($U, $F, $P, $D) +# +# Sometimes this may be preferred to getting raw filenames that must be enclosed in +# quotes. +# +# Optional - by default this is false +#EscapeSpaces=true