TorchedSammy
605574f262
fix: create directory for hist dir if it doesnt exist
2022-03-06 21:44:46 -04:00
TorchedSammy
9165e0bdf9
chore: prepare for 1.0.1 release
2022-03-06 17:23:44 -04:00
TorchedSammy
ec886e17fa
fix: dont refresh prompt at startup
2022-03-06 17:20:41 -04:00
TorchedSammy
ba67278fad
fix: dont print types of args in appendPath
2022-03-06 17:19:47 -04:00
TorchedSammy
539cf402ca
fix: dont double set prompt
2022-03-06 17:08:53 -04:00
TorchedSammy
8eb5a6710d
build: update makefile
2022-03-06 15:12:10 -04:00
TorchedSammy
03795e5727
ci: update version of go-release-action
2022-03-06 15:04:45 -04:00
TorchedSammy
7959a8b572
docs: mention latest changes in changelog
2022-03-06 15:00:43 -04:00
TorchedSammy
5c4335ec6a
docs: include guide command in greeting message
2022-03-06 14:56:04 -04:00
TorchedSammy
99c9e95eeb
refactor!: change preload.lua to prelude/init.lua, add guide command
...
this commit has 2 changes:
- preload.lua is now init.lua in the prelude folder. the reason
for the name change of preload to prelude is to make update/
overwrite not hell
- the guide command has been added which is a simple step through
getting started type of thing for new users
2022-03-06 14:45:06 -04:00
TorchedSammy
46ef8ad122
ci: add name for release action
2022-03-06 14:44:28 -04:00
TorchedSammy
cec6287e07
ci: add action to make release
2022-03-06 14:40:02 -04:00
TorchedSammy
4364031b16
fix!: change config path when custom config dir is used to be init.lua instead of .hilbishrc.lua
2022-03-06 14:39:23 -04:00
TorchedSammy
4ef6c7d5c0
fix: hilbish.read overriding history
2022-03-06 14:38:27 -04:00
TorchedSammy
764e2372a2
feat(ansikit): add screenMain and screenAlt functions to switch terminal screen
2022-03-06 14:26:28 -04:00
TorchedSammy
fb3cedb161
fix: set prompt in hilbish.read
2022-03-06 14:23:41 -04:00
TorchedSammy
ef6bf24cda
fix: finish command properly when sh error occurs
2022-03-06 13:32:39 -04:00
TorchedSammy
639bd09d0e
fix: import util
2022-03-06 13:31:50 -04:00
TorchedSammy
4b57dc2ed8
feat: add hilbish.exitCode property ( closes #101 )
2022-03-06 12:09:10 -04:00
TorchedSammy
928b829388
fix: set hilbish.vimMode property before throwing hook
2022-03-06 12:08:00 -04:00
TorchedSammy
7b693908df
docs: document hilbish scope hooks ( closes #100 - 100th issue!!*)
2022-03-06 12:06:39 -04:00
TorchedSammy
8d8b298053
docs: clarify what hooks are from
2022-03-06 12:04:28 -04:00
TorchedSammy
281c443b7b
docs: add spacing between signal hooks
2022-03-06 12:04:01 -04:00
TorchedSammy
3805f13369
feat: throw hilbish.exit hook ( closes #99 )
2022-03-06 10:23:32 -04:00
TorchedSammy
0b1b5bff2d
feat: change cursor shape based on vim mode
2022-03-06 10:08:42 -04:00
TorchedSammy
f8f8cd0b59
chore: update dependencies
2022-03-06 10:07:28 -04:00
TorchedSammy
4bb65572e4
fix(ansikit): define cursor consts
2022-03-06 09:42:35 -04:00
TorchedSammy
29c1e29bb7
docs: change date of 1.0
2022-03-05 21:41:33 -04:00
TorchedSammy
105552ac74
docs: fix 1.0 link in changelog
2022-03-05 21:40:48 -04:00
TorchedSammy
f28fd7e6c0
docs: fix indent size and type
2022-03-05 21:39:52 -04:00
TorchedSammy
f3f49fc398
docs: make changelog up to date
2022-03-05 21:34:59 -04:00
TorchedSammy
893d72a236
chore: prepare for 1.0 release
2022-03-05 21:29:38 -04:00
TorchedSammy
0637f2763b
fix: dont write history automatically with rl library
2022-03-05 21:29:13 -04:00
TorchedSammy
1cb536b1ac
fix: write to bottom of history file instead of at top
2022-03-05 21:26:03 -04:00
TorchedSammy
6740e012a5
fix: finish properly when command exit is successful after contine prompt
2022-03-05 21:25:32 -04:00
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