D17971: Revive External Tools plugin

Dominik Haumann noreply at phabricator.kde.org
Mon Feb 4 13:43:29 GMT 2019


dhaumann added a comment.


  The following list is my current proposal of variables. These variables already vary from Qt Creator. Not everything else matches anyways:
  
    CurrentDocument:FileBaseName        - Current document: File base name without path and suffix.
    CurrentDocument:FileName            - Current document: File name without path.
    CurrentDocument:FilePath            - Current document: Full path including file name.
    CurrentDocument:FileExtension       - Current document: File extension.
    CurrentDocument:Text                - Current document: Contents of entire file.
    CurrentDocument:Path                - Current document: Full path excluding file name.
    CurrentDocument:NativeFilePath      - Current document: Full path including file name, with native path separator (backslash on Windows).
    CurrentDocument:NativePath          - Current document: Full path excluding file name, with native path separator (backslash on Windows).
    
    CurrentDocument:Cursor:Line         - Line number of the text cursor position in current document (starts with 0).
    CurrentDocument:Cursor:Column       - Column number of the text cursor position in current document (starts with 0).
    CurrentDocument:Cursor:XPos         - X component in global screen coordinates of the cursor position.
    CurrentDocument:Cursor:YPos         - Y component in global screen coordinates of the cursor position.
    CurrentDocument:Selection:Text      - Current document: Full path excluding file name.
    CurrentDocument:Selection:StartLine
    CurrentDocument:Selection:StartColumn
    CurrentDocument:Selection:EndLine
    CurrentDocument:Selection:EndColumn
    CurrentDocument:RowCount            - Total number of lines in the current document.
    
    Date:<format>                       - The current date (QDate formatstring).
    Date:Locale                         - The current date in current locale format.
    Date:ISO                            - The current date (ISO).
    
    Time:<format>                       - The current time (QTime formatstring).
    Time:Loca                           - The current time in current locale format.
    Time:ISO                            - The current time (ISO).
    
    Env:<value>                         - Access environment variables.
    
    JS:<expression>                     - Evaluate simple JavaScript statements. The statements may not contain '{' nor '}' characters.
    
    UUID                                - Generate a new UUID.
  
  Any objections or additons to this?

REPOSITORY
  R40 Kate

REVISION DETAIL
  https://phabricator.kde.org/D17971

To: dhaumann, cullmann, gregormi
Cc: brauch, pino, ngraham, kwrite-devel, hase, michaelh, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20190204/e77dc63a/attachment.html>


More information about the KWrite-Devel mailing list