SourceForge has been redesigned. Learn more.

Automcompletion works badly

  • Tricolore

    Tricolore - 2012-06-21

    Auto completion of LaTeX commands just messes upp my writing. I can't look at
    the screen and write code at the same time, and often I have noteced when I
    look back at the screen that auto completion just have inserted the name of
    some function other that that I typed on the keyboard, so it ends up being me
    who has to correct the auto completion functionality. Although sometimes it
    can be really helpful, for example when I'm trying to remember the name of a
    lable for an equation (I don't know if this counts as auto completion of
    functions though). Another function that I have found also mostly causes
    trouble is auto completion of parenthesis.

    I think the default should be that auto completion is of, and that people can
    turn it on if they really want to.

  • Nobody/Anonymous

    you have found out how to turn automatic autocompletion off ?

    Anyway i don't think that we will change the defaults as nobody else has

  • Tim Hoffmann

    Tim Hoffmann - 2012-06-21

    In general, neither command completion nor brace matching should interfere
    with the flow of your writing.

    • If you do explicitly not trigger the command completion, it automatically closes without iserting any code, when you write the end of a command (closing bracket or space)

    • For bracket completion, the closing bracket is inserted. You can just carry on typing, which pushes the closing bracket along in front of your cursor. Once you type the closing bracket explicitly, the cursor will move beyond the existing one instead of inserting a second.

    If you have a case in which this does not work, you may post an example.

  • Anonymous

    Anonymous - 2012-07-21

    My thoughts:
    I myself thought that this behavior is buggy but now that I
    understand how it works I try to adapt.

    I did find it annoying that when I tried to enclose an already written part of
    my text in curly brackets (i.e. \small as in

    Main title of something {\small (less important things)}

    ) I always had to remove the auto-inserted closing brace (or I got compiling
    I adapted: I have turned this feature off.

    While I love that selected text will be put in the first parameter I would
    like to have something like that for brackets.
    So in that example above I'd select

    (less important things)

    and either type { or use a shortcut) and it would get completed to

    {less important things)}

    while the inner part becomes an active placeholder (and is still selected).

  • Tim Hoffmann

    Tim Hoffmann - 2012-07-26

    I myself thought that this behavior is buggy but now that I understand how
    it works I try to adapt.

    There is no need to adapt. Did you read in the other thread, that it can be
    simply turned off?

    1. I implemented your idea on keeping the selection when typing brackets (rev. 3060):
      foo | bar -> foo (|) bar
      However I see no benefit in additionally putting a placeholder on the selected
      text. Therefore I left it out. What was your reason to want a placeholder?
  • Anonymous

    Anonymous - 2012-07-28
    1. I adapted because I think that it is a useful feature and because I did not know its purpose it annoyed me.
    2. Thank you for implementing my idea. I think it will be very useful. And I guess you are right about that placeholder thing. I went a little overboard there. There's no use.
  • Tim Hoffmann

    Tim Hoffmann - 2012-07-28

    Note: The "auto replace latex command" was improved to only alter existing
    latex commands. i.e. it does not replace following text if a new command is
    typed in front as described here. That should solve most
    cases of unwanted replacement.



Cancel  Add attachments