mirror of https://github.com/Hilbis/Hilbish
docs: make changelog up to date
parent
893d72a236
commit
f3f49fc398
25
CHANGELOG.md
25
CHANGELOG.md
|
@ -32,6 +32,7 @@ it finds the path to `binName` in $PATH
|
||||||
- Alias expansion with quotes
|
- Alias expansion with quotes
|
||||||
- Add full command to history in the case of incomplete input
|
- Add full command to history in the case of incomplete input
|
||||||
- `hilbish.exec()` now has a windows substitute
|
- `hilbish.exec()` now has a windows substitute
|
||||||
|
- Fixed case of successful command after prompted for more input not writing to history
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- The minimal config is truly minimal now
|
- The minimal config is truly minimal now
|
||||||
|
@ -54,6 +55,30 @@ as it functions the same but is OS agnostic
|
||||||
- `hilbish.flag()` has been removed
|
- `hilbish.flag()` has been removed
|
||||||
- `~/.hprofile.lua` has been removed, instead check in your config if `hilbish.login`
|
- `~/.hprofile.lua` has been removed, instead check in your config if `hilbish.login`
|
||||||
is true
|
is true
|
||||||
|
- `hilbish.complete()` has had a slight refactor to fit with the new readline library.
|
||||||
|
It now expects a table of "completion groups" which are just tables with the
|
||||||
|
`type` and `items` keys. Here is a (more or less) complete example of how it works now:
|
||||||
|
```lua
|
||||||
|
hilbish.complete('command.git', function()
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
items = {
|
||||||
|
'add',
|
||||||
|
'clone'
|
||||||
|
},
|
||||||
|
type = 'grid'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
items = {
|
||||||
|
['--git-dir'] = {'Description of flag'},
|
||||||
|
'-c'
|
||||||
|
},
|
||||||
|
type = 'list'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
end)
|
||||||
|
```
|
||||||
|
Completer functions are now also expected to handle subcommands/subcompletions
|
||||||
|
|
||||||
## [0.7.1] - 2021-11-22
|
## [0.7.1] - 2021-11-22
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
Loading…
Reference in New Issue