Skip to main content
Filter by
Sorted by
Tagged with
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 ...
Kyle's user avatar
  • 324
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 ...
Santiago Squarzon's user avatar
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. ...
XDR's user avatar
  • 4,510
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 <...
64rl0's user avatar
  • 112
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 ...
XDR's user avatar
  • 4,510
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 ...
David G.'s user avatar
  • 700
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 ...
Ralf_Reddings's user avatar
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 ...
Rishi K.'s user avatar
  • 141
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 ...
Mike's user avatar
  • 31
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 ...
Blaisem's user avatar
  • 657
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 ...
glades's user avatar
  • 5,028
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/...
kreso's user avatar
  • 23
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 ...
Ralf_Reddings's user avatar
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,...
mrplants's user avatar
  • 677
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 ...
Alejandro DC's user avatar

15 30 50 per page
1
2 3 4 5
25