1 ! Copyright (C) 2024 Doug Coleman.
2 ! See https://factorcode.org/license.txt for BSD license.
3 USING: editors io.pathnames io.standard-paths kernel make system ;
4 IN: editors.notepadnext
8 HOOK: find-notepadnext-path os ( -- path )
10 M: macosx find-notepadnext-path
11 "com.yourcompany.NotepadNext" find-native-bundle [
12 "Contents/MacOS/NotepadNext" append-path
17 M: windows find-notepadnext-path
18 { "Notepad Next" } "NotepadNext.exe" find-in-applications
19 [ "NotepadNext.exe" ] unless* ;
21 M: linux find-notepadnext-path
22 "NotepadNext" find-in-path ;
24 M: notepadnext editor-command
26 find-notepadnext-path ,