TorchedSammy
4f959c326a
feat: use goroutines for doc gen loop
2022-12-03 11:33:18 -04:00
TorchedSammy
079bedc6dc
fix: use slice for doc pieces instead of a map
...
a map doesnt have a fixed order which results in
a new order everytime docs are generated. i forgot
that important detail..
2022-12-03 11:30:41 -04:00
TorchedSammy
aa43515213
refactor: reduce duplication and reorganize code in doc gen
2022-12-03 11:15:25 -04:00
TorchedSammy
4b5fcf24c2
docs: add descriptions for terminal and fs libs
2022-12-02 17:06:53 -04:00
TorchedSammy
9df0c4c0df
fix: remove empty entries for hilbish module, add descriptions
2022-12-02 17:02:13 -04:00
TorchedSammy
e258f9c8ba
fix: doc generation for hilbish module
2022-12-02 16:57:38 -04:00
TorchedSammy
65e35dbab9
style: make structs unexported
2022-12-02 16:00:55 -04:00
TorchedSammy
1b24e91597
feat!: enhance docs and doc command
...
changes the actual file format of docs
to markup since that's basically what we have been
using in the first place.
the docgen command has been modified to write
markdown headings with the function name and
yaml metadata for easy consumption by hugo for the
website (soon).
all other docs have been moved to markdown as well
this is the main reason this is a "breaking" change
users will have to reinstall hilbish
(task uninstall and task install) to remove the old
plaintext docs
2022-12-02 15:08:03 -04:00
TorchedSammy
395f3c0742
ci: remove extra indent in release action
2022-12-02 09:42:06 -04:00
TorchedSammy
0c44531a7f
chore: merge from upstream
2022-12-02 09:39:48 -04:00
TorchedSammy
4e850bb322
ci: set build version to 1.18, use task for release builds
2022-12-02 09:39:22 -04:00
TorchedSammy
09d04a7850
docs: [ci] generate new docs
2022-12-02 00:05:24 +00:00
TorchedSammy
4df37b4341
chore: merge from upstream
2022-12-01 20:04:55 -04:00
TorchedSammy
5e2b3367de
docs(bait): add annotation strings for release and hooks functions
2022-12-01 20:04:24 -04:00
Daniel de Sá
b6aecb12f6
chore: add .editorconfig file ( #217 )
2022-12-01 09:29:27 -04:00
TorchedSammy
3f9b230381
chore: update changelog
2022-11-30 14:29:46 -04:00
TorchedSammy
b395b70ecd
fix: escape completion prefix if completions are escaped
...
fixes an issue with duplicated characters when
completing escaped paths
2022-11-30 14:26:43 -04:00
TorchedSammy
06102ebdae
perf: preallocate history slice
2022-11-30 13:20:00 -04:00
TorchedSammy
bd4e0df7b3
feat: select 1st item on history find menu ( closes #148 )
...
cancels on escape unless the user moves to another item
2022-11-25 20:14:29 -04:00
TorchedSammy
ebec585690
fix: binary completion with spaces ( closes #210 )
2022-11-25 19:35:26 -04:00
TorchedSammy
ff4609e432
feat: add hilbish.cancel hook ( closes #213 )
2022-11-25 19:21:36 -04:00
TorchedSammy
ef3e7d92bc
chore: update changelog
2022-11-25 19:13:32 -04:00
TorchedSammy
d6338fc021
fix(readline): make completion search menu display
2022-11-25 19:08:38 -04:00
TorchedSammy
3eaeb6a5da
fix(readline): grip completion menu fixes
...
- dont print item left justified if the max number
of cells is 1 (this fixes issues in cjk as an example)
- trim items that are longer than the terminal width
2022-11-25 18:39:18 -04:00
TorchedSammy
8b547f2af0
feat: make tab completion work with spaces and escaped characters
2022-11-25 16:56:35 -04:00
TorchedSammy
1febe66f84
fix(readline): use uniseg to calculate width of virtual tab entry ( closes #209 )
2022-11-17 19:18:57 -04:00
TorchedSammy
6ffcc498ac
docs: update changelog for rc
2022-10-14 19:25:18 -04:00
TorchedSammy
fe47c6c7a1
chore: change version to rc1
2022-10-14 19:16:24 -04:00
sammy
0d32a10ca3
feat: add builtins clear, exec and cat ( #208 )
...
* feat: add clear and exec command
* docs: add builtins to changelog
* feat: add cat command
2022-10-14 19:15:40 -04:00
TorchedSammy
cc6e5d01dd
docs: [ci] generate new docs
2022-10-11 21:43:22 +00:00
TorchedSammy
068a5b5149
feat(bait): add error hook and hooks function ( closes #205 )
...
an `error` hook is now thrown when an event in lua
throws an error (errors from go side should not happen)
it includes the event name, handler, and error message
a hooks function has also been added. it returns a table
of handlers for a specific event.
2022-10-11 17:41:13 -04:00
TorchedSammy
117a4580b4
chore: merge from upstream master
2022-10-10 18:55:28 -04:00
TorchedSammy
0db7f96fd7
build: disable cgo in builds
2022-10-10 18:55:03 -04:00
TorchedSammy
300248de54
docs: [ci] generate new docs
2022-10-10 22:41:10 +00:00
TorchedSammy
3ee2b03330
feat: make prompt optional in hilbish.read
2022-10-10 18:40:29 -04:00
TorchedSammy
3bec2c91a8
fix: create an empty line reader instance for hilbish.read ( closes #190 )
2022-10-10 18:26:54 -04:00
TorchedSammy
b4ca5bfda3
fix(readline): put cursor at end of text when exiting editor
2022-10-10 18:19:24 -04:00
TorchedSammy
308e257872
fix(readline): take into account newlines when calculating amount of lines taken up by input
...
this does not really fix the issue of multiline input
being broken completely, but prevents the prompt
being reprinted on input
2022-10-10 18:17:58 -04:00
TorchedSammy
7db2a2c826
fix: check if there is cmd input before attempting to add to history ( closes #206 )
2022-10-10 18:11:09 -04:00
TorchedSammy
22f6ea8a3e
docs: remove getting started from readme toc
2022-10-10 17:34:08 -04:00
TorchedSammy
91596fa81c
docs: document drop in windows support
2022-10-10 17:33:36 -04:00
TorchedSammy
e5c8e5eaff
fix!: pass non expanded input to builtin runners
...
fixes an issue with expanded aliases being added
to history with a recent commit (6th time now with
this issue?) and makes behavior with other runners
consistent
this can technically be a breaking change to people
overriding the sh runner function
2022-09-17 21:00:28 -04:00
TorchedSammy
8647dc57a1
fix: set cmdString after prompting for continue input
...
makes sure that the old + new input is actually used for
builtin runners
2022-09-17 20:31:19 -04:00
TorchedSammy
8f41005da7
chore: update changelog
2022-09-17 20:24:31 -04:00
TorchedSammy
7108523a4c
fix: remove logging of autostart modules
2022-09-17 14:08:15 -04:00
TorchedSammy
ee34ccdbc3
fix: check if key in _G is string before trying to getenv
2022-09-17 10:48:34 -04:00
TorchedSammy
959030f70d
refactor: automatically load all nature commands
2022-09-02 23:01:39 -04:00
TorchedSammy
59cec0ffa5
fix: call hinter for hint text handler
2022-09-02 22:19:30 -04:00
TorchedSammy
1eed4cc7ee
fix: add back empty string in command line split
...
this fixes file completion in normal usage without
using quotes. it basically cut out the space at the
end which prevented normal usage without adding an
additional space or using quotes for file
completion
2022-08-30 23:38:46 -04:00
TorchedSammy
c13889592f
fix: pass alias expanded string to sh runner ( fixes #201 )
...
i have no idea why it didnt before, it *shouldnt*
introduce any problems and fixes this one.
2022-08-30 23:10:47 -04:00