Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24836

Provide a variable CurrentDocument:CurrentWord

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.15.0-beta1
    • None
    • Editors
    • None
    • d03f723060431fb56d2ef7e548b59752578958f1 (qt-creator/qt-creator/master)

    Description

      Can you provide a variable that contains the current word the cursor is placed on?

      Similar like CurrentDocument:Selection but without the need to select the word at first.

       

      Use case would be for example an External Tool that runs

       cmake --help-command %{CurrentDocument:CurrentWord}

      which I would use on cmake files to get access to its help.  Looking something up in a man page would be another use case.

       

      At the moment I would need to use these workarounds:

      • extract the word with the help of the Filename, Row and Column in a shell tool
      • select the current word and use CurrentDocument:Selection

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            larsfischer Lars Fischer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes