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

Auto-complete hides caret and typing after hitting enter #92

Open
redtopia opened this issue Oct 5, 2017 · 7 comments
Open

Auto-complete hides caret and typing after hitting enter #92

redtopia opened this issue Oct 5, 2017 · 7 comments

Comments

@redtopia
Copy link

redtopia commented Oct 5, 2017

Using the following example, auto-complete often hides the next line I'm working on after I hit ENTER because it doesn't preposition itself correctly. It will sit on top of the line I'm typing, preventing me from seeing what I type. It will usually stays that way unless I do something like hit ESC or click away.

var results = queryExecute(
    sql="
        SELECT *
        FROM Users
        WHERE userID = :userID
    ",
    params=[
        {name="userID", value=userID, cfsqltype="cf_sql_bigint"}
    ],
    options={
        datasource: dsn
    }
);

To reproduce the behavior, open up an editor and manually type in the example above.

Although I like the auto complete feature, when it hides my typing, it's incredibly annoying and difficult to work with. What I think needs to happen is when the user hits enter, auto complete should go away, and then pop up again if the user starts typing. If this can't be fixed, please advise how to turn off auto-complete, and if possible, could I get it to open using a command key?

@jcberquist
Copy link
Owner

If you are referring to the doc popup, and not the auto complete suggestions themselves, you can turn it off by setting "cfml_completion_docs": false in your CFML settings.

@redtopia
Copy link
Author

redtopia commented Oct 5, 2017

No, I turned that off already and assigned a keyboard shortcut for it. I’m talking about the code completion popup.

@jcberquist
Copy link
Owner

Hmm, I don't see the behavior you are describing...I am probably still not understanding you. In any case, you can turn off auto complete entirely by setting "auto_complete": false in your global user settings. You can still trigger it with CTRL + SPACE in such a case. Is that what you are looking for?

@redtopia
Copy link
Author

redtopia commented Oct 5, 2017

Here's an animation of the behavior:

http://g.recordit.co/GfdoBqiXpe.gif

@redtopia
Copy link
Author

redtopia commented Oct 5, 2017

Is that something that your plugin can fix, or is that a ST3 issue?

@jcberquist
Copy link
Owner

Ok, that is what I was referring to earlier - you can turn that popup off with "cfml_completion_docs": false

@redtopia
Copy link
Author

redtopia commented Oct 5, 2017

OK, that's much better! If there any way to get it fixed, I would probably turn it back on. Thanks!

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

No branches or pull requests

2 participants