375 questions
0
votes
1
answer
79
views
Python tab completion triggers attribute access
I'm running into an issue with tab completion in Python. I have two classes, one serving as a backend that is responsible for managing i/o of a large data collection, and a second that serves as a UI ...
1
vote
1
answer
48
views
Is it possible to add a closing parenthesis on tab-completed methods with no arguments?
Is there a way to customize the default behavior of TabExpansion2 so that when a method with no parameters is completed, it automatically adds a closing parenthesis ) instead of leaving an opening ...
0
votes
0
answers
14
views
Include redirects in $words for zsh completions or equivalent
How can I include redirects in $words for zsh completions or do something equivalent?
If it cannot be done for $words, I know that I can use ${(z)BUFFER} to parse the full command line into an array. ...
1
vote
1
answer
76
views
zsh completion function (compdef) not completing _arguments
I am writing an autocomplete function for my personal cli. Here below is a reduced version of my compdef.
As I type my-cli <TAB> I can see the subcmd autocompleting.
As I type my-cli macos <...
0
votes
0
answers
51
views
bash complete to empty string while still escaping characters in file completions & appending / to dir completions
TL;DR
In bash (preferably bash 3+), how can I support empty string ('') as a completion (amongst others) for a value for an option for a command, while also supporting path completions for other ...
0
votes
0
answers
24
views
tcsh completion of subcommands
I have a number of commands that take other commands as parameters. Not just the command name, but the full command line.
Obvious examples are sudo and ssh, as in:
sudo chown bob /tmp/a_file_for_bob
...
2
votes
1
answer
69
views
How to get a parameter for my function to auto complete Command names like 'Get-Command'?
I am writting a function that will b providing help for the various commands/functions I have. I know PowerShell already goes to a great length with "real time" help, I just need a function ...
0
votes
1
answer
104
views
Bash prompt disappears after selecting a completion from the FZF list
I am trying to program Tab completion in Bash using FZF. The below code tries directory path completion for a custom command mycmd. For the first argument, upon hitting tab, directories found by the ...
0
votes
0
answers
36
views
Tab-completion not working in 'prlctl enter' container on Mac with Parallel's Desktop
I've written some code to give my Mac users a console into their Parallel's Desktop VM in order to run our Node JS framework. The code essentially finds their running Windows VM and uses 'prlctl enter ...
3
votes
2
answers
137
views
How to reproduce tab completion of properties for generic psobjects on the pipeline in a custom function?
If I type onto the command line:
[pscustomobject]@{ name = 'test'; description='doing test' } | Select-Object
I can press tab and complete the property names—besides the default properties, either of ...
0
votes
1
answer
56
views
Write bash autocomplete for executing executables found in directory tree
I want to get bash autocompletion to work whenever I want to start an executable, e.g. I want to execute
./build/test/auto/ProviderTester(.exe)
but I only want to type
./
and bash should give me ...
1
vote
1
answer
54
views
Git autocomplete custom command (not arguments after)
I've been trying to add an autocomplete for my custom command, "git extract-unmerged". I'm using git on Windows in git bash through MSYS2 if it matters.
I created a bash script in $HOME/...
1
vote
2
answers
112
views
How to stop PsReadline from appending '.exe' to executables it suggests when tab is pressed
For example, when I type wg and then press tab key, I get wget.exe, I would instead like to get just wget. while I am happy with most things this one feature really annoys me.
Even worse, when I try ...
0
votes
0
answers
51
views
Multiline zsh Completions
After much struggling, I have finally wrangled the zsh completion commands (_describe and _arguments) into doing what I want, which is to autocomplete some commonly used curl commands for me. However,...
2
votes
1
answer
119
views
PowerShell 7 autocompletion adds .\ to the file name in the current folder... which is sometimes a problem
I use pdflatex from the PowerShell 7 terminal on Windows 11.
When I press "tab" to autocomplete the name of the file in the current folder, it adds .\ at the begining (for example, I get ...