Angelo-F
22f33324e0
docs: add changelog.md ( #72 )
...
* docs: add changelog.md
* fix: Fix formatting in a section
* fix: changelog.md - remove stray line (l143) and bullet point (l34)
2021-10-09 11:15:25 -04:00
sammyette
cff7827ace
fix: trim extra whitespace from cd args
...
this fixed an issue with `cd -` not working
2021-10-08 09:49:57 -04:00
L3af
400dd2944d
feat: respect xdg directories ( #71 )
...
* feat: respect xdg directories
* fix: move xdg vars to table
Co-authored-by: L3af <ohhaon@icloud.com>
2021-10-07 20:58:07 -04:00
sammyette
144c082d3e
fix: change order of require paths
...
prevents using old outdated version of lunacolors if it isnt deleted
2021-09-30 00:15:35 -04:00
sammyette
2c10be0102
fix: add new require path
2021-09-30 00:01:03 -04:00
sammyette
37bc018a13
chore: update lunacolors
2021-09-29 23:56:16 -04:00
sammyette
630c0b0356
fix: dont trim spaces on cd dir args
2021-09-29 22:32:37 -04:00
sammyette
afcc6fe63a
fix: handle error case of target in fs.cd not being a dir ( closes #66 )
2021-09-28 22:55:08 -04:00
sammyette
a6a3962044
fix: correct url to github repo and add newline after error
2021-09-28 22:54:04 -04:00
sammyette
bc4e0f835f
fix: revert "fix: reuse sh runner"
...
This reverts commit 822b2876e9
.
this broke a few things with the shell so probably shouldnt do this yet
2021-09-25 22:46:06 -04:00
sammyette
c95b0b55be
fix: runtime errors on linux
...
this fixes out of bounds error since we tried to split the username
for '\' which is only valid on windows, so i added it for windows only
2021-09-25 21:39:06 -04:00
sammyette
7c815022a9
chore: merge from dev
2021-09-18 22:49:33 -04:00
sammyette
2ef2998279
fix: make timeout() blocking
...
may or may not be temporary
2021-09-18 22:48:28 -04:00
sammyette
196526cc6a
fix: rename unix vars to linux
2021-07-08 17:55:19 -07:00
sammyette
5d78a0c574
feat: add compile vars for windows
2021-07-08 17:49:51 -07:00
sammyette
a3cc8160d3
fix: trim off hostname in %u verb for windows
2021-07-08 03:44:57 -07:00
sammyette
4caeb7ec91
feat: replace ~ in preloadPath and sampleConfPath with homedir
2021-07-08 03:44:11 -07:00
sammyette
822b2876e9
fix: reuse sh runner
...
this makes it so env variables persist, and some other stuff
builtin cd actually works now :]
2021-06-20 21:48:07 -04:00
sammyette
2b5e65e47a
chore: bump version
2021-06-15 19:33:51 -04:00
sammyette
9dda3cb372
feat: add ~/.config/hilbish to require path
2021-06-15 19:17:56 -04:00
sammyette
e5a0f627b8
fix: use hilbish.home for require paths
2021-06-15 19:16:22 -04:00
sammyette
805eefcd17
fix: use hilbish.home instead of home env var
2021-06-14 18:12:12 -04:00
sammyette
eab3f27ebf
fix: throw cd hook only after changing directory
2021-06-14 18:11:07 -04:00
sammyette
30ffe9cab0
fix: handle error before getting commander exit code
...
this fixes a register underflow issue if a commander causes an error
2021-06-14 18:02:44 -04:00
sammyette
36ea20b550
fix: aliases in sh interp exec handler
2021-06-12 11:52:56 -04:00
sammyette
81f7b77b8b
docs: fix description of -l flag
2021-06-12 10:49:22 -04:00
sammyette
e6c4c32bd7
feat: handle -h option
2021-06-12 10:48:57 -04:00
sammyette
b974ada64e
fix: comment out unused module
2021-06-12 10:43:13 -04:00
sammyette
7e5f9e9541
fix: remove debug logging
2021-06-12 10:41:51 -04:00
sammyette
a413b28f2a
fix: define deregister function in commander module
2021-06-12 10:32:48 -04:00
sammyette
26eee56c8b
feat: add commander.deregister function
...
simply deregisters/removes a lua defined command
2021-06-12 10:30:47 -04:00
sammyette
fb04322844
feat: add option for fs.mkdir to make recursive
2021-06-12 09:31:42 -04:00
sammyette
cd06c61195
chore: bump version
2021-06-11 23:59:00 -04:00
sammyette
f594d48790
fix: print error in interval func instead of panic
2021-06-11 23:54:18 -04:00
sammyette
a4dbfbf4bb
feat: add hilbish.home
...
`hilbish.home` is the user's home directory path
this is a cross platform variable that works instead of using
`$HOME` (which isnt set in windows cmd, i think)
2021-06-11 21:49:28 -04:00
sammyette
efc956a04c
fix: cleanup, store lua commands in map
2021-06-11 21:37:52 -04:00
sammyette
1e1662a6b2
feat: add interval function
...
interval(func, time)
works exactly the same as `setInterval` in javascript
runs `func` in an interval of `time` milliseconds
2021-06-11 21:21:41 -04:00
sammyette
fe3df8c66e
feat: add timeout function
...
timeout(func, time)
works exactly like the `setTimeout` function in javascript
runs `func` after a period of `time` in milliseconds
2021-06-11 19:40:08 -04:00
sammyette
419e327d95
fix: prompt for new input on error with ContinuePrompt
...
basically, dont disregard the error we get and dont return previous
input. now we try to prompt for new input without running the
previous if the function got an error
2021-06-11 18:26:34 -04:00
sammyette
7a8df8b9f2
revert: fix: return previous input on continue input error
...
This reverts commit 5b03b3cef4
.
we shouldn't return this just to fix the panic,
instead just handle the error
2021-06-11 18:25:24 -04:00
sammyette
5b03b3cef4
fix: return previous input on continue input error
...
this is basically 72973eade7
but it actually works and doesnt break everything
if an error occurred with the ContinuePrompt function (in this case,
the error is simply EOL/ctrl d) then return previous input alone
2021-06-11 18:08:31 -04:00
sammyette
03b98bdd26
revert: fix: panic on ctrl d on continued input
...
This reverts commit 72973eade7
.
i'm kinda a bit dumb
this fix broke basically everything else that used the splitInput
function
2021-06-11 18:03:52 -04:00
sammyette
72973eade7
fix: panic on ctrl d on continued input
...
basically when a person did the continue prompt (input ending with `\`)
and exited with ctrl d it caused a panic
this was the simplest way to fix that
2021-06-11 17:58:35 -04:00
sammyette
b3a28b067c
style: use camel case for var name
2021-06-10 06:29:35 -04:00
sammyette
edcc1b39f0
docs: add todo to lua.go
2021-06-09 20:43:01 -04:00
sammyette
646cb93dec
feat: support comptime sample conf declaration
2021-06-09 20:33:30 -04:00
sammyette
13dc0cd857
feat: support comptime config dir declaration
2021-06-09 20:30:53 -04:00
sammyette
792ce996d3
fix: return 0 exit code when cd with noarg instead of throwing hook explicitly
2021-06-09 20:30:12 -04:00
sammyette
95dee1f4dd
fix: check aliases before going to sh interp
2021-06-09 19:16:08 -04:00
sammyette
14064eceda
chore: cleanup and remove extra spaces
2021-06-09 18:41:37 -04:00