TorchedSammy
2a71fb0075
fix!: change xdg config file to init.lua
2021-12-06 15:42:04 -04:00
TorchedSammy
51b1219003
feat(bait): add catchOnce function
2021-12-04 17:59:19 -04:00
TorchedSammy
dd45766bae
style: dont redeclare function param, just assign
2021-12-04 17:56:45 -04:00
TorchedSammy
144e158473
chore: remove unused function param
2021-12-04 17:56:11 -04:00
TorchedSammy
dedb8cbf76
chore: make typ a local
2021-12-04 17:54:04 -04:00
TorchedSammy
284d4e01a3
chore: rename f to fname in subdoc map (doesnt redefine f)
2021-12-04 17:53:34 -04:00
TorchedSammy
3d36786cc7
chore: remove redundant returns
2021-12-04 17:53:10 -04:00
TorchedSammy
074c5f6766
fix: require lunacolors in preload
2021-12-04 17:50:04 -04:00
TorchedSammy
2e21af4d6b
refactor: use curuser to get homedir everywhere
2021-12-01 18:31:04 -04:00
TorchedSammy
effd028658
fix: substitution of home dir to ~ when names in path match it
...
fixes edge cases like `/mnt/home/user`
2021-12-01 18:30:03 -04:00
TorchedSammy
4a517bde5e
fix: remove handler when error in hook occurs
2021-12-01 17:35:12 -04:00
TorchedSammy
6a526dbbe4
fix: dont panic when error in bait hook occurs
2021-12-01 17:30:06 -04:00
TorchedSammy
3568b62219
style: use decl and assign operator instead of var and =
2021-12-01 17:29:14 -04:00
TorchedSammy
34778a4bdf
fix!: default SHLVL to 0 instead of 1
2021-11-28 23:19:14 -04:00
TorchedSammy
ce0b2ab955
fix: dont print extra new line on ctrl+d in continue prompt
2021-11-28 10:44:02 -05:00
TorchedSammy
9261253b63
fix: stop interval if error occurs
2021-11-28 09:29:17 -05:00
TorchedSammy
f6aaf85cca
fix: make minimal config actually minimal and not require lunacolors
2021-11-27 22:51:32 -05:00
TorchedSammy
12910ba724
fix: add docs for hilbish.xdg
2021-11-25 22:24:35 -05:00
TorchedSammy
e8a69d36bb
fix: executable tab completion
2021-11-23 19:09:07 -05:00
TorchedSammy
c329d21e7d
chore: make changelogs and bump for 0.7.1
2021-11-22 22:54:20 -05:00
TorchedSammy
4aafddfdb1
fix: tab complete absolute path binaries properly
2021-11-22 22:52:14 -05:00
TorchedSammy
80dcfc362b
fix: allow non absolute paths to be executed
...
this is a regression introduced in 06272778f8
2021-11-22 22:49:23 -05:00
TorchedSammy
4127396892
docs: add docs for new functions
2021-11-22 22:04:30 -05:00
TorchedSammy
7ab81a61df
fix: dont trim trailing space for completion field
2021-11-22 21:52:58 -05:00
TorchedSammy
65435572d4
docs: clarify what a scope is
2021-11-22 19:40:00 -05:00
TorchedSammy
c0abeee648
docs: fixed heading size for bugfixes in 0.7
2021-11-22 19:38:55 -05:00
TorchedSammy
a38625d821
docs: changelog for 0.7
2021-11-22 19:38:06 -05:00
TorchedSammy
4e244e141f
fix: remove variables heading if there is none, account for global in new module doc format
2021-11-22 19:20:57 -05:00
TorchedSammy
f741c2709c
fix: check and print module isnt found instead of failing
2021-11-22 19:20:31 -05:00
TorchedSammy
179947cd98
fix: only add __docProp metatable from SetField function
2021-11-22 19:19:36 -05:00
TorchedSammy
43ddab699f
feat: add in shell documentation for module properties
2021-11-22 18:59:28 -05:00
TorchedSammy
538ba3547f
chore: reorder code
2021-11-22 18:58:30 -05:00
TorchedSammy
e67c549714
fix: get function docs for normal modules (regression from 52a6eb2125
)
2021-11-22 18:29:26 -05:00
TorchedSammy
812de48558
fix: completions not working with aliases commands ( resolves #82 )
2021-11-22 18:01:59 -05:00
TorchedSammy
52a6eb2125
docs: document available bait hooks
2021-11-22 16:36:32 -05:00
TorchedSammy
c61b428d67
fix: panic when error occurs in commander
...
check if commander has an error before trying to get a return code
2021-11-22 15:40:56 -05:00
TorchedSammy
af4c3885ae
feat: add signal hooks for sigint and sigwinch ( #80 )
2021-11-22 15:13:05 -05:00
TorchedSammy
94a8b4ad47
feat: add prependPath function ( resolves #81 )
2021-11-22 12:46:39 -05:00
TorchedSammy
72cf776882
fix: use golang path list separator to not be unix specific
2021-11-22 12:45:45 -05:00
TorchedSammy
123f8992b1
feat: add tab completion api
...
tab complete is better than it was before!
there is a new `complete` function which allows adding custom arguments
to complete specific functions.
hilbish will now also complete executables if it's the first input
argument (this also works with ./)
if no completion is added for a command, hilbish will just complete
files
2021-11-22 11:24:31 -05:00
TorchedSammy
77cc7fe24a
fix: only resize term if not running command
2021-11-22 10:41:27 -05:00
TorchedSammy
5a258ce68e
chore: bump version
2021-11-22 10:39:50 -05:00
TorchedSammy
35e648b7bc
style: remove extra whitespace
2021-11-21 18:50:35 -05:00
TorchedSammy
06272778f8
fix: say if no perms for executable instead of printing not found
2021-11-21 18:45:44 -05:00
sammyette
2f816c33cd
fix: revert "chore: update deps"
...
This reverts commit e06765abc3
.
broke builds
2021-10-30 23:08:29 -04:00
sammyette
9b66547803
docs: change urls to use new org name
2021-10-30 20:03:59 -04:00
sammyette
e06765abc3
chore: update deps
2021-10-30 20:01:07 -04:00
sammyette
2073752e7e
chore: merge from dev
2021-10-30 19:57:50 -04:00
sammyette
84ec3d085d
feat: add hilbish.read function
...
`hilbish.read` will read input from the user, using
hilbish's line editor library (hilbiline or readline)
2021-10-30 19:53:42 -04:00
sammyette
97a6e4baf2
feat: add hilbish.interactive and hilbish.login vars
...
these are to check from lua if hilbish is running an interactive or
login session
2021-10-30 19:44:40 -04:00