Skip to content

Binaries with a dash char as part of their filenames fails to command-complete when using clink.argmatcher() #194

@garoto

Description

@garoto

Trying to port my previous simple man youtube-dl auto-complete script and I can't get it to work. Snippet below.

clink.argmatcher("youtube-dl")
:addflags("--abort-on-error", "--abort-on-unavailable-fragment", "--add-header", "--add-metadata")

Any binary with a dash in its filename will fail the argmatcher if my simple testing isn't flawed.

clink --version
1.2.43.0119c5

Running Windows 8.1.

Edit: adding my current clink_settings since they can be relevant perhaps:

clink.autostart                   
clink.colorize_input              True
clink.default_bindings            bash
clink.gui_popups                  False
clink.logo                        none
clink.paste_crlf                  space
clink.path                        
clink.promptfilter                False
cmd.auto_answer                   answer_yes
cmd.ctrld_exits                   True
cmd.get_errorlevel                True
color.arg                         bold
color.arginfo                     yellow
color.argmatcher                  
color.cmd                         bold
color.cmdredir                    bold
color.cmdsep                      bright yellow
color.description                 bright green
color.doskey                      bold cyan
color.filtered                    bold
color.flag                        default
color.hidden                      
color.horizscroll                 
color.input                       
color.interact                    bright yellow on blue
color.message                     default
color.popup                       
color.popup_desc                  
color.prompt                      
color.readonly                    
color.selected_completion         
color.selection                   underline red
color.unexpected                  default
debug.log_terminal                False
doskey.enhanced                   False
exec.aliases                      True
exec.commands                     True
exec.cwd                          True
exec.dirs                         True
exec.enable                       True
exec.files                        False
exec.path                         True
exec.space_prefix                 True
files.hidden                      True
files.system                      False
history.dont_add_to_history_cmds  exit,ls,la,del,cls,vd,cd
history.dupe_mode                 erase_prev
history.expand_mode               off
history.ignore_space              True
history.max_lines                 0
history.save                      True
history.shared                    True
history.sticky_search             False
lua.break_on_error                False
lua.break_on_traceback            False
lua.debug                         False
lua.path                          
lua.reload_scripts                False
lua.strict                        True
lua.traceback_on_error            False
match.expand_envvars              True
match.ignore_accent               True
match.ignore_case                 relaxed
match.sort_dirs                   with
match.translate_slashes           system
match.wild                        True
prompt.async                      True
prompt.transient                  off
readline.hide_stderr              False
terminal.adjust_cursor_style      True
terminal.differentiate_keys       False
terminal.emulation                auto
terminal.raw_esc                  False
terminal.use_altgr_substitute     False

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions