mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	Compare commits
	
		
			No commits in common. "e2c70a6014765d7ced08ad3698b53fad66d59c6b" and "9e4ef0483b503a750b0fd2373a92f014c4f0fb08" have entirely different histories.
		
	
	
		
			e2c70a6014
			...
			9e4ef0483b
		
	
		
@ -1,6 +0,0 @@
 | 
			
		||||
root = true
 | 
			
		||||
 | 
			
		||||
[*]
 | 
			
		||||
charset = utf-8
 | 
			
		||||
indent_size = 4
 | 
			
		||||
indent_style = tab
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@ -25,7 +25,7 @@ jobs:
 | 
			
		||||
      - name: Setup Go
 | 
			
		||||
        uses: actions/setup-go@v2
 | 
			
		||||
        with:
 | 
			
		||||
          go-version: '1.18.8'
 | 
			
		||||
          go-version: '1.17.7'
 | 
			
		||||
      - name: Download Task
 | 
			
		||||
        run: 'sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d'
 | 
			
		||||
      - name: Build
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										3
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@ -33,13 +33,10 @@ jobs:
 | 
			
		||||
    - uses: actions/checkout@v3
 | 
			
		||||
      with:
 | 
			
		||||
        submodules: true
 | 
			
		||||
    - name: Download Task
 | 
			
		||||
      run: 'sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d'
 | 
			
		||||
    - uses: wangyoucao577/go-release-action@v1.25
 | 
			
		||||
      with:
 | 
			
		||||
        github_token: ${{ secrets.GITHUB_TOKEN }}
 | 
			
		||||
        goos: ${{ matrix.goos }}
 | 
			
		||||
        goarch: ${{ matrix.goarch }}
 | 
			
		||||
        build_command: task
 | 
			
		||||
        binary_name: hilbish
 | 
			
		||||
        extra_files: LICENSE README.md CHANGELOG.md .hilbishrc.lua nature libs docs emmyLuaDocs
 | 
			
		||||
 | 
			
		||||
@ -77,9 +77,7 @@ random errors introduced with the new Lua runtime (see [#197])
 | 
			
		||||
- `bait.release(name, catcher)` removes `handler` for the named `event`
 | 
			
		||||
- `exec`, `clear` and `cat` builtin commands
 | 
			
		||||
- `hilbish.cancel` hook
 | 
			
		||||
- 1st item on history is now inserted when history search menu is opened ([#148])
 | 
			
		||||
 | 
			
		||||
[#148]: https://github.com/Rosettea/Hilbish/issues/148
 | 
			
		||||
[#197]: https://github.com/Rosettea/Hilbish/issues/197
 | 
			
		||||
 | 
			
		||||
### Changed
 | 
			
		||||
@ -160,8 +158,6 @@ will result in the files being completed.
 | 
			
		||||
- Fixed grid menu display if cell width ends up being the width of the terminal
 | 
			
		||||
- Cut off item names in grid menu if its longer than cell width
 | 
			
		||||
- Fix completion search menu disappearing
 | 
			
		||||
- Completion paths having duplicated characters if it's escaped
 | 
			
		||||
- Get custom completion command properly to call from Lua
 | 
			
		||||
 | 
			
		||||
## [2.0.0-rc1] - 2022-09-14
 | 
			
		||||
This is a pre-release version of Hilbish for testing. To see the changelog,
 | 
			
		||||
 | 
			
		||||
@ -161,9 +161,6 @@ func matchPath(query string) ([]string, string) {
 | 
			
		||||
			entries = append(entries, entry)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if !strings.HasPrefix(oldQuery, "\"") {
 | 
			
		||||
		baseName = escapeFilename(baseName)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return entries, baseName
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -13,16 +13,12 @@ function bait.catch(name, cb) end
 | 
			
		||||
function bait.catchOnce(name, cb) end
 | 
			
		||||
 | 
			
		||||
--- Returns a table with hooks on the event with `name`.
 | 
			
		||||
--- @param name string
 | 
			
		||||
--- @returns table
 | 
			
		||||
function bait.hooks(name) end
 | 
			
		||||
function bait.hooks() end
 | 
			
		||||
 | 
			
		||||
--- Removes the `catcher` for the event with `name`
 | 
			
		||||
--- For this to work, `catcher` has to be the same function used to catch
 | 
			
		||||
--- an event, like one saved to a variable.
 | 
			
		||||
--- @param name string
 | 
			
		||||
--- @param catcher function
 | 
			
		||||
function bait.release(name, catcher) end
 | 
			
		||||
function bait.release() end
 | 
			
		||||
 | 
			
		||||
--- Throws a hook with `name` with the provided `args`
 | 
			
		||||
--- @param name string
 | 
			
		||||
 | 
			
		||||
@ -286,8 +286,6 @@ func (b *Bait) bcatchOnce(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
 | 
			
		||||
// Removes the `catcher` for the event with `name`
 | 
			
		||||
// For this to work, `catcher` has to be the same function used to catch
 | 
			
		||||
// an event, like one saved to a variable.
 | 
			
		||||
// --- @param name string
 | 
			
		||||
// --- @param catcher function
 | 
			
		||||
func (b *Bait) brelease(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
 | 
			
		||||
	name, catcher, err := util.HandleStrCallback(t, c)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
@ -301,8 +299,6 @@ func (b *Bait) brelease(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
 | 
			
		||||
 | 
			
		||||
// hooks(name) -> {cb, cb...}
 | 
			
		||||
// Returns a table with hooks on the event with `name`.
 | 
			
		||||
// --- @param name string
 | 
			
		||||
// --- @returns table
 | 
			
		||||
func (b *Bait) bhooks(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
 | 
			
		||||
	if err := c.Check1Arg(); err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
 | 
			
		||||
@ -1 +1 @@
 | 
			
		||||
Subproject commit 34a57c964590f89aa065188a588c7b38aff99c28
 | 
			
		||||
Subproject commit 8467b87dd8d49c68b4100b2d129d5f071544b8cf
 | 
			
		||||
@ -24,7 +24,7 @@ function hilbish.completion.handler(line, pos)
 | 
			
		||||
		return {compGroup}, pfx
 | 
			
		||||
	else
 | 
			
		||||
		local ok, compGroups, pfx = pcall(hilbish.completion.call,
 | 
			
		||||
		'command.' .. fields[1], query, ctx, fields)
 | 
			
		||||
		'command.' .. #fields[1], query, ctx, fields)
 | 
			
		||||
		if ok then
 | 
			
		||||
			return compGroups, pfx
 | 
			
		||||
		end
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user