Commit Graph

659 Commits (v1.0.4)

Author SHA1 Message Date
TorchedSammy b1ad90443e docs: [ci] generate new docs 2022-03-05 20:13:15 +00:00
TorchedSammy 76c94bfcce
docs: fix docs for hilbish.complete 2022-03-05 16:12:46 -04:00
TorchedSammy 0ed365170c
refactor!: completion api, add hilbish.completion interface
this is a pretty big commit which mainly contains a refactor
and breaking change to how command completions are done.

before that, a hilbish.completion interface has been added
which for now just has 2 functions (`files` and `bins`)
for completions of normal files and executables.

hilbish.complete is now expected to return a table of
"completions groups," which are as the name suggests a group
for a completion. a completion group is a table which has
the fields `type`, which can be either `list` or `grid`,
and `items`, being an array (or string keyed table) of items

if an item is string keyed the item itself is the key name
and the value is a table with the first value in it being the
description for the item. this description is only applied
with the list type.

this is probably the longest commit message ive written
2022-03-05 15:59:00 -04:00
TorchedSammy 70724ec015
feat: make hilbish.history functional for go readline 2022-03-05 15:57:46 -04:00
TorchedSammy f1dfd59c4c
fix: add back prompt global var
fixes an issue with multiline prompt overriding user's prompt
permanently
2022-03-05 15:46:38 -04:00
TorchedSammy a0dff5babf
fix: remove print in history handler 2022-03-05 15:23:17 -04:00
TorchedSammy 058d6ac456
chore: update readline 2022-03-05 14:40:38 -04:00
TorchedSammy 9f206ebed0
fix: export hilbish.complete 2022-03-05 11:38:33 -04:00
TorchedSammy 59963add14
fix: dont complete binaries in path if complete req starts with file prefix 2022-03-05 08:58:12 -04:00
TorchedSammy 88fd6f01b9
fix: dont add last empty line of history, make sure first isnt missing in search 2022-03-05 08:28:34 -04:00
TorchedSammy 5175367b35
fix: handle errors in goro and timeout callbacks 2022-03-04 22:21:34 -04:00
TorchedSammy 83ca8066e6
chore: remove unused prompt var 2022-03-04 22:21:14 -04:00
TorchedSammy 92f279e5cf
fix: prevent writing empty line to history 2022-03-04 22:04:44 -04:00
TorchedSammy f26ef935dd
feat: add file history (closes #97) 2022-03-04 21:55:37 -04:00
TorchedSammy 6b9bbb615d
fix: handle prompt properly and remove global 2022-03-04 21:54:47 -04:00
TorchedSammy 237bc19f68
fix: prompt handling 2022-03-04 21:16:45 -04:00
TorchedSammy 63e33af34d
chore: update readline 2022-03-04 20:48:22 -04:00
TorchedSammy d7f10b0247 docs: [ci] generate new docs 2022-03-04 18:41:22 +00:00
TorchedSammy 99461e42d0
fix: export hilbish.goro (closes #98) 2022-03-04 14:40:54 -04:00
TorchedSammy b0e4cf6ed1
chore: remove shell.nix 2022-03-03 21:01:56 -04:00
TorchedSammy fca15886aa
docs: add more detail to changelog and make it up to date 2022-03-03 20:07:06 -04:00
TorchedSammy e7ac7ce843
feat: add hilbish.os interface (closes #94) 2022-03-02 19:11:57 -04:00
TorchedSammy c9f9ce07e8
docs: remove readline requirement, use nightly links 2022-03-02 06:58:55 -04:00
TorchedSammy e7a31c5394
ci: add .exe to windows artifacts 2022-03-02 06:44:46 -04:00
TorchedSammy b61a36d675
ci: fix artifact upload for windows 2022-03-02 06:42:48 -04:00
TorchedSammy 284248fc08 docs: [ci] generate new docs 2022-03-02 02:16:12 +00:00
TorchedSammy 7bde025c8e
chore: merge 2022-03-01 22:15:35 -04:00
TorchedSammy e8d0ea12cc
fix: add substitute for exec syscall on windows 2022-03-01 22:14:55 -04:00
TorchedSammy c175bb4d8a
docs: add emmylua doc comments for hilbish module functions 2022-03-01 22:12:48 -04:00
TorchedSammy b3981b5a4e docs: [ci] generate new docs 2022-03-02 02:01:22 +00:00
TorchedSammy 065d752b82
feat: accessible vim input mode (closes #95) 2022-03-01 22:00:46 -04:00
TorchedSammy 062f40e9e5
fix: push hilbish.which return value properly 2022-03-01 19:34:07 -04:00
TorchedSammy 44e2a458f5 docs: [ci] generate new docs 2022-03-01 23:00:20 +00:00
TorchedSammy 3b6284bc7c
feat: add hilbish.which (closes #93) 2022-03-01 18:59:44 -04:00
TorchedSammy 52379dbdd7
feat: support macos 2022-02-28 18:53:58 -04:00
TorchedSammy 36cd4d4123
fix: custom handle ctrl c from readline 2022-02-28 18:32:57 -04:00
TorchedSammy d355d02b93
fix: only notify ctrl c signal on windows 2022-02-28 16:15:08 -04:00
TorchedSammy a3abd4bc91
ci: dont build for macos for now 2022-02-27 23:23:04 -04:00
TorchedSammy ad6d3193ff
chore: update readline lib 2022-02-27 23:22:37 -04:00
TorchedSammy 1040872169
docs: mention that hilbish now requires go 1.17+ 2022-02-27 22:33:57 -04:00
TorchedSammy 7516956aac
ci: properly build for other oses 2022-02-27 21:00:37 -04:00
TorchedSammy babb870383
ci: build with 1.17 2022-02-27 19:38:59 -04:00
TorchedSammy 8dcd57309f
ci: use newest 1.16 release of go 2022-02-27 19:32:16 -04:00
TorchedSammy f292245c23
chore: remove unneeded comments 2022-02-27 19:29:05 -04:00
TorchedSammy aaeecceabf
chore: remove unneded build directive 2022-02-27 19:28:12 -04:00
TorchedSammy 3cdd21a4fa
refactor: remove gnu readline 2022-02-27 19:27:18 -04:00
TorchedSammy 496bf616c6
chore: remove go:build directive 2022-02-27 19:24:50 -04:00
TorchedSammy df6a2bb0c7
fix: add missing comma 2022-02-27 19:24:02 -04:00
TorchedSammy 3165552c21
refactor: make go readline lib default, remove hilbiline 2022-02-27 19:21:34 -04:00
TorchedSammy f26931d4cb
fix: add missing comma in escape list for file completions and add more cases 2022-02-27 19:19:17 -04:00