-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: check for completion files #618
base: main
Are you sure you want to change the base?
Conversation
483d0c3
to
8e65a67
Compare
0c75196
to
ee9adb7
Compare
@jankatins, thoughts? |
local c cfile bkpfile | ||
# The plugin == . is a semi-hack/trick to handle 'creinstall .' properly | ||
nt () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats nt
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nt
is just a random function name. It could be anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, stupid question: why not a speaking function name so one can actually know what it does by just reading the function name? reading the zinit code is hard enough even without random function names :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest, I'm fine with the "less magic" variant of renaming to What happens if two files end up getting symlinked under the same name? |
assert $state equals 0 | ||
assert "$ZPLUGINS/test---ignored_completions/_valid" is_file | ||
assert "$ZPLUGINS/test---ignored_completions/__init__.py" is_file | ||
assert "$ZINIT[COMPLETIONS_DIR]/_valid" is_file | ||
COMPS=( "$ZINIT[COMPLETIONS_DIR]"/_* ) | ||
assert __init__.py is_not_value_in $COMPS | ||
zinit delete --yes test/ignored_completions | ||
run zinit cuninstall test/ignored_completions | ||
assert $output contains 'No completions found for `test/ignored_completions' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a test with two files of the same name getting linked under different names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jankatins Good idea.
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
e266994
to
627ea8e
Compare
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
|
||
|
||
- name: "gh-r" | ||
run: $HOME/.local/bin/zunit run --verbose tests/gh-r.zunit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
run: $HOME/.local/bin/zunit run --verbose tests/gh-r.zunit | |
run: zunit run --verbose tests/gh-r.zunit |
Description
Related Issue(s)
Motivation and Context
Usage examples
before
after
How Has This Been Tested?
Types of changes
Checklist: