Skip to content

Initial commit of Bash tab completion code.#68

Closed
hackerb9 wants to merge 1 commit intoastrand:masterfrom
hackerb9:bashcompletion
Closed

Initial commit of Bash tab completion code.#68
hackerb9 wants to merge 1 commit intoastrand:masterfrom
hackerb9:bashcompletion

Conversation

@hackerb9
Copy link
Copy Markdown
Collaborator

Working for all basic cases. Tab completion of filenames, all flags,
all selections (case insensitive), and most TARGETS. ("Most" because
this code cannot yet handle spaces in the property names.)

For example, below I typed "xclip -se TAB s TAB -t TAB TAB TAB"

$ xclip -selection Secondary -target 
COMPOUND_TEXT             TARGETS                   text/plain;charset=utf-8
MULTIPLE                  TEXT                      TIMESTAMP
STRING                    text/plain                UTF8_STRING

As you can see it looked up the targets available for the selection I mentioned and offers them up for completion.

Note: as a debian package, this file is supposed to install using dh_bash-completion, but I'm not exactly sure where to put that. Alternately, this could be copied by hand to /etc/bash_completion.d/ or even simply sourced at login.

Working for all basic cases. Tab completion of filenames, all flags,
all selections (case insensitive), and most TARGETS. ("Most" because
this code cannot yet handle spaces in the property names.)
@hackerb9
Copy link
Copy Markdown
Collaborator Author

hackerb9 commented Nov 6, 2020

This merge is subsumed by #88.

@hackerb9 hackerb9 closed this Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant