Commit Graph

764 Commits (d4084a82ba56aac05278b628c07d3d061d06ee85)

Author SHA1 Message Date
sammyette 2cf979401b
feat: use dataDir in requirePaths 2021-10-17 23:14:18 -04:00
sammyette 87fcdd3c10
fix: remove / at the end of xdg data path 2021-10-17 23:13:53 -04:00
sammyette 9f523ba3c0
chore: fix merge conflict 2021-10-17 23:10:20 -04:00
sammyette e08e3b9b94
fix: require paths 2021-10-17 23:09:48 -04:00
sammyette 00f41a95bc
fix: use dataDir var in requirePaths 2021-10-17 23:00:38 -04:00
sammyette b1f4efd9ac
docs: remove links section 2021-10-17 22:43:58 -04:00
sammyette 212a52fd04
docs: fix link to nixos install info 2021-10-17 22:36:42 -04:00
legendofmiracles 0c7fadbaad
docs: add nix installation instructions (#78) 2021-10-17 22:34:43 -04:00
sammyette a8ecd44efb
docs: add changelog for 0.6.0 2021-10-17 19:43:28 -04:00
sammyette ce4ba48da0
feat: pass command string to command.exit, fix aliases with sh interp 2021-10-17 19:37:37 -04:00
sammyette 7a4cbbddff
fix(ansikit)!: return hyperlink ascii code instead of printing it 2021-10-17 19:19:43 -04:00
sammyette 72194898ba
fix: add back inspect 2021-10-17 18:51:44 -04:00
sammyette 3bd71828fa
fix: temporarily remove inspect 2021-10-17 18:51:25 -04:00
sammyette 7615e56ffd
feat: add cdr command
the cdr command will change to <index> directory from a list of 10
most recently moved to directories. this only works for the interactive
cd command, and not the fs.cd function.
you can find the list of recent directories with `cdr list`.
usage: `cdr <index>`
the `cdr help` command also gives this bit of info
2021-10-17 18:42:36 -04:00
sammyette d51ae7d310
chore: update succulent 2021-10-17 18:39:14 -04:00
sammyette 3042fce50e
fix: cleanup since returned tables from functions aren't userdata anymore 2021-10-17 18:10:06 -04:00
sammyette 9b6ca1faf4
style: make modules underlined and colored 2021-10-17 18:09:42 -04:00
sammyette b97e1efa8d
fix(cd): correctly report error 2021-10-17 17:55:41 -04:00
sammyette 86013e6576
fix: use RaiseError function from gopher-lua instead of Error 2021-10-17 17:55:21 -04:00
sammyette 51a68e24cf
chore: update succulent to fixed ver 2021-10-17 17:54:52 -04:00
sammyette c95fb05fbf
fix: dont use luar to pass command args to commander 2021-10-17 17:46:26 -04:00
sammyette 006f0f986e
fix(fs): stop using luar, make readdir return a proper table 2021-10-17 17:26:29 -04:00
sammyette 7769d68859
style: use green instead of blue in doc command 2021-10-17 17:23:35 -04:00
sammyette 586566c595
chore: make changelog.md in uppercase 2021-10-17 17:17:53 -04:00
sammyette 1e76b1501f
fix: add back dataDir field to hilbish module 2021-10-17 17:16:49 -04:00
sammyette 7d9d3e4d72
style: make highlighted parts of docs underlined blue in doc command 2021-10-17 17:16:27 -04:00
sammyette 37610ad8b0
fix: remove extra newline on exit 2021-10-17 16:47:04 -04:00
sammyette 6271a7fc18
fix: use succulent in preload, remove string split from preload 2021-10-17 16:32:04 -04:00
sammyette ad698b1a03
chore: bump version 2021-10-17 16:31:43 -04:00
sammyette 1b79abdab7
feat: add succulent lib 2021-10-17 16:31:31 -04:00
sammyette 7a3d9022e9
fix: add commonRequirePaths and linuxUserPaths to avoid repetition with custom require paths 2021-10-17 16:27:14 -04:00
sammyette 3d53e85fc9
feat: add terminal package
a simple, smaller but lower level terminal library, mainly used to set
raw mode. functions:
size, save and restore current state, set raw mode. documentation is in
docs/terminal.txt or `doc terminal` in hilbish
2021-10-17 16:10:57 -04:00
sammyette 85b347d5f3
feat(ansikit): add link function 2021-10-17 13:23:58 -04:00
sammyette 6b065dc035
fix(fs): make stat better
return a table with 4 values: name, size, mode and isDir
name -> name of path
size -> size (obviously)
mode -> permissions mode in a string as octal format
isDir -> whether path is a directory
2021-10-17 12:56:45 -04:00
sammyette df70082a81
feat: add doc command (closes #76)
the `doc` command is a way to see hilbish documentation from
in the shell. for usage, just run the command
2021-10-16 15:42:55 -04:00
sammyette 4dd6db54fe
fix: stop using setField wrapper 2021-10-16 15:40:16 -04:00
sammyette afd999a7b0
docs: add docs for functions 2021-10-16 15:38:49 -04:00
sammyette 54635072f6
fix(docgen): use better perm mask for output files and folder 2021-10-16 15:38:17 -04:00
sammyette bd3e9fdca6
docs: make linebreaks to descriptions for better alignment 2021-10-16 15:36:30 -04:00
sammyette 784e611272
chore: remove unused setField func 2021-10-16 15:33:57 -04:00
sammyette 77b3dac1b1
build: add docs folder to makefile 2021-10-16 15:33:22 -04:00
sammyette 3b97b22f10
feat: add hilbish.dataDir var 2021-10-16 13:51:09 -04:00
sammyette 20acfad2c2
fix(fs)!: handle mkdir error, change error return for cd
breaking change: cd now returns a message instead of a code to indicate the error.
any error in mkdir is now handled
2021-10-16 13:49:01 -04:00
sammyette 539a39f83a
feat: add fs.readdir function
it takes 1 argument: the directory to read.
2021-10-16 13:47:39 -04:00
sammyette 452335d84a
fix: change luaErr to return string instead of code 2021-10-16 13:47:09 -04:00
sammyette 3cafbe8c4f
docs: document `hilbish` module functions, xdg vars, and add descriptions for modules 2021-10-16 12:41:10 -04:00
sammyette a2f54b627b
feat: output docs to a docs folder, allow multiline docs 2021-10-16 12:38:46 -04:00
sammyette 71b72bbdd4
chore: move comments below package declaration 2021-10-16 11:31:01 -04:00
sammyette 1689d80721
feat: add docgen program, document almost all hilbish functions 2021-10-16 10:21:05 -04:00
sammyette ecbcf9a968
feat: add docgen program 2021-10-15 23:58:56 -04:00