mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-22 05:23:23 +00:00
Compare commits
No commits in common. "16d08d446f10ee47b5cfc8ab68ce888a17d1e2f2" and "5778f0cc2dffffbe195d043e23715afe4a2c2818" have entirely different histories.
16d08d446f
...
5778f0cc2d
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,15 +1,10 @@
|
|||||||
# 🎀 Changelog
|
# 🎀 Changelog
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
### Added
|
|
||||||
- Forward/Right arrow key will fill in hint text (#327)
|
|
||||||
### Changed
|
|
||||||
- Documentation for Lunacolors has been improved, with more information added.
|
|
||||||
|
|
||||||
## [2.3.4] - 2024-12-28
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Skip over file and prevent panic if info cannot be retrieved during file completion (due to permission error or anything else)
|
- Skip over file and prevent panic if info cannot be retrieved during file completion (due to permission error or anything else)
|
||||||
- Apply environment variables properly after 2.3 shell interpreter changes
|
### Changed
|
||||||
|
- Documentation for Lunacolors has been improved, with more information added.
|
||||||
|
|
||||||
## [2.3.3] - 2024-11-04
|
## [2.3.3] - 2024-11-04
|
||||||
### Fixed
|
### Fixed
|
||||||
@ -791,7 +786,6 @@ This input for example will prompt for more input to complete:
|
|||||||
|
|
||||||
First "stable" release of Hilbish.
|
First "stable" release of Hilbish.
|
||||||
|
|
||||||
[2.3.4]: https://github.com/Rosettea/Hilbish/compare/v2.3.3...v2.3.4
|
|
||||||
[2.3.3]: https://github.com/Rosettea/Hilbish/compare/v2.3.2...v2.3.3
|
[2.3.3]: https://github.com/Rosettea/Hilbish/compare/v2.3.2...v2.3.3
|
||||||
[2.3.2]: https://github.com/Rosettea/Hilbish/compare/v2.3.1...v2.3.2
|
[2.3.2]: https://github.com/Rosettea/Hilbish/compare/v2.3.1...v2.3.2
|
||||||
[2.3.1]: https://github.com/Rosettea/Hilbish/compare/v2.3.0...v2.3.1
|
[2.3.1]: https://github.com/Rosettea/Hilbish/compare/v2.3.0...v2.3.1
|
||||||
|
20
exec.go
20
exec.go
@ -434,8 +434,26 @@ func execHandle(bg bool) interp.ExecHandlerFunc {
|
|||||||
// sh/interp but with our job handling
|
// sh/interp but with our job handling
|
||||||
|
|
||||||
env := hc.Env
|
env := hc.Env
|
||||||
envList := os.Environ()
|
envList := make([]string, 0, 64)
|
||||||
env.Each(func(name string, vr expand.Variable) bool {
|
env.Each(func(name string, vr expand.Variable) bool {
|
||||||
|
if name == "PATH" {
|
||||||
|
pathEnv := os.Getenv("PATH")
|
||||||
|
envList = append(envList, "PATH="+pathEnv)
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
if !vr.IsSet() {
|
||||||
|
// If a variable is set globally but unset in the
|
||||||
|
// runner, we need to ensure it's not part of the final
|
||||||
|
// list. Seems like zeroing the element is enough.
|
||||||
|
// This is a linear search, but this scenario should be
|
||||||
|
// rare, and the number of variables shouldn't be large.
|
||||||
|
for i, kv := range envList {
|
||||||
|
if strings.HasPrefix(kv, name+"=") {
|
||||||
|
envList[i] = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if vr.Exported && vr.Kind == expand.String {
|
if vr.Exported && vr.Kind == expand.String {
|
||||||
envList = append(envList, name+"="+vr.String())
|
envList = append(envList, name+"="+vr.String())
|
||||||
}
|
}
|
||||||
|
@ -56,10 +56,3 @@ func (rl *Instance) resetHintText() {
|
|||||||
//rl.hintY = 0
|
//rl.hintY = 0
|
||||||
rl.hintText = []rune{}
|
rl.hintText = []rune{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (rl *Instance) insertHintText() {
|
|
||||||
if len(rl.hintText) != 0 {
|
|
||||||
// fill in hint text
|
|
||||||
rl.insert(rl.hintText)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -707,9 +707,6 @@ func (rl *Instance) escapeSeq(r []rune) {
|
|||||||
rl.renderHelpers()
|
rl.renderHelpers()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
rl.insertHintText()
|
|
||||||
|
|
||||||
if (rl.modeViMode == VimInsert && rl.pos < len(rl.line)) ||
|
if (rl.modeViMode == VimInsert && rl.pos < len(rl.line)) ||
|
||||||
(rl.modeViMode != VimInsert && rl.pos < len(rl.line)-1) {
|
(rl.modeViMode != VimInsert && rl.pos < len(rl.line)-1) {
|
||||||
rl.moveCursorByAdjust(1)
|
rl.moveCursorByAdjust(1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user