Details
-
Suggestion
-
Resolution: Done
-
Not Evaluated
-
None
-
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
For Gerrit Dashboard: QTCREATORBUG-24836 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
318865,3 | TextEditor: add macro variable containing the word under cursor | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |