Skip to content
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

Filename completion #12

Merged
merged 8 commits into from
Sep 17, 2015
Merged

Filename completion #12

merged 8 commits into from
Sep 17, 2015

Conversation

gwenn
Copy link
Collaborator

@gwenn gwenn commented Sep 15, 2015

Ok,
I am not happy with the Competer Trait but it works...
If you have any suggestion, just tell me.
Regards.

@kkawakam
Copy link
Owner

Are you unhappy with something specific in the Completer Trait? It seems sufficient to me

Everything looks good to me.

@gwenn
Copy link
Collaborator Author

gwenn commented Sep 16, 2015

I've tried the following signature (&mut self):

fn complete(&mut self, line: &str, pos: usize) -> Result<(usize, Vec<String>)>;

without success.
For example, if you want to make a SQL completer but the schema has changed, you will have to invalidate/mutate the cached database metadata...

@gwenn
Copy link
Collaborator Author

gwenn commented Sep 16, 2015

The next pull request should be 'incremental history search' (Ctrl-R/S) and may be some 'word' actions (delete previous/next word, ...).
Regards.

kkawakam added a commit that referenced this pull request Sep 17, 2015
@kkawakam kkawakam merged commit 5a6e903 into kkawakam:master Sep 17, 2015
@gwenn gwenn deleted the exp branch September 19, 2015 07:20
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.

2 participants