mirror of https://github.com/japl-lang/jale.git
Created nimble package
This commit is contained in:
parent
8d1cb21b03
commit
64dd2164ba
|
@ -1,10 +1,10 @@
|
|||
import ../plugin/defaults
|
||||
import ../editor
|
||||
import ../strutils
|
||||
import ../templates
|
||||
import ../multiline
|
||||
import jale/plugin/defaults
|
||||
import jale/editor
|
||||
import jale/templates
|
||||
import jale/multiline
|
||||
|
||||
import terminal
|
||||
import strutils
|
||||
import os
|
||||
|
||||
eraseScreen()
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
import ../plugin/defaults
|
||||
import ../editor
|
||||
import ../strutils
|
||||
import ../templates
|
||||
import jale/plugin/defaults
|
||||
import jale/editor
|
||||
import jale/templates
|
||||
|
||||
import strutils
|
||||
|
||||
var keep = true
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import ../plugin/defaults
|
||||
import ../plugin/history
|
||||
import ../plugin/editor_history
|
||||
import ../editor
|
||||
import ../strutils
|
||||
import ../templates
|
||||
import jale/plugin/defaults
|
||||
import jale/plugin/history
|
||||
import jale/plugin/editor_history
|
||||
import jale/editor
|
||||
import jale/templates
|
||||
|
||||
import strutils
|
||||
|
||||
var keep = true
|
||||
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
# Package
|
||||
|
||||
version = "0.1.0"
|
||||
author = "Productive2"
|
||||
description = "Just Another Line Editor"
|
||||
license = "MIT"
|
||||
srcDir = "src"
|
||||
|
||||
# Dependencies
|
||||
|
||||
requires "nim >= 1.4.2"
|
|
@ -153,5 +153,6 @@ proc read*(editor: LineEditor): string =
|
|||
|
||||
# move cursor to end
|
||||
editor.moveCursorToEnd()
|
||||
result = editor.content.getContent()
|
||||
if editor.state == esFinishing:
|
||||
result = editor.content.getContent()
|
||||
editor.reset()
|
|
@ -0,0 +1 @@
|
|||
switch("path", "$projectDir/../src")
|
|
@ -0,0 +1,11 @@
|
|||
# This is just an example to get you started. You may wish to put all of your
|
||||
# tests into a single file, or separate them into multiple `test1`, `test2`
|
||||
# etc. files (better names are recommended, just make sure the name starts with
|
||||
# the letter 't').
|
||||
#
|
||||
# To run these tests, simply execute `nimble test`.
|
||||
|
||||
import unittest
|
||||
|
||||
test "can test":
|
||||
check true
|
Loading…
Reference in New Issue