Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#715 Select package name in “Packages help” dialog

open
nobody
None
5*
2014-06-02
2014-05-31
doncherry
No

TXS 2.7.0 on Windows 7

When you open the “Packages help” dialog, the cursor is placed behind the package name in the entry field. It’d be great if the entire package name would be selected when this popup opens so that the user can start typing in a different package name right away without having to select/delete the current one.

In case help for the same package is needed again, it should be possible to hit Enter even if the package name is selected. Currently, if the name is selected, Enter places the cursor behind the name and a second stroke of Enter is needed to open the documentation.

As you might be able to tell, I really like this feature, especially because it opens up the pdf right away, as opposed to MiKTeX’s texdoc, which often first opens an html file listing the support files. Hence, I assigned a keyboard shortcut to this function (Ctrl+Shift+P). If this feature is generally well-received, it might be worthwhile adding a keyboard shortcut to it by default.

Discussion

  • Denis Bitouzé
    Denis Bitouzé
    2014-05-31

    And what about a completion list of the known packages (okay, load a list of 4705 names could be too long)?

     
    • Tim Hoffmann
      Tim Hoffmann
      2014-06-01

      Would probably be possible, when we find some time to implement it. Currently the list only contains the included packages and you can still type in any valid package name you want. Is there a real benefit of having a list of all packages?

       
  • upa
    upa
    2014-05-31

    It would also be good as in other editors (like auctex, kile., For example) that texstudio you load the list of all available packages in texlive, MacTeX or miktex and when the option is used \ usepackage somehow could have the option of show all packages available and a brief description of this, that make things easier.

    Also would be good in the quick start was another tab with latex packages sorted by sections or something, and where you could select the packages you want.

    the list of packages sorted alphabetically with a short description are in:
    http://www.ctan.org/pkg/

    List sorted by topics:
    http://www.ctan.org/topic/

    currently exist 4705 pack­ages

     
    Last edit: upa 2014-06-01
    Attachments
    • Tim Hoffmann
      Tim Hoffmann
      2014-06-01

      when the option is used \ usepackage somehow could have the option of show all packages available and a brief description of this, that make things easier.

      The package list is already available in the completer. When you have typed \usepackage{g|} (| denoting the cursor), press Ctrl+Space to open the completer with all packages starting with g.

      and a brief description of this, that make things easier.
      We can do this when there is time.

      Also would be good in the quick start was another tab with latex packages sorted by sections or something, and where you could select the packages you want.

      I don't think that would be really useful. If you write a complex document with lots of packages, you'll probably don't use the quick start dialog, at least not in a way that you go through all the packages and make a decision which ones you'll probably use. More likely you'll either add additional packages dynamically later on when you need them. Or, you are already having a similar document with that structure. In the latter case people usually just copy the file and start editing. You can also make a template of it and use this as a starting point.

      The quick start dialog is something we inherited during the fork from Texmaker. It's good, if you just want to quickly have a compile-ready document (I use it for this myself) but I don't think it's a meaningful help for more complex document generation (that's why I implemented the template support in TXS). For the above reasons I won't put any effort into the quick start dialog. IMHO there's more useful stuff to do and the core developers need to keep focus. However, if you feel that a package selector may help and you can program, you are always welcome to join and contribute a patch.

       
  • upa
    upa
    2014-06-02

    you're right, did not know what to complete packages with the shortcut Ctrl + Space (not because they do not like to be self-automatic command completion), shame my ignorance, this feature will be useful to me.

    The package in the quick start, for me if it might be useful, in addition to a description of the most common and useful (like kile), unfortunately I still have no good knowledge in programming, but when I have, very pleasantly will contribute in texstudio code.