TorchedSammy
186d620311
docs: bring contributing guide up to date
2022-02-25 18:22:59 -04:00
TorchedSammy
15cf5bb6f3
docs: [ci] generate new docs
2022-02-25 22:17:22 +00:00
TorchedSammy
a74c9a4200
docs(fs): change bool to boolean
2022-02-25 18:17:04 -04:00
TorchedSammy
0bf4072355
docs: [ci] generate new docs
2022-02-25 22:15:49 +00:00
TorchedSammy
a77b997942
refactor: add emmylua docs for all functions appropriate
2022-02-25 18:15:25 -04:00
TorchedSammy
dc608436c1
fix(commander): omit the 'in the shell' part for the description
2022-02-25 18:08:49 -04:00
TorchedSammy
18c115325a
ci: change regen to just gen
2022-02-25 18:04:34 -04:00
TorchedSammy
bd3628332e
docs: [ci] regenerate new docs
2022-02-25 22:00:39 +00:00
TorchedSammy
e75c60ff49
feat(docgen): support outputting emmylua sources ( closes #91 )
2022-02-25 18:00:18 -04:00
TorchedSammy
165cedf328
ci: rename job to regen
2022-02-25 17:59:32 -04:00
TorchedSammy
4c371d8095
ci: fix setup for go
2022-02-25 17:58:09 -04:00
TorchedSammy
c5f5a83990
ci: add action to gen and push docs
2022-02-25 17:55:35 -04:00
TorchedSammy
d1b7515722
fix(docgen): remove trailing spaces in docs
2022-02-24 20:42:54 -04:00
TorchedSammy
b468727a32
refactor(docgen): remove global doc
2022-02-24 20:37:13 -04:00
TorchedSammy
62d8725d99
refactor: remove global module from doc command ( closes #90 )
2022-02-24 18:19:54 -04:00
TorchedSammy
2a0cd1464a
fix: dont copy default conf to user dir
...
doing this prevents problems in later releases with breaking
changes (though this shouldnt be the case anymore)
2022-02-23 22:20:11 -04:00
TorchedSammy
f05ab921d7
refactor!: use better default paths
...
~/.hilbishrc.lua has been removed and will no longer be loaded.
instead, $XDG_CONFIG_HOME/hilbish/init.lua is to be used
the history path has been changed to a more suited one.
on linux, it is in $XDG_DATA_HOME/hilbish/.hilbish-history,
or otherwise ~/.local/share/hilbish/.hilbish-history
2022-02-23 22:19:54 -04:00
TorchedSammy
cb3d0a2e8e
fix: use os agnostic function to get config dir
2022-02-23 22:01:35 -04:00
TorchedSammy
209abfac77
fix: change default hist path to use hist name instead of config name
2022-02-23 21:29:37 -04:00
TorchedSammy
5e9ea9fead
fix: dont add recent dir if its same as last previous ( fixes #92 )
2022-02-23 21:16:16 -04:00
TorchedSammy
11f193b394
fix: make default config work with breaking changes
2022-02-23 21:14:49 -04:00
TorchedSammy
4cc49d45c7
chore: update license
2022-02-12 16:46:41 -04:00
TorchedSammy
afe579f5be
fix: use correct signature for rl lua loader
2022-01-31 17:46:24 -04:00
TorchedSammy
5d3c129e80
fix: import gopher-lua in other rl impls
2022-01-31 17:45:21 -04:00
TorchedSammy
2bc75c8130
style: tiny style changes/fixes
2022-01-31 17:43:12 -04:00
TorchedSammy
22d8a61544
feat: add hilbish.history interface ( closes #85 )
2022-01-27 17:02:21 -04:00
TorchedSammy
3f9aad64b5
fix: use right function to set prompt in minimal config
2022-01-27 17:01:27 -04:00
TorchedSammy
8c802a6e6b
feat: dont put input in history if it starts with a space
2022-01-27 16:28:29 -04:00
TorchedSammy
f2a2ac44d6
refactor!: move global functions to the hilbish module
...
its more organized this way and the `hilbish` lua module
is now what global was before anyway
a feature in this commit also is that `goro` now allows
passing any amount of args to the calling function
2022-01-26 15:51:52 -04:00
TorchedSammy
ea9c3eac30
docs: document new signal hooks
2022-01-26 15:20:48 -04:00
TorchedSammy
9cf03e37c4
fix: change hooks from signals to signal
...
drop the s, dont remember when i added it
it makes more sense and its what the docs have anyway
2022-01-26 15:18:54 -04:00
TorchedSammy
e0b84aaff7
feat: emit sigusr1 and 2 signal hooks
2022-01-26 15:18:09 -04:00
TorchedSammy
8821171ff5
chore: clean up and update modules
2022-01-02 19:21:34 -04:00
TorchedSammy
c03671f47d
chore: rename files to avoid collision (hilbish bin and shell.nix)
2021-12-31 20:00:39 -04:00
TorchedSammy
5787582c2e
fix: expansion on quotes in alias expansion
...
to show what this fixes:
`git commit -m "a commit message"` would report that it didnt find
pathspecs for commit or message, because the commit message is only passed as `a`
also fixes it to make it work in commands in other sh syntax
2021-12-31 14:11:11 -04:00
TorchedSammy
9d685ab785
feat: add hilbish.greeting
2021-12-31 13:25:53 -04:00
TorchedSammy
bcbd4be7f9
feat: allow appendPath to take table of paths ( closes #88 )
2021-12-31 13:22:26 -04:00
TorchedSammy
54689b7dd1
docs: add newline after aur badge
2021-12-19 22:41:04 -04:00
TorchedSammy
740adf27f3
docs: change sizes of some headers and link to aur package
2021-12-19 22:40:25 -04:00
TorchedSammy
40578d9d5f
fix: use a rwmutex for aliases map
2021-12-19 22:37:44 -04:00
TorchedSammy
f81babe973
docs: remove extra newline after short description
2021-12-19 22:19:36 -04:00
TorchedSammy
f6ff6bb274
fix(hilbish.aliases): push list of aliases in all() function
2021-12-19 12:54:15 -04:00
TorchedSammy
bcc249a4bd
feat: add aliases interface ( closes #87 and #86 )
...
500th commit!
adds the `hilbish.aliases` interface
it allows you to add, delete and get all aliases
there was also a slight refactor with alias resolving in this commit,
there is a single resolve function instead of duplicate code.
with consideration this could be exported to lua side,
but i see no reason for it
2021-12-14 20:54:23 -04:00
TorchedSammy
afa40dd1a1
docs: update readme with new description
2021-12-14 10:19:11 -04:00
TorchedSammy
fe8372379c
fix: make user dataDir on non linux the config dir
2021-12-14 09:41:47 -04:00
TorchedSammy
2e4bea8292
refactor!: replace hilbish.xdg with hilbish.userDir
...
"xdg" is basically a linux specific thing and it acted linux specific also.
so replace that with a more portable and general "userDir" table
config is for the user's config directory and also defaults to xdg vars on linux.
data is a directory to store data, mostly for scripts.
on other oses beside linux, it is just the config directory for now
2021-12-13 20:13:17 -04:00
TorchedSammy
b920f7d7b1
docs: change the description for the hilbish module
2021-12-13 17:32:55 -04:00
TorchedSammy
bcfbb20685
fix: dont export lua init
2021-12-08 23:31:48 -04:00
TorchedSammy
4dadfb0874
docs(contributing): fix sentence in making pr section
2021-12-08 23:04:30 -04:00
TorchedSammy
970fe43413
chore: remove newline between replace directives in module file
2021-12-07 18:01:39 -04:00