Skip to content

case insensitive autocomplete #1046

Closed
Closed

Description

@mglatz

Details for the issue

I'd love to have autocomplete on table names case insenstive. as My tables usually begin with uppercase char, I'd like if they would come up in autocomplete even if I start writing their name with lowercase.

Useful extra information

I'm opening this issue because:

  • DB4S is crashing
  • DB4S has a bug
  • [ x] DB4S needs a feature
  • DB4S has another problem

I'm using DB4S on:

  • [ x] Windows: ( version: ___ )
  • Linux: ( distro: ___ )
  • Mac OS: ( version: ___ )
  • Other: ___

I'm using DB4S version:

  • [x ] 3.9.1
  • 3.9.0
  • Other: ___

I have also:

Activity

  1. chrisjlocke commented on Jun 22, 2017

    @chrisjlocke
    Member

    Wow, never knew that before. Most of my tables are normally always lowercase, so haven't come across this before. Can undertand why that would be undesirable.

  2. justinclift commented on Jun 22, 2017

    @justinclift
    Member

    @mglatz This sounds like a reasonable idea. Not sure how easy or difficult it would be to add, but it wouldn't surprise me if we just needed to enable some option when we initialise our QScintilla bits (which we use for this).

    This sounds like it might be the right kind of thing:

    Hmmm, it seems like we already set that to false:

    So maybe that's not the option we need for this... 😉

    Someone else will probably know more about this stuff. 😄

  3. chrisjlocke commented on Jun 22, 2017

    @chrisjlocke
    Member

    It does say though, "Note that setting a lexer may change the case sensitivity." which is then what happens in line 118.

    sqlLexer->setColor(Qt::black, QsciLexerSQL::Default);

    Maybe the setAutoCompletionCaseSensitivity(false); could be put after that line, or debug what the case sensitivity is, to see if its been changed.

  4. justinclift commented on Jun 22, 2017

    @justinclift
    Member

    Ahhh. We could move the whole if {} clause to after line 129.

    As in, I can do that right now in our master branch, if someone wants to check the nightly build tomorrow. (?) 😄

  5. justinclift commented on Jun 22, 2017

    @justinclift
    Member

    ... or I could just test it myself right away. Hmmm, gimme a few mins... 😄

  6. justinclift commented on Jun 22, 2017

    @justinclift
    Member

    Nope, that didn't work. The autocomplete didn't notice tables starting with a capital letter, so it seems like this will need more careful attention to figure out. 😉

    I'll leave it to someone else instead, as my focus is elsewhere for now.

  7. MKleusberg commented on Jun 22, 2017

    @MKleusberg
    Member

    This should be fixed in the next nightly build. @mglatz Can you download and try the nightly build tomorrow or some later day to confirm it's working for you? There's currently a bug in our nightlies which causes them to crash more frequently though - we'll try to fix that as soon as possible, too 😉

  8. chrisjlocke commented on Jun 27, 2017

    @chrisjlocke
    Member

    I can confirm this now works.

    image

    Prodding @mglatz ... ;) 🎋

  9. mglatz commented on Jun 27, 2017

    @mglatz
    Author

    wow thanks! :)

  10. chrisjlocke commented on Jun 27, 2017

    @chrisjlocke
    Member

    If you can confirm it works OK for you, @mglatz, I'll close this issue. 🍾

  11. mglatz commented on Jun 27, 2017

    @mglatz
    Author

    it works on latest nightly (3.9.99 x64)

  12. chrisjlocke commented on Jun 27, 2017

    @chrisjlocke
    Member

    Thanks for reporting back! 👍

  13. mglatz commented on Jul 31, 2017

    @mglatz
    Author

    I think this no longer works on 3.9.99 beta. can anyone confirm? thanks

  14. reopened this on Jul 31, 2017
  15. justinclift commented on Jul 31, 2017

    @justinclift
    Member

    Oh, interesting. Does it work with the 3.10.0-beta1 release from a few days ago?

  16. chrisjlocke commented on Jul 31, 2017

    @chrisjlocke
    Member

    Works for me on Win 10 x64 for the 3.10.0.beta...

    image

  17. mglatz commented on Jul 31, 2017

    @mglatz
    Author

    Turns out I did not have the proper version installed (beta), but one of earlier builds. In Beta (3.9.100) it works. Sorry for confusion.

  18. justinclift commented on Jul 31, 2017

    @justinclift
    Member

    No worries at all. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions