2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-07-01 16:52:03 +00:00

97 Commits

Author SHA1 Message Date
a3d44783cb
fix: update branch 2025-06-15 12:27:36 -04:00
19938fa8ef
feat: add hilbish.runner and hilbish.appendPath 2025-06-14 13:40:28 -04:00
3e85e1bf68
feat: add hilbish.completion (enough to init nature) 2025-06-14 13:26:41 -04:00
417ccf7ca8
feat: add hilbish.cwd 2025-06-14 12:31:25 -04:00
9c0819969f
feat: impl more functions, uncomment nature code 2025-06-14 10:31:17 -04:00
9aa0a499c9
fix: inverse midnight check 2025-06-14 10:29:27 -04:00
9e77f0ba32
refactor: change go function types
this is the only way i could think of to be able
to push go functions to lua on the clua side.

this may or may not need adjustments on golua side
though...
2025-06-14 10:06:20 -04:00
02c89b99dd
refactor: decouple sh use in core exec code (#337) 2025-04-03 00:38:35 -04:00
40d3933009
feat: add hilbish.midnightEdition 2024-12-22 11:56:53 -04:00
0a0f2e2c38
fix: implement go lua library loading
and remove debug symbol stripping flags when building
on midnight
2024-12-22 01:09:24 -04:00
3afd1c518a
fix: attempt to implement more/fix go library loading 2024-12-22 00:03:21 -04:00
d6eb92f321
fix: attempt some small fixes for loading modules 2024-07-26 17:58:25 -04:00
1f9fd80fbb
feat: begin initial port to c lua 2024-07-21 11:37:08 -04:00
4fdc99db88
refactor: rewrite appendPath to use moonlight 2024-07-20 15:11:45 -04:00
69fcd8e348
refactor: rewrite runner module for moonlight, add hilbish.runnerMode function 2024-07-20 14:49:43 -04:00
0c904321f4
fix: initialize some modules 2024-07-20 14:15:26 -04:00
4d07f166b6
refactor: rewrite hilbish.prompt for moonlight 2024-07-20 12:12:06 -04:00
80e6dedf9e
feat: rewrite hilbish.cwd for moonlight 2024-07-20 11:47:59 -04:00
a5f695eb98
feat: implement parts of fs 2024-07-20 11:34:39 -04:00
e335ef5994
feat: add userDir module 2024-07-20 10:53:49 -04:00
4524c1451a
feat: add moonlight lua abstraction library
future plans: add the ability to use c lua
(or luajit) with hilbish

benefits? speed, i guess?
2024-07-19 16:54:15 -04:00
42ab856e45
feat(commander): add function to return all commanders (closes #266) 2024-04-27 21:29:06 -04:00
a20123fc24
feat: allow hilbish.run to take a table of files to use for output (#291) 2024-04-27 21:03:54 -04:00
16b39fe157
fix: call highlighter and hinter from global table (closes #289) 2024-04-19 07:54:46 -04:00
7d487bfc98
refactor: remove metatables protecting hilbish api and opts (#287) 2024-04-11 18:16:45 -04:00
7932fa677f
fix(hilbish.goro): attempt to recover panic 2023-12-26 12:32:32 -04:00
8fdae6c1d7
refactor: doc improvements (again) (#260) 2023-12-25 22:08:29 -05:00
60fd4c3b4c
fix: correction to completion documentation
i added an s even though there's no s.
to account for others making the same mistake, i added both.
hilbish.completion and hilbish.completions will work, but
hilbish.completion without s will be removed at a major update.
2023-12-02 11:11:28 -04:00
29e14c1aee
feat: native modules (#257) 2023-11-11 19:39:31 -05:00
f540fc2c04
feat: show go version hilbish was compiled with 2023-07-10 21:56:35 -04:00
485306fbe2
docs: clarify use of highlighter function 2023-04-15 10:36:21 -04:00
8d20ad9eed
fix: make hilbish.which work properly with aliases 2023-01-18 06:52:22 -04:00
6530d48b00
docs: document types properly (#227) 2023-01-18 06:39:26 -04:00
a105b8e38d
docs: improve emmy lua annotations 2022-12-20 20:59:55 -04:00
78c95de784
refactor: remove doc prop related code
should very very slightly improve startup. it's dead, obsolete,
and unused code now anyways with the docs refactor
2022-12-20 00:54:05 -04:00
e5eefb1d2d
refactor!: rework docs and doc command (#218)
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.

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-15 00:00:54 -04: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
sammy
2337f9ab60
refactor: use custom event emitter (#193)
* refactor: use custom event emitter

* fix: sigint hook emit on windows

* fix: restore correct hilbish conf file

* fix: call recoverer for go listeners

* refactor(golibs/bait): use 1 map for listeners

* feat: add once listeners, ability to remove listeners and remove listener on error

* perf: reslice listener slice instead of trying to do ordered move with append

* feat(bait): add release function to remove event listener

* perf: remove listener directly from once emit instead of using off function

* refactor: use bait event emitter on commander

* docs(golibs/bait): add doc strings for functions

* docs: set changelog

* docs(golibs/bait): add docs for lua release function
2022-08-17 18:01:32 -04:00
TorchedSammy
a106f4aea0
refactor!: move hilbish.greeting to an opt (closes #184) 2022-07-09 17:15:13 -04:00
sammyette
b28a2c24c1
refactor!: use userdata where appropriate (#157)
any interface which has lua side objects that are from go side for its api (namely jobs) they will use userdata instead of always creating a table to represent the object. this might or might not bring lower ram usage since there is now only 1 single reference to an object instead of always creating a table to expose on lua

breaking change since methods need to be called with a colon instead of dot
2022-05-28 19:03:44 -04:00
TorchedSammy
ab8b9c8376
feat: add hilbish.version interface 2022-05-17 06:39:30 -04:00
TorchedSammy
ac21109307
fix: change how version is retrieved 2022-05-16 19:36:34 -04:00
TorchedSammy
dc933934eb
feat: add hilbish.editor interface
this is going to be a middle level interface
which brings functions for interacting
with the line editor used in hilbish

adds the following functions:
setVimRegister(reg, text) - sets text in a vim register
getVimRegister(reg) - gets text from a vim register
insert(text) - inserts text into the line
accessible via hilbish.editor
2022-05-13 20:43:40 -04:00
TorchedSammy
03a57fce5b
docs: add more documentation for completions 2022-04-23 00:03:48 -04:00
TorchedSammy
abfbeb5f84
feat: allow overwrite of completion handler (closes #122)
this also makes the completion functions `bins`
and `files` also return the prefix to pass
to the completion handler.

this is an overhaul to the completion system,
which gets the completion handler from lua
instead of being made to only have lua provided
*command* completions.

it does not have any performance deficit, even
though it calls in to golua for completions.
2022-04-23 00:03:47 -04:00
TorchedSammy
3194add3dc
fix: restore doc related metafields on hilbish table 2022-04-23 00:03:47 -04:00
TorchedSammy
0af36db6ff
fix!: change the way highlighter and hinter are set
with the change of blocking changes to the
hilbish table, i took an opportunity
to make the highlighter and hinter callbacks
set in a more natural way. instead of being
a function which takes a callback, you set
the function itself.
2022-04-23 00:03:38 -04:00
TorchedSammy
57d7527356
fix: make hilbish.which work with aliases and commanders 2022-04-21 22:16:04 -04:00
TorchedSammy
3d525aa7da
fix: dont allow overrides on hilbish table 2022-04-21 20:39:38 -04:00