-
Notifications
You must be signed in to change notification settings - Fork 163
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
Adding interactive mode #38
Conversation
I creating functions such as complementary functions and settings, so please do not merge yet. |
Good job! I will check it @Code-Hex |
Hi @Code-Hex, please check the PR I sent to you: Code-Hex#1 in order to fix your conflicts and add the latest features. By the way, I checked your files and they are working properly. :) However, we will need to solve the conflicts first |
Fixing Conflicts for accepting filhodanuvem#14 and filhodanuvem#38
@luizperes Thanks for the conflict was fixed. |
Incredible job @Code-Hex 👏 🎆 🤘
|
@cloudson Thank you very much!!
I understand the desire to make your installation faster.
That's good! Rather I should have done so 😓 |
@cloudson @luizperes I'm sorry and I was late because I was busy. |
Since the completion function was not enough, I committed it again. |
|
||
func suggestTokensFromInputting(focus []rune, pos int) [][]rune { | ||
return suggestInputting(focus, pos, [][]rune{ | ||
[]rune("select"), |
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.
We need to declare the reserved words as constants on lexical package to use these there and here.
This pull request is too big already so please, let us work in another PR.
// gitql> select * from commits where committer = "K" order by com[tab | ||
// gitql> select * from commits where committer = "K" or com[tab | ||
// In the case is inputting column inputted after "where", "by", "and", "or" | ||
return suggestColumnsFromInputting(focus, pos) |
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.
I tried to type
select message from commits where
tab or
select mesage from commits where date > '2017-01-01 and
tab
And I saw the suggestions for reserved word instead of columns. It would be nice put unit tests for the functions, I can help you.
@Code-Hex I'm really impressived with your work here. Thank you again. |
@cloudson OK! |
What I did?
gitql select hash, author, message from commits