diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index edf69e3..2f0f78e 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,3 +1,22 @@ +### v1.3 Jan. 17, 2024 + +Enhanced modules, improved usability, fixed some bugs. + +* Added an option to the `fetch(...)` function to specify whether to allow insecure connection for HTTPS +* Added global search to the code editor +* Added a shortcut Ctrl+W to select the current word +* Added a shortcut Ctrl+/ to toggle comment +* Added shortcuts Alt+Up/Alt+Down to move code lines up/down +* Added shortcuts Ctrl+PgUp/Ctrl+PgDown to change asset pages +* Added shortcuts Ctrl+U/Ctrl+Shift+U to toggle lower case/upper case +* Added a preference setting to specify indent rule +* Added a preference setting to specify column indicator +* Changed default window scale to 2x if display is big enough +* Improved rendering of document layout +* Optimized text width measurement of the code editor +* Updated the text-based editors to set focus properly +* Updated the code editor to allow moving cursor to the first none-space character when press the Home key + ### v1.2.2 Sep. 17, 2023 Enhanced modules, improved usability, fixed some bugs. diff --git a/docs/about.html b/docs/about.html index 20f1925..234c563 100644 --- a/docs/about.html +++ b/docs/about.html @@ -95,7 +95,7 @@


- © 2020 - 2023 Tony Wang | + © 2020 - 2024 Tony Wang | Changelog

diff --git a/docs/changelog.html b/docs/changelog.html index 0afddce..ebbe468 100644 --- a/docs/changelog.html +++ b/docs/changelog.html @@ -43,7 +43,7 @@

- © 2020 - 2023 Tony Wang | + © 2020 - 2024 Tony Wang | Changelog

diff --git a/docs/documents.html b/docs/documents.html index db0bf60..8695c74 100644 --- a/docs/documents.html +++ b/docs/documents.html @@ -45,7 +45,7 @@

- © 2020 - 2023 Tony Wang | + © 2020 - 2024 Tony Wang | Changelog

diff --git a/docs/documents/manual.md b/docs/documents/manual.md index 99b475a..b26d0ce 100644 --- a/docs/documents/manual.md +++ b/docs/documents/manual.md @@ -112,6 +112,8 @@ A new created project consists of a meta info asset ("info.json") and an entry source ("main.lua"). The meta info indicates basic information of the project in JSON. The entry is where the project starts to execute. You can add supported existing file or create new blank assets into a project. All text-based assets use Unix LF ('\n') for line ending. +Note that it requires external programs to open file dialogs on Linux for opening, saving, exporting, etc. Make sure that at least one of the following is available: "zenity", "kdialog", "matedialog", "qarma". + ### In Directory All assets are stored as raw files under a specific directory in this format. @@ -1320,6 +1322,14 @@ fetch('https://github.com', { end) ``` +| Option | Values | Description | +|---|---|---| +| `method` | "GET", "POST", "PUT", "DELETE", etc. | Specific method to perform HTTP request | +| `headers` | Valid HTTP headers | Optional. Header data | +| `body` | Request body | Optional. Body data | +| `hint` | "bytes", "string", "json" | Optional, defaults to "string". Prefers how to interpret respond data | +| `allow_insecure_connection_for_https` | `true`, `false` | Optional, defaults to `false`, for desktop only. Specifies whether to allow insecure connection for HTTPS | + [TOP](#reference-manual) ## Assets and Resources @@ -1988,12 +1998,15 @@ Click "Project", "Export..." to select and export some assets to a "*.bit", "*.t # Building -Note that building on Linux requires to open a "save file" dialog, which depends on one of the following commands: "zenity", "kdialog", "matedialog", "qarma". - ## Building for Desktop Click "Project", "Build", then "Windows"/"MacOS"/"Linux" to make an executable for Windows/MacOS/Linux respectively with the current opened project. +It might require execution permission to launch an exported desktop binary, to apply that permission: + +* For MacOS "xattr -cr bitty_stage.app", then "chmod 777 bitty_stage.app/Contents/MacOS/bitty_stage" +* For Linux "chmod 777 x64/bitty" + [TOP](#reference-manual) ## Building for HTML diff --git a/docs/documents/operations.md b/docs/documents/operations.md index 1002033..fd2a3b7 100644 --- a/docs/documents/operations.md +++ b/docs/documents/operations.md @@ -44,6 +44,7 @@ * Ctrl+Tab: switch asset * Ctrl+W: close the current asset +* Ctrl+PgUp/Ctrl+PgDown: change asset page * Ctrl+E: toggle assets filter * Ctrl+Shift+N: add asset @@ -71,9 +72,17 @@ # Code Edit +* Ctrl+Q: select the current word + * Tab: indent * Ctrl+Shift+Tab/Shift+Tab: unindent +* Ctrl+U: to lower case +* Ctrl+Shift+U: to upper case + +* Ctrl+/: toggle comment +* Alt+Up/Alt+Down: move code lines up/down + * Ctrl+F: find * F3: find next * Shift+F3: find previous @@ -187,9 +196,13 @@ # JSON Edit +* Ctrl+Q: select the current word + * Tab: indent * Shift+Tab: unindent +* Alt+Up/Alt+Down: move lines up/down + * Ctrl+F: find * F3: find next * Shift+F3: find previous @@ -199,9 +212,13 @@ # Text Edit +* Ctrl+Q: select the current word + * Tab: indent * Shift+Tab: unindent +* Alt+Up/Alt+Down: move lines up/down + * Ctrl+F: find * F3: find next * Shift+F3: find previous diff --git a/docs/formats.html b/docs/formats.html index c51ba42..a730680 100644 --- a/docs/formats.html +++ b/docs/formats.html @@ -53,7 +53,7 @@

- © 2020 - 2023 Tony Wang | + © 2020 - 2024 Tony Wang | Changelog

diff --git a/docs/index.html b/docs/index.html index e910122..9751193 100644 --- a/docs/index.html +++ b/docs/index.html @@ -276,7 +276,7 @@


- © 2020 - 2023 Tony Wang | + © 2020 - 2024 Tony Wang | Changelog

diff --git a/docs/keycodes.html b/docs/keycodes.html index f12aebe..56bf631 100644 --- a/docs/keycodes.html +++ b/docs/keycodes.html @@ -53,7 +53,7 @@

- © 2020 - 2023 Tony Wang | + © 2020 - 2024 Tony Wang | Changelog

diff --git a/docs/manual.html b/docs/manual.html index 6c69837..29e120b 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -53,7 +53,7 @@

- © 2020 - 2023 Tony Wang | + © 2020 - 2024 Tony Wang | Changelog

diff --git a/docs/operations.html b/docs/operations.html index 02adb6f..1b46f1c 100644 --- a/docs/operations.html +++ b/docs/operations.html @@ -53,7 +53,7 @@

- © 2020 - 2023 Tony Wang | + © 2020 - 2024 Tony Wang | Changelog

diff --git a/docs/physics.html b/docs/physics.html index 7d64444..7b4a7b8 100644 --- a/docs/physics.html +++ b/docs/physics.html @@ -53,7 +53,7 @@

- © 2020 - 2023 Tony Wang | + © 2020 - 2024 Tony Wang | Changelog