Format files using a script

Remove carriage return characters and remove trailing space characters
This commit is contained in:
Aaron Franke 2020-06-04 20:40:07 -04:00
parent eab4d09281
commit 96b564bb17
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
8 changed files with 366 additions and 367 deletions

140
README.md
View File

@ -1,70 +1,70 @@
[![version](https://img.shields.io/badge/plugin%20version-1.7.3-blue)](https://github.com/fenix-hub/godot-engine.file-editor) [![version](https://img.shields.io/badge/plugin%20version-1.7.3-blue)](https://github.com/fenix-hub/godot-engine.file-editor)
[![updates](https://img.shields.io/badge/plugin%20updates-on%20discord-purple)](https://discord.gg/JNrcucg) [![updates](https://img.shields.io/badge/plugin%20updates-on%20discord-purple)](https://discord.gg/JNrcucg)
[![paypal](https://img.shields.io/badge/donations-PayPal-cyan)](https://paypal.me/NSantilio?locale.x=it_IT) [![paypal](https://img.shields.io/badge/donations-PayPal-cyan)](https://paypal.me/NSantilio?locale.x=it_IT)
Check my **[Discord](https://discord.gg/KnJGY9S)** to stay updated on this repository. Check my **[Discord](https://discord.gg/KnJGY9S)** to stay updated on this repository.
*(Recommended since the AssetLibrary is not automatically updated)* *(Recommended since the AssetLibrary is not automatically updated)*
This plugin is now supported in [Godot Extended Library Discord](https://discord.gg/JNrcucg), check out the [Godot Extended Library Project](https://github.com/godot-extended-libraries)! This plugin is now supported in [Godot Extended Library Discord](https://discord.gg/JNrcucg), check out the [Godot Extended Library Project](https://github.com/godot-extended-libraries)!
<img src="addons/file-editor/icon.png" width="64" height="64" align="left"> <img src="addons/file-editor/icon.png" width="64" height="64" align="left">
# Godot File Editor # Godot File Editor
A little plugin to easy-way manage your text files inside your project folder. A little plugin to easy-way manage your text files inside your project folder.
Author: *"Nicolo (fenix) Santilio"* Author: *"Nicolo (fenix) Santilio"*
Version: *1.7.3* Version: *1.7.3*
Godot Version: *3.2.1* Godot Version: *3.2.1*
**This repository was pushed directly from Godot Engine Editor thanks to [GitHub Integration](https://github.com/fenix-hub/godot-engine.github-integration)!** **This repository was pushed directly from Godot Engine Editor thanks to [GitHub Integration](https://github.com/fenix-hub/godot-engine.github-integration)!**
## What is this? ## What is this?
This is a little plugin I've made to easily edit text files in your project folder. This is a little plugin I've made to easily edit text files in your project folder.
## How does it work? ## How does it work?
You can open an existing file, create a new file and delete a file. You can open an existing file, create a new file and delete a file.
When opening / creating a file, the editor will open and you will be able to edit it and save it. When opening / creating a file, the editor will open and you will be able to edit it and save it.
You can just *Save* the file, or *Save file As* a new file (if it is a new file but also to make some copies). You can just *Save* the file, or *Save file As* a new file (if it is a new file but also to make some copies).
You will also be able to see some informations about the file you are editing (time and date of last edit) and you can set your editor to *Read Only* if you don't want to make changes but still read the content of the file. You will also be able to see some informations about the file you are editing (time and date of last edit) and you can set your editor to *Read Only* if you don't want to make changes but still read the content of the file.
Multiple files can be opened in different tabs. Multiple files can be opened in different tabs.
![preview1](https://i.imgur.com/BbZzKzD.png)![preview2](https://i.imgur.com/asggk4f.png) ![preview3](https://i.imgur.com/omReRZr.png) ![preview4](https://i.imgur.com/d8pMJsE.png) ![preview1](https://i.imgur.com/BbZzKzD.png)![preview2](https://i.imgur.com/asggk4f.png) ![preview3](https://i.imgur.com/omReRZr.png) ![preview4](https://i.imgur.com/d8pMJsE.png)
## How do I install it? ## How do I install it?
**Manual** **Manual**
Just download this whole repository and put it in your `res://addons` folder inside the project you want to work on. Just download this whole repository and put it in your `res://addons` folder inside the project you want to work on.
Then, go to `Project > Plugins > "File Editor" > Status > Activate`. Then, go to `Project > Plugins > "File Editor" > Status > Activate`.
**Automatic** **Automatic**
You can find this plugin in the AssetLib of Godot Engine Editor. Just download it from there and everything should be fine! You can find this plugin in the AssetLib of Godot Engine Editor. Just download it from there and everything should be fine!
(Remember to activate this plugin) (Remember to activate this plugin)
## Supported formats ## Supported formats
+ "*.txt ; Plain Text File", + "*.txt ; Plain Text File",
+ "*.rtf ; Rich Text Format File", + "*.rtf ; Rich Text Format File",
+ "*.log ; Log File", + "*.log ; Log File",
+ "*.md ; MD File", + "*.md ; MD File",
+ "*.doc ; WordPad Document", + "*.doc ; WordPad Document",
+ "*.doc ; Microsoft Word Document", + "*.doc ; Microsoft Word Document",
+ "*.docm ; Word Open XML Macro-Enabled Document", + "*.docm ; Word Open XML Macro-Enabled Document",
+ "*.docx ; Microsoft Word Open XML Document", + "*.docx ; Microsoft Word Open XML Document",
+ "*.bbs ; Bulletin Board System Text", + "*.bbs ; Bulletin Board System Text",
+ "*.dat ; Data File", + "*.dat ; Data File",
+ "*.xml ; XML File", + "*.xml ; XML File",
+ "*.sql ; SQL database file", + "*.sql ; SQL database file",
+ "*.json ; JavaScript Object Notation File", + "*.json ; JavaScript Object Notation File",
+ "*.html ; HyperText Markup Language" + "*.html ; HyperText Markup Language"
+ "*.cfg ; Configuration File" + "*.cfg ; Configuration File"
+ "*.ini ; Initialization File (same as .cfg Configuration File)" + "*.ini ; Initialization File (same as .cfg Configuration File)"
+ "*.csv ; Comma-separated values File" + "*.csv ; Comma-separated values File"
+ "*.res ; Resource File" + "*.res ; Resource File"
#### Current version #### Current version
To check all the features included in the current version, please read the [VERSION file](./VERSION.md) To check all the features included in the current version, please read the [VERSION file](./VERSION.md)
#### Upcoming features #### Upcoming features
To check all the features I'm currently working on, please read the [TODO file](./TODO.md) To check all the features I'm currently working on, please read the [TODO file](./TODO.md)
# Disclaimer # Disclaimer
This addon was built for a **personal use** intention. It was released as an open source plugin in the hope that it could be useful to the Godot Engine Community. This addon was built for a **personal use** intention. It was released as an open source plugin in the hope that it could be useful to the Godot Engine Community.
As a "work in progress" project, there is *no warranty* for any eventual issue and bug that may broke your project. As a "work in progress" project, there is *no warranty* for any eventual issue and bug that may broke your project.
I don't assume any responsibility for possible corruptions of your project files. It is always advisable to keep a copy of your files and check any changes. I don't assume any responsibility for possible corruptions of your project files. It is always advisable to keep a copy of your files and check any changes.

View File

@ -1,109 +1,109 @@
**version 0.0.1** **version 0.0.1**
*added* *added*
- Plugin Created - Plugin Created
----------------------- -----------------------
**version 0.1.1** **version 0.1.1**
*added* *added*
- "Create new File" option - "Create new File" option
- "Open File" option - "Open File" option
- "Delete File" option - "Delete File" option
- "Save File" option - "Save File" option
- "Save File As.." option - "Save File As.." option
----------------------- -----------------------
**version 0.1.2** **version 0.1.2**
*fixed* *fixed*
- Repository Installation, folder order - Repository Installation, folder order
----------------------- -----------------------
**version 0.2.5** **version 0.2.5**
*removed* *removed*
- Old layout - Old layout
*added* *added*
- New Layout - New Layout
- Last modified time and date - Last modified time and date
- Tabs - Tabs
----------------------- -----------------------
**version 0.3.1** **version 0.3.1**
*added* *added*
- Version check - Version check
- Preview support - Preview support
- Context menu in editor - Context menu in editor
- BBCode converter - BBCode converter
- Light Mardkwon converter (DEMO) - Light Mardkwon converter (DEMO)
----------------------- -----------------------
**version 1.2.1** **version 1.2.1**
*removed* *removed*
- Old layout, the plugin won't appear in docs - Old layout, the plugin won't appear in docs
- Icons file extensions, plugin size reduced - Icons file extensions, plugin size reduced
- Old Mardkwon preview method - Old Mardkwon preview method
*added* *added*
- More supported files - More supported files
1. "*.dat ; Data File", 1. "*.dat ; Data File",
2. "*.xml ; XML File", 2. "*.xml ; XML File",
3. "*.sql ; SQL database file", 3. "*.sql ; SQL database file",
4. "*.json ; JavaScript Object Notation File", 4. "*.json ; JavaScript Object Notation File",
5. "*.html ; HyperText Markup Language", 5. "*.html ; HyperText Markup Language",
- New Markdown preview method ( Markdown -> BBCode converter) - New Markdown preview method ( Markdown -> BBCode converter)
- New HTML preview method ( HTML -> BBCode converter) - New HTML preview method ( HTML -> BBCode converter)
- New Plugin Layout: a new ButtonTool "File" in you TopBar will appear - New Plugin Layout: a new ButtonTool "File" in you TopBar will appear
- Error check - Error check
- Message popups for closing unsaved files - Message popups for closing unsaved files
----------------------- -----------------------
**version 1.4.3** **version 1.4.3**
*removed* *removed*
- Old layout - Old layout
*added* *added*
- More supported files: - More supported files:
1. "*.cfg ; Configuration File", 1. "*.cfg ; Configuration File",
2. "*.ini ; Initialization File (same as .cfg Configuration File)", 2. "*.ini ; Initialization File (same as .cfg Configuration File)",
- Added some sample files - Added some sample files
- Memorize system of last opened files - Memorize system of last opened files
- Added *Editor* button , you can now choose which editor to use: - Added *Editor* button , you can now choose which editor to use:
1. Vanilla Editor (simple text editor) 1. Vanilla Editor (simple text editor)
2. Cfg/Ini Editor (table editor for Cfg/Ini files) 2. Cfg/Ini Editor (table editor for Cfg/Ini files)
Editors are automatically updated, so if you update a cfg/ini file in the Vanilla Editor it will be updated in the Cfg/Ini Editor, and viceversa Editors are automatically updated, so if you update a cfg/ini file in the Vanilla Editor it will be updated in the Cfg/Ini Editor, and viceversa
- Added editor shorcuts: - Added editor shorcuts:
1. *Ctrl + N* (new file) 1. *Ctrl + N* (new file)
2. *Ctrl + O* (open file) 2. *Ctrl + O* (open file)
3. *Ctrl + Alt + C* (close file) 3. *Ctrl + Alt + C* (close file)
4. *Ctrl + S* (save file) 4. *Ctrl + S* (save file)
5. *Ctrl + Alt + S* (save file as...) 5. *Ctrl + Alt + S* (save file as...)
6. *Ctrl + D* (delete file) 6. *Ctrl + D* (delete file)
7. *Ctrl + 1* (Vanilla Editor) 7. *Ctrl + 1* (Vanilla Editor)
8. *Ctrl + 3* (Cfg/Ini Editor) 8. *Ctrl + 3* (Cfg/Ini Editor)
----------------------- -----------------------
**version 1.6.0** **version 1.6.0**
*fixed* *fixed*
- Each opened file now has own editor: unsaved changes are no longer erased if a new file is opened without saving the previous opened file - Each opened file now has own editor: unsaved changes are no longer erased if a new file is opened without saving the previous opened file
*added* *added*
- Custom Syntax Highlighting for each file type (.md, .cfg/.ini, .html, .bbs) - Custom Syntax Highlighting for each file type (.md, .cfg/.ini, .html, .bbs)
- Characters counter in VanillaEditor - Characters counter in VanillaEditor
- String searcher in VanillaEditor (with custom shortcut *Ctrl + F*) - String searcher in VanillaEditor (with custom shortcut *Ctrl + F*)
- String replacer in VanillaEditor (with custom shortcut *Ctrl + R*) - String replacer in VanillaEditor (with custom shortcut *Ctrl + R*)
----------------------- -----------------------
**version 1.6.4** **version 1.6.4**
*added* *added*
- CSV VisualEditor (shortcut *Ctrl+2*): - CSV VisualEditor (shortcut *Ctrl+2*):
- you can now read and edit CSV files importing them as simple CSV files (and not translate file) - you can now read and edit CSV files importing them as simple CSV files (and not translate file)
- MiniMap drawer in VanillaEditor - MiniMap drawer in VanillaEditor
- SoftWrap / NoWrap in VanillaEditor - SoftWrap / NoWrap in VanillaEditor
- **Version 3.2alpha2 supported** - **Version 3.2alpha2 supported**

View File

@ -1,63 +1,63 @@
Check my **[Discord](https://discord.gg/KnJGY9S)** to stay updated on this repository. Check my **[Discord](https://discord.gg/KnJGY9S)** to stay updated on this repository.
*(Recommended since the AssetLibrary is not automatically updated)* *(Recommended since the AssetLibrary is not automatically updated)*
This plugin is now supported in [Godot Extended Library Discord](https://discord.gg/JNrcucg), check out the [Godot Extended Library Project](https://github.com/godot-extended-libraries)! This plugin is now supported in [Godot Extended Library Discord](https://discord.gg/JNrcucg), check out the [Godot Extended Library Project](https://github.com/godot-extended-libraries)!
# Godot Text Editor # Godot Text Editor
A little plugin to easy-way manage your text files inside your project folder. A little plugin to easy-way manage your text files inside your project folder.
Author: *"Nicolo (fenix) Santilio"* Author: *"Nicolo (fenix) Santilio"*
Version: *1.7.1* Version: *1.7.1*
Godot Version: *3.2.1* Godot Version: *3.2.1*
**This repository was pushed directly from Godot Engine Editor thanks to [GitHub Integration](https://github.com/fenix-hub/godot-engine.github-integration)!** **This repository was pushed directly from Godot Engine Editor thanks to [GitHub Integration](https://github.com/fenix-hub/godot-engine.github-integration)!**
## What is this? ## What is this?
This is a little plugin I've made to easily edit text files in your project folder. This is a little plugin I've made to easily edit text files in your project folder.
## How does it work? ## How does it work?
You can open an existing file, create a new file and delete a file. You can open an existing file, create a new file and delete a file.
When opening / creating a file, the editor will open and you will be able to edit it and save it. When opening / creating a file, the editor will open and you will be able to edit it and save it.
You can just *Save* the file, or *Save file As* a new file (if it is a new file but also to make some copies). You can just *Save* the file, or *Save file As* a new file (if it is a new file but also to make some copies).
You will also be able to see some informations about the file you are editing (time and date of last edit) and you can set your editor to *Read Only* if you don't want to make changes but still read the content of the file. You will also be able to see some informations about the file you are editing (time and date of last edit) and you can set your editor to *Read Only* if you don't want to make changes but still read the content of the file.
Multiple files can be opened in different tabs. Multiple files can be opened in different tabs.
![preview1](https://i.imgur.com/BbZzKzD.png)![preview2](https://i.imgur.com/asggk4f.png) ![preview3](https://i.imgur.com/omReRZr.png) ![preview4](https://i.imgur.com/d8pMJsE.png) ![preview1](https://i.imgur.com/BbZzKzD.png)![preview2](https://i.imgur.com/asggk4f.png) ![preview3](https://i.imgur.com/omReRZr.png) ![preview4](https://i.imgur.com/d8pMJsE.png)
## How do I install it? ## How do I install it?
**Manual** **Manual**
Just download this whole repository and put it in your `res://addons` folder inside the project you want to work on. Just download this whole repository and put it in your `res://addons` folder inside the project you want to work on.
Then, go to `Project > Plugins > "File Editor" > Status > Activate`. Then, go to `Project > Plugins > "File Editor" > Status > Activate`.
**Automatic** **Automatic**
You can find this plugin in the AssetLib of Godot Engine Editor. Just download it from there and everything should be fine! You can find this plugin in the AssetLib of Godot Engine Editor. Just download it from there and everything should be fine!
(Remember to activate this plugin) (Remember to activate this plugin)
## Supported formats ## Supported formats
+ "*.txt ; Plain Text File", + "*.txt ; Plain Text File",
+ "*.rtf ; Rich Text Format File", + "*.rtf ; Rich Text Format File",
+ "*.log ; Log File", + "*.log ; Log File",
+ "*.md ; MD File", + "*.md ; MD File",
+ "*.doc ; WordPad Document", + "*.doc ; WordPad Document",
+ "*.doc ; Microsoft Word Document", + "*.doc ; Microsoft Word Document",
+ "*.docm ; Word Open XML Macro-Enabled Document", + "*.docm ; Word Open XML Macro-Enabled Document",
+ "*.docx ; Microsoft Word Open XML Document", + "*.docx ; Microsoft Word Open XML Document",
+ "*.bbs ; Bulletin Board System Text", + "*.bbs ; Bulletin Board System Text",
+ "*.dat ; Data File", + "*.dat ; Data File",
+ "*.xml ; XML File", + "*.xml ; XML File",
+ "*.sql ; SQL database file", + "*.sql ; SQL database file",
+ "*.json ; JavaScript Object Notation File", + "*.json ; JavaScript Object Notation File",
+ "*.html ; HyperText Markup Language" + "*.html ; HyperText Markup Language"
+ "*.cfg ; Configuration File" + "*.cfg ; Configuration File"
+ "*.ini ; Initialization File (same as .cfg Configuration File)" + "*.ini ; Initialization File (same as .cfg Configuration File)"
+ "*.csv ; Comma-separated values File" + "*.csv ; Comma-separated values File"
#### Current version #### Current version
To check all the features included in the current version, please read the [VERSION file](./VERSION.md) To check all the features included in the current version, please read the [VERSION file](./VERSION.md)
#### Upcoming features #### Upcoming features
To check all the features I'm currently working on, please read the [TODO file](./TODO.md) To check all the features I'm currently working on, please read the [TODO file](./TODO.md)
# Disclaimer # Disclaimer
This addon was built for a **personal use** intention. It was released as an open source plugin in the hope that it could be useful to the Godot Engine Community. This addon was built for a **personal use** intention. It was released as an open source plugin in the hope that it could be useful to the Godot Engine Community.
As a "work in progress" project, there is *no warranty* for any eventual issue and bug that may broke your project. As a "work in progress" project, there is *no warranty* for any eventual issue and bug that may broke your project.
I don't assume any responsibility for possible corruptions of your project files. It is always advisable to keep a copy of your files and check any changes. I don't assume any responsibility for possible corruptions of your project files. It is always advisable to keep a copy of your files and check any changes.

View File

@ -1,4 +1,3 @@
### to do (v-0.x.x) ### to do (v-0.x.x)
- Popup dialog when closing a tab if there is new content - Popup dialog when closing a tab if there is new content
- Module for markdown support/conversion - Module for markdown support/conversion

View File

@ -1,114 +1,114 @@
**version 0.0.1** **version 0.0.1**
*added* *added*
- Plugin Created - Plugin Created
----------------------- -----------------------
**version 0.1.1** **version 0.1.1**
*added* *added*
- "Create new File" option - "Create new File" option
- "Open File" option - "Open File" option
- "Delete File" option - "Delete File" option
- "Save File" option - "Save File" option
- "Save File As.." option - "Save File As.." option
----------------------- -----------------------
**version 0.1.2** **version 0.1.2**
*fixed* *fixed*
- Repository Installation, folder order - Repository Installation, folder order
----------------------- -----------------------
**version 0.2.5** **version 0.2.5**
*removed* *removed*
- Old layout - Old layout
*added* *added*
- New Layout - New Layout
- Last modified time and date - Last modified time and date
- Tabs - Tabs
----------------------- -----------------------
**version 0.3.1** **version 0.3.1**
*added* *added*
- Version check - Version check
- Preview support - Preview support
- Context menu in editor - Context menu in editor
- BBCode converter - BBCode converter
- Light Mardkwon converter (DEMO) - Light Mardkwon converter (DEMO)
----------------------- -----------------------
**version 1.2.1** **version 1.2.1**
*removed* *removed*
- Old layout, the plugin won't appear in docs - Old layout, the plugin won't appear in docs
- Icons file extensions, plugin size reduced - Icons file extensions, plugin size reduced
- Old Mardkwon preview method - Old Mardkwon preview method
*added* *added*
- More supported files - More supported files
1. "*.dat ; Data File", 1. "*.dat ; Data File",
2. "*.xml ; XML File", 2. "*.xml ; XML File",
3. "*.sql ; SQL database file", 3. "*.sql ; SQL database file",
4. "*.json ; JavaScript Object Notation File", 4. "*.json ; JavaScript Object Notation File",
5. "*.html ; HyperText Markup Language", 5. "*.html ; HyperText Markup Language",
- New Markdown preview method ( Markdown -> BBCode converter) - New Markdown preview method ( Markdown -> BBCode converter)
- New HTML preview method ( HTML -> BBCode converter) - New HTML preview method ( HTML -> BBCode converter)
- New Plugin Layout: a new ButtonTool "File" in you TopBar will appear - New Plugin Layout: a new ButtonTool "File" in you TopBar will appear
- Error check - Error check
- Message popups for closing unsaved files - Message popups for closing unsaved files
----------------------- -----------------------
**version 1.4.3** **version 1.4.3**
*removed* *removed*
- Old layout - Old layout
*added* *added*
- More supported files: - More supported files:
1. "*.cfg ; Configuration File", 1. "*.cfg ; Configuration File",
2. "*.ini ; Initialization File (same as .cfg Configuration File)", 2. "*.ini ; Initialization File (same as .cfg Configuration File)",
- Added some sample files - Added some sample files
- Memorize system of last opened files - Memorize system of last opened files
- Added *Editor* button , you can now choose which editor to use: - Added *Editor* button , you can now choose which editor to use:
1. Vanilla Editor (simple text editor) 1. Vanilla Editor (simple text editor)
2. Cfg/Ini Editor (table editor for Cfg/Ini files) 2. Cfg/Ini Editor (table editor for Cfg/Ini files)
Editors are automatically updated, so if you update a cfg/ini file in the Vanilla Editor it will be updated in the Cfg/Ini Editor, and viceversa Editors are automatically updated, so if you update a cfg/ini file in the Vanilla Editor it will be updated in the Cfg/Ini Editor, and viceversa
- Added editor shorcuts: - Added editor shorcuts:
1. *Ctrl + N* (new file) 1. *Ctrl + N* (new file)
2. *Ctrl + O* (open file) 2. *Ctrl + O* (open file)
3. *Ctrl + Alt + C* (close file) 3. *Ctrl + Alt + C* (close file)
4. *Ctrl + S* (save file) 4. *Ctrl + S* (save file)
5. *Ctrl + Alt + S* (save file as...) 5. *Ctrl + Alt + S* (save file as...)
6. *Ctrl + D* (delete file) 6. *Ctrl + D* (delete file)
7. *Ctrl + 1* (Vanilla Editor) 7. *Ctrl + 1* (Vanilla Editor)
8. *Ctrl + 3* (Cfg/Ini Editor) 8. *Ctrl + 3* (Cfg/Ini Editor)
----------------------- -----------------------
**version 1.6.0** **version 1.6.0**
*fixed* *fixed*
- Each opened file now has own editor: unsaved changes are no longer erased if a new file is opened without saving the previous opened file - Each opened file now has own editor: unsaved changes are no longer erased if a new file is opened without saving the previous opened file
*added* *added*
- Custom Syntax Highlighting for each file type (.md, .cfg/.ini, .html, .bbs) - Custom Syntax Highlighting for each file type (.md, .cfg/.ini, .html, .bbs)
- Characters counter in VanillaEditor - Characters counter in VanillaEditor
- String searcher in VanillaEditor (with custom shortcut *Ctrl + F*) - String searcher in VanillaEditor (with custom shortcut *Ctrl + F*)
- String replacer in VanillaEditor (with custom shortcut *Ctrl + R*) - String replacer in VanillaEditor (with custom shortcut *Ctrl + R*)
----------------------- -----------------------
**version 1.6.4** **version 1.6.4**
*added* *added*
- CSV VisualEditor (shortcut *Ctrl+2*): - CSV VisualEditor (shortcut *Ctrl+2*):
- you can now read and edit CSV files which importing them as simple CSV files (and not translate file) - you can now read and edit CSV files which importing them as simple CSV files (and not translate file)
- MiniMap drawer in VanillaEditor - MiniMap drawer in VanillaEditor
- SoftWrap / NoWrap in VanillaEditor - SoftWrap / NoWrap in VanillaEditor
- **Version 3.2alpha2 supported** - **Version 3.2alpha2 supported**
--------------------- ---------------------
**version 1.7.1** **version 1.7.1**
- several bug fixes - several bug fixes

View File

@ -18,7 +18,7 @@ onready var ChangeDelimiterDialog = $ChangeDelimiterDialog
var current_file_path : String = "" var current_file_path : String = ""
var rows : int var rows : int
var columns : int var columns : int
var csv_delimiter : String var csv_delimiter : String
var filepath : String var filepath : String
@ -90,7 +90,7 @@ func add_row(columns : int, cell_text : String = "", cell2text : PoolStringArray
if ReadOnly.pressed: if ReadOnly.pressed:
cell.set_editable(false) cell.set_editable(false)
else: else:
if cell2text[i]!="": if cell2text[i]!="":
var cell = LineEdit.new() var cell = LineEdit.new()
cell.set_h_size_flags(2) cell.set_h_size_flags(2)

View File

@ -33,9 +33,9 @@ onready var EditorContainer = $FileEditorContainer/SplitContainer
var DIRECTORY : String = "res://" var DIRECTORY : String = "res://"
var EXCEPTIONS : String = "addons" var EXCEPTIONS : String = "addons"
var EXTENSIONS : PoolStringArray = [ var EXTENSIONS : PoolStringArray = [
"*.txt ; Plain Text File", "*.txt ; Plain Text File",
"*.rtf ; Rich Text Format File", "*.rtf ; Rich Text Format File",
"*.log ; Log File", "*.log ; Log File",
"*.md ; MD File", "*.md ; MD File",
"*.doc ; WordPad Document", "*.doc ; WordPad Document",
"*.doc ; Microsoft Word Document", "*.doc ; Microsoft Word Document",
@ -59,7 +59,7 @@ var files = []
var current_file_index = -1 var current_file_index = -1
var current_file_path = "" var current_file_path = ""
var save_as = false var save_as = false
var current_editor : Control var current_editor : Control
var current_ini_editor : Control var current_ini_editor : Control
var current_csv_editor : Control var current_csv_editor : Control
@ -80,7 +80,7 @@ func _ready():
FileList.set_filters(EXTENSIONS) FileList.set_filters(EXTENSIONS)
func create_shortcuts(): func create_shortcuts():
var hotkey var hotkey
hotkey = InputEventKey.new() hotkey = InputEventKey.new()
hotkey.scancode = KEY_S hotkey.scancode = KEY_S

View File

@ -17,7 +17,7 @@ onready var BtnRemoveKey = $VBoxContainer/HSplitContainer/VBoxContainer2/HBoxCon
onready var Section = $Section onready var Section = $Section
onready var Key = $Key onready var Key = $Key
var selected_key var selected_key
var selected_section : int = -1 var selected_section : int = -1
var root : TreeItem var root : TreeItem