From 001ba14378638f1f1344f9bd62c9252f5d410ad7 Mon Sep 17 00:00:00 2001 From: Nick Paul Date: Wed, 9 Aug 2017 16:26:48 -0400 Subject: [PATCH] Update readme, fix no args acorn() --- .gitignore | 1 + README.md | 4 ++-- src/Acorn.jl | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 41e2549..0724242 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.jl.cov *.jl.*.cov *.jl.mem +README.html diff --git a/README.md b/README.md index 105110b..691e007 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ `Acorn.jl` is a small text editor written purely in julia. -**Note**: This projects was written to learn more about and demonstrate julia as a general purpose language. It was not originally intended to be a practical solution to editing text within the REPL (considering one can just type `;vim` for a feature complete text editor in the REPL). +**Note**: This project was written to learn more about and demonstrate julia as a general purpose language, it was not originally intended to be a practical solution to editing text within the REPL (considering one can just type `;vim` for a feature complete text editor in the REPL). ![Basic Demo](http://npaul.co/files/Acorn_basic_demo.gif) @@ -89,7 +89,7 @@ Acorn currently supports the following settings: ## Commands -Commands are easy to create and allow for greater editor usability. To create your own command, create a julia file in the `cmds` folder and name it after your command. Then include your file in the Acorn module. Below is an example definition of the command `sample`. For more examples, see the `cmds/` folder. If you have written a command that you would like to see implemented in Acorn, feel free to send a pull request. +Commands are easy to create and allow for greater editor usability. To create your own command, create a julia file in the `cmds` folder, name it after your command, and include it in the Acorn module. Below is an example definition of the command `sample`. For more examples, see the `cmds/` folder. If you have written a command that you would like to see implemented in Acorn, feel free to send a pull request. ### `cmds/sample.jl` diff --git a/src/Acorn.jl b/src/Acorn.jl index 7f3692c..ad1ea06 100644 --- a/src/Acorn.jl +++ b/src/Acorn.jl @@ -52,6 +52,8 @@ function acorn() if length(ARGS) > 0 filename = ARGS[1] acorn(filename, rel=false) + else + println("No filename detected.") end end