Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Autocomplete for "xi" does not work
@ 2023-12-28  8:44 unclefunctor
  2023-12-28 15:03 ` classabbyamp
  2023-12-28 15:03 ` [ISSUE] [CLOSED] " classabbyamp
  0 siblings, 2 replies; 3+ messages in thread
From: unclefunctor @ 2023-12-28  8:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]

New issue by unclefunctor on void-packages repository

https://github.com/void-linux/void-packages/issues/47936

Description:
### Is this a new report?

Yes

### System Info

Void 6.6.8_1 x86_64 GenuineIntel notuptodate rrFFFFFF

### Package(s) Affected

xtools

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

The auto complete for xbps-install works, so the "xi" alias/helper script should too.

I was able to get to to work by adding a custom bash completion script (~/.local/share/bash-completion/completions/xi):

`source /usr/share/bash-completion/completions/xbps-install`
`_xi_patch () {`
`   _xbps_complete xbps-install $2 $3`
`}`
`complete -F _xi_patch xi`

This simply tricks the _xbps_complete function into thinking it was called for "xbps-install".  I filed this issue so other users could find the fix, and I suggest making a one line change to your "xbps" script so it recognizes "xi".

Thanks for your awesome distro :)


### Actual behaviour

Does not autocomplete

### Steps to reproduce

type "xi SDL" and press tab.  Nothing happens.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Autocomplete for "xi" does not work
  2023-12-28  8:44 [ISSUE] Autocomplete for "xi" does not work unclefunctor
@ 2023-12-28 15:03 ` classabbyamp
  2023-12-28 15:03 ` [ISSUE] [CLOSED] " classabbyamp
  1 sibling, 0 replies; 3+ messages in thread
From: classabbyamp @ 2023-12-28 15:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 264 bytes --]

New comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/issues/47936#issuecomment-1871253872

Comment:
1. xtools issues should go in https://github.com/leahneukirchen/xtools
2. I don't think xtools has bash completions

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ISSUE] [CLOSED] Autocomplete for "xi" does not work
  2023-12-28  8:44 [ISSUE] Autocomplete for "xi" does not work unclefunctor
  2023-12-28 15:03 ` classabbyamp
@ 2023-12-28 15:03 ` classabbyamp
  1 sibling, 0 replies; 3+ messages in thread
From: classabbyamp @ 2023-12-28 15:03 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1158 bytes --]

Closed issue by unclefunctor on void-packages repository

https://github.com/void-linux/void-packages/issues/47936

Description:
### Is this a new report?

Yes

### System Info

Void 6.6.8_1 x86_64 GenuineIntel notuptodate rrFFFFFF

### Package(s) Affected

xtools

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

The auto complete for xbps-install works, so the "xi" alias/helper script should too.

I was able to get to to work by adding a custom bash completion script (~/.local/share/bash-completion/completions/xi):

`source /usr/share/bash-completion/completions/xbps-install`
`_xi_patch () {`
`   _xbps_complete xbps-install $2 $3`
`}`
`complete -F _xi_patch xi`

This simply tricks the _xbps_complete function into thinking it was called for "xbps-install".  I filed this issue so other users could find the fix, and I suggest making a one line change to your "xbps" script so it recognizes "xi".

Thanks for your awesome distro :)


### Actual behaviour

Does not autocomplete

### Steps to reproduce

type "xi SDL" and press tab.  Nothing happens.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-12-28 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-28  8:44 [ISSUE] Autocomplete for "xi" does not work unclefunctor
2023-12-28 15:03 ` classabbyamp
2023-12-28 15:03 ` [ISSUE] [CLOSED] " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).