]> gitweb.factorcode.org Git - factor.git/commitdiff
editors.kakoune: moving from extra to basis
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 5 Jan 2023 20:42:43 +0000 (12:42 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 5 Jan 2023 20:42:43 +0000 (12:42 -0800)
basis/editors/kakoune/README.md [new file with mode: 0644]
basis/editors/kakoune/authors.txt [new file with mode: 0644]
basis/editors/kakoune/kakoune-docs.factor [new file with mode: 0644]
basis/editors/kakoune/kakoune.factor [new file with mode: 0644]
basis/editors/kakoune/tags.txt [new file with mode: 0644]
extra/editors/kakoune/README.md [deleted file]
extra/editors/kakoune/authors.txt [deleted file]
extra/editors/kakoune/kakoune-docs.factor [deleted file]
extra/editors/kakoune/kakoune.factor [deleted file]
extra/editors/kakoune/tags.txt [deleted file]

diff --git a/basis/editors/kakoune/README.md b/basis/editors/kakoune/README.md
new file mode 100644 (file)
index 0000000..58c7dff
--- /dev/null
@@ -0,0 +1,5 @@
+# editors.kakoune
+
+An editor plugin vocabulary that aims to provide support for kakoune.
+
+Will probably come with syntax highlighting.
\ No newline at end of file
diff --git a/basis/editors/kakoune/authors.txt b/basis/editors/kakoune/authors.txt
new file mode 100644 (file)
index 0000000..71ef5b3
--- /dev/null
@@ -0,0 +1 @@
+Raghu Ranganathan
diff --git a/basis/editors/kakoune/kakoune-docs.factor b/basis/editors/kakoune/kakoune-docs.factor
new file mode 100644 (file)
index 0000000..99ea404
--- /dev/null
@@ -0,0 +1,30 @@
+! Copyright (C) 2022 Raghu Ranganathan.
+! See http://factorcode.org/license.txt for BSD license.
+USING: help.markup help.syntax editors ;
+IN: editors.kakoune
+
+HELP: actual-kak-path
+{ $values
+    { "path" "a pathname string" }
+}
+{ $description "Pushes the path to kakoune recognized by factor." } ;
+
+HELP: find-kak-path
+{ $values
+    { "path" "a pathname string" }
+}
+{ $description "A word which finds kakoune in your unix system's PATH variable." } ;
+
+HELP: kak-path
+{ $var-description "Set this variable to a sequence of strings that indicate the command to be run when factor wants to invoke kakoune. For example, on the author's system, this is " { $snippet "{ \"alacritty\" \"-e\" \"kak\" }" } } ;
+
+HELP: kakoune
+{ $class-description "The editor class for kakoune. To switch to kakoune as your primary editor, you can set " { $link editor-class } " to this singleton class." } ;
+
+ARTICLE: "editors.kakoune" "Kakoune support"
+"The " { $link kak-path } " variable contains the name of the kak executable. The default " { $link kak-path } " is " { $snippet "\"kak\"" } ". Which is not very useful, as it starts kakoune in the same terminal where you started factor."
+$nl
+"You can install an editor plugin for kakoune at " { $url "https://github.com/razetime/kakoune-factor" }
+;
+
+ABOUT: "editors.kakoune"
diff --git a/basis/editors/kakoune/kakoune.factor b/basis/editors/kakoune/kakoune.factor
new file mode 100644 (file)
index 0000000..92e2821
--- /dev/null
@@ -0,0 +1,29 @@
+USING: editors io.standard-paths kernel make math.parser
+namespaces sequences strings ;
+IN: editors.kakoune
+
+SINGLETON: kakoune
+
+MIXIN: kak-base
+
+INSTANCE: kakoune kak-base
+
+editor-class [ kakoune ] initialize
+
+SYMBOL: kak-path
+
+HOOK: find-kak-path editor-class ( -- path )
+
+M: kak-base find-kak-path "kak" ?find-in-path ;
+
+: actual-kak-path ( -- path )
+    \ kak-path get [ find-kak-path ] unless* ;
+
+M: kak-base editor-command
+    [
+        actual-kak-path dup string? [ , ] [ % ] if
+        number>string "+" prepend ,
+        ,
+    ] { } make  ;
+
+M: kak-base editor-detached? t ;
diff --git a/basis/editors/kakoune/tags.txt b/basis/editors/kakoune/tags.txt
new file mode 100644 (file)
index 0000000..19d8eb1
--- /dev/null
@@ -0,0 +1,2 @@
+editor
+terminal
diff --git a/extra/editors/kakoune/README.md b/extra/editors/kakoune/README.md
deleted file mode 100644 (file)
index 58c7dff..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-# editors.kakoune
-
-An editor plugin vocabulary that aims to provide support for kakoune.
-
-Will probably come with syntax highlighting.
\ No newline at end of file
diff --git a/extra/editors/kakoune/authors.txt b/extra/editors/kakoune/authors.txt
deleted file mode 100644 (file)
index 71ef5b3..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Raghu Ranganathan
diff --git a/extra/editors/kakoune/kakoune-docs.factor b/extra/editors/kakoune/kakoune-docs.factor
deleted file mode 100644 (file)
index 99ea404..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-! Copyright (C) 2022 Raghu Ranganathan.
-! See http://factorcode.org/license.txt for BSD license.
-USING: help.markup help.syntax editors ;
-IN: editors.kakoune
-
-HELP: actual-kak-path
-{ $values
-    { "path" "a pathname string" }
-}
-{ $description "Pushes the path to kakoune recognized by factor." } ;
-
-HELP: find-kak-path
-{ $values
-    { "path" "a pathname string" }
-}
-{ $description "A word which finds kakoune in your unix system's PATH variable." } ;
-
-HELP: kak-path
-{ $var-description "Set this variable to a sequence of strings that indicate the command to be run when factor wants to invoke kakoune. For example, on the author's system, this is " { $snippet "{ \"alacritty\" \"-e\" \"kak\" }" } } ;
-
-HELP: kakoune
-{ $class-description "The editor class for kakoune. To switch to kakoune as your primary editor, you can set " { $link editor-class } " to this singleton class." } ;
-
-ARTICLE: "editors.kakoune" "Kakoune support"
-"The " { $link kak-path } " variable contains the name of the kak executable. The default " { $link kak-path } " is " { $snippet "\"kak\"" } ". Which is not very useful, as it starts kakoune in the same terminal where you started factor."
-$nl
-"You can install an editor plugin for kakoune at " { $url "https://github.com/razetime/kakoune-factor" }
-;
-
-ABOUT: "editors.kakoune"
diff --git a/extra/editors/kakoune/kakoune.factor b/extra/editors/kakoune/kakoune.factor
deleted file mode 100644 (file)
index 92e2821..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-USING: editors io.standard-paths kernel make math.parser
-namespaces sequences strings ;
-IN: editors.kakoune
-
-SINGLETON: kakoune
-
-MIXIN: kak-base
-
-INSTANCE: kakoune kak-base
-
-editor-class [ kakoune ] initialize
-
-SYMBOL: kak-path
-
-HOOK: find-kak-path editor-class ( -- path )
-
-M: kak-base find-kak-path "kak" ?find-in-path ;
-
-: actual-kak-path ( -- path )
-    \ kak-path get [ find-kak-path ] unless* ;
-
-M: kak-base editor-command
-    [
-        actual-kak-path dup string? [ , ] [ % ] if
-        number>string "+" prepend ,
-        ,
-    ] { } make  ;
-
-M: kak-base editor-detached? t ;
diff --git a/extra/editors/kakoune/tags.txt b/extra/editors/kakoune/tags.txt
deleted file mode 100644 (file)
index 19d8eb1..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-editor
-terminal