Results 1 to 2 of 2

Thread: thinAir:File.ext'ensions...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,527
    Rep Power
    170

    thinAir:File.ext'ensions...

    this mostly about thinAir, file-extensions limiting behaviour when opening files that it could display (it's scintilla eh?! it could!)

    disable f5/f8 and the buttons if no App_Entrypoint within the current open document nor in a mentioned #include-*.* and we are fine almost.

    when i use for example ".thinBasic" for a project file that contains preparsing, uses, declarations, type definitions and global dimensioning only ".TBMain" for a file that only contains tbMain-function, ".tbCallbacks" - contains what it says - thincore does not complain when i run it from prompt.

    A file extension as ".tbScript" for a script including an app_Entrypoint (Function TBMain) runs well. but #bundle should know to keep it being a script always and never add it to a bundled exe nor delete it if bundle was succesful, i.e. refuse to bundle executable if file ends with "script". it can be copied to the data contained within the bundle to be a source of code-pieces but not be a part of the code to be executed directly.

    Only thinAir is the hindrance.

    When i right click a .rc (resource) -file in windows-explorer and select open with/edit with and choose thinAir just to exchange a value it will not open nor display it in thinAir
    in thinAir-filebrowser - even if i choose setting to show files that are not the currently opened script it's limited to display .tBasic*-files only. so the filebrowser will not trigger to show the .rc-file neither.

    But if using the file-open menu or toolbar-button to open and select display all files ("*.*") to filter the type of file, i can load for example an .rc-file, create a backup, exchange some value and save it again.
    Maybe a 3rd setting for thinAir filebrowser (bug?? not completed all settings sections? the filebrowser settings are in section "[codebrowser]". Anyway it can "Show foreign, non-thinbasic files"=TRUE within the filebrowsers listview and make use of
    FFF01 (foreignfilefilter01) to FFFFF (foreignFileFilterFF)

    remove the .tBasic*-check of the thinAirs commandline-execution to enable "Open with" from Windows-explorer that thinair will
    display any file or only those theirs Registry\HKeyClasses registered ContentType or registered PerceivedType matches "*text*"
    and #
    add a setting to "BackUpAfterLoad" right before "SaveAllOnRun" so initially when thinAir started or when i load any document it will backup a file every time when it gets loaded and the setting is "on" before making any changes to it
    I think there are missing some Forum-sections as beta-testing and support

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Hi Rene,

    thank you for your ideas, as always. I would also appreciate the ability to open supporting formats, such as INI/XML/JSON... Nice idea with the .RC as well.

    I cannot promise quick implementation of these wishes (workload+flat renovation - will occupy my time till end of Q2 2021), but these are definitely the suggestions worth implementing.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. thinAir: File saving bug adding redundant characters, confuses git
    By Petr Schreiber in forum thinAir General
    Replies: 1
    Last Post: 18-12-2019, 18:32
  2. ThinAIR and assembler source file
    By RobertoBianchi in forum thinAir Tips and Tricks
    Replies: 0
    Last Post: 11-10-2006, 15:33

Members who have read this thread: 1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •