Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions open-in-notepad++@RutarAndriy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# v1.0

- Initial release
11 changes: 11 additions & 0 deletions open-in-notepad++@RutarAndriy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Open in Notepad++

Opens a file in Notepad++ via Wine. Supports x32 and x64 versions of the program.
Notepad++ should be installed in the standard directory (`drive_c/Program Files/Notepad++` for x64 version or `drive_c/Program Files (x86)/Notepad++` for x32 version) and with the standard wine-prefix: `~/.wine`

## Dependencies

The following packages must be installed:

* `xdg-utils` for running `xdg-icon-resource` command
* `wine` for launch notepad++.exe
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash

# Перевірка наявності піктограми notepad++
# Якщо піктограми не існує - створюємо її
if [[ ! -f ~/.local/share/icons/hicolor/16x16/apps/notepad++.png ]]
then
# Отримуємо шлях до виконуваного файлу
dir="$(dirname $0)"
# Переходимо у необхідну директорію
cd "$dir""/icons/"
# Додаємо піктограми різних розмірів
for size in 16 32 48 64 128 256; do
xdg-icon-resource install --novendor --size $size $size"x"$size.png notepad++
done
fi

# Перевірка наявності інстальованого Notepad++
if [[ -f ~/.wine/drive_c/Program\ Files/Notepad++/notepad++.exe ]]
then
# Інстальовано 64-бітну версію програми
exit 0
elif [[ -f ~/.wine/drive_c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe ]]
then
# Інстальовано 32-бітну версію програми
exit 0
else
# Програму не інстальовано
exit 1
fi

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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": "Opens a file in Notepad++ via Wine",
"uuid": "open-in-notepad++@RutarAndriy",
"name": "Open in Notepad++",
"author": "RutarAndriy",
"version": "1.0"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# Інстальовано 64-бітну версію програми
if [[ -f ~/.wine/drive_c/Program\ Files/Notepad++/notepad++.exe ]]
then
wine ~/.wine/drive_c/Program\ Files/Notepad++/notepad++.exe "$1"

# Інстальовано 32-бітну версію програми
else
wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe "$1"

fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# OPEN IN NOTEPAD++
# This file is put in the public domain.
# RutarAndriy, 2025
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: open-in-notepad++@RutarAndriy 1.0\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-actions/"
"issues\n"
"POT-Creation-Date: 2025-03-01 15:14+0200\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 "Opens a file in Notepad++ via Wine"
msgstr ""

#. metadata.json->name
#. [email protected]_action.in->Name
msgid "Open in Notepad++"
msgstr ""

#. [email protected]_action.in->Comment
msgid "Open %f in Notepad++"
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# OPEN IN NOTEPAD++
# This file is put in the public domain.
# RutarAndriy, 2023
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: open-in-notepad++@RutarAndriy 1.0\n"
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-actions/"
"issues\n"
"POT-Creation-Date: 2025-03-01 15:14+0200\n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: uk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 3.4.2\n"

#. metadata.json->description
msgid "Opens a file in Notepad++ via Wine"
msgstr "Відкрити файл у Notepad++ через Wine"

#. metadata.json->name
#. [email protected]_action.in->Name
msgid "Open in Notepad++"
msgstr "Відкрити у Notepad++"

#. [email protected]_action.in->Comment
msgid "Open %f in Notepad++"
msgstr "Відкрити %f у Notepad++"
3 changes: 3 additions & 0 deletions open-in-notepad++@RutarAndriy/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"author": "RutarAndriy"
}
9 changes: 9 additions & 0 deletions open-in-notepad++@RutarAndriy/[email protected]_action.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Nemo Action]
_Name=Open in Notepad++
_Comment=Open %f in Notepad++
Exec=<open-in-notepad++@RutarAndriy/open-in-notepad++.sh %F>
Icon-Name=notepad++
Conditions=exec <open-in-notepad++@RutarAndriy/check-instalation.sh>;
Selection=s
Extensions=nodirs;
Dependencies=xdg-icon-resource;wine;