From 9f4e7070584cb4188c984117645a379537c6376a Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Thu, 28 Mar 2024 14:23:46 -0500 Subject: [PATCH] editors.notepadnext: add support for NotepadNext it doesn't seem to open to line numbers in files --- basis/editors/notepadnext/authors.txt | 1 + basis/editors/notepadnext/notepadnext.factor | 29 ++++++++++++++++++++ basis/editors/notepadnext/summary.txt | 1 + 3 files changed, 31 insertions(+) create mode 100644 basis/editors/notepadnext/authors.txt create mode 100644 basis/editors/notepadnext/notepadnext.factor create mode 100644 basis/editors/notepadnext/summary.txt diff --git a/basis/editors/notepadnext/authors.txt b/basis/editors/notepadnext/authors.txt new file mode 100644 index 0000000000..7c1b2f2279 --- /dev/null +++ b/basis/editors/notepadnext/authors.txt @@ -0,0 +1 @@ +Doug Coleman diff --git a/basis/editors/notepadnext/notepadnext.factor b/basis/editors/notepadnext/notepadnext.factor new file mode 100644 index 0000000000..66157c417f --- /dev/null +++ b/basis/editors/notepadnext/notepadnext.factor @@ -0,0 +1,29 @@ +! Copyright (C) 2024 Doug Coleman. +! See https://factorcode.org/license.txt for BSD license. +USING: editors io.pathnames io.standard-paths kernel make system ; +IN: editors.notepadnext + +SINGLETON: notepadnext + +HOOK: find-notepadnext-path os ( -- path ) + +M: macosx find-notepadnext-path + "com.yourcompany.NotepadNext" find-native-bundle [ + "Contents/MacOS/NotepadNext" append-path + ] [ + f + ] if* ; + +M: windows find-notepadnext-path + { "Notepad Next" } "NotepadNext.exe" find-in-applications + [ "NotepadNext.exe" ] unless* ; + +M: linux find-notepadnext-path + "NotepadNext" find-in-path ; + +M: notepadnext editor-command + '[ + find-notepadnext-path , + _ , + _ drop ! "-n" , _ , + ] { } make ; diff --git a/basis/editors/notepadnext/summary.txt b/basis/editors/notepadnext/summary.txt new file mode 100644 index 0000000000..4caba5d176 --- /dev/null +++ b/basis/editors/notepadnext/summary.txt @@ -0,0 +1 @@ +NotepadNext editor integration -- 2.34.1