add csv editor for txt files

This commit is contained in:
Nicolò Santilio 2021-01-27 19:52:32 +01:00
parent c8eaf9ecd2
commit e10f5327d8
5 changed files with 442 additions and 437 deletions

6
.gitignore vendored
View File

@ -1,5 +1,11 @@
# Godot-specific ignores # Godot-specific ignores
.import/ .import/
scn/
.import
default_env.tres
icon.png
icon.png.import
project.godot
# Imported translations (automatically generated from CSV files) # Imported translations (automatically generated from CSV files)
*.translation *.translation

View File

@ -12,7 +12,7 @@ This plugin is now supported in [Godot Extended Library Discord](https://discord
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.8.7* Version: *1.8.8*
Godot Version: *3.2.3* Godot Version: *3.2.3*
**This repository was pushed directly from Godot Engine Editor thanks to this [GitHub Integration](https://github.com/fenix-hub/godot-engine.github-integration)!** **This repository was pushed directly from Godot Engine Editor thanks to this [GitHub Integration](https://github.com/fenix-hub/godot-engine.github-integration)!**

View File

@ -1,2 +1 @@
This is a simple text file. This is a simple text file.

View File

@ -3,5 +3,5 @@
name="File Editor" name="File Editor"
description="An internal file editor to view and edit text files in your project folder." description="An internal file editor to view and edit text files in your project folder."
author="Nicolo 'fenix' Santilio" author="Nicolo 'fenix' Santilio"
version="1.8.7" version="1.8.8"
script="scripts/file-editor.gd" script="scripts/file-editor.gd"

View File

@ -435,7 +435,7 @@ func open_in_inieditor(path : String) -> Control:
func open_in_csveditor(path : String) -> Control: func open_in_csveditor(path : String) -> Control:
var extension = path.get_file().get_extension() var extension = path.get_file().get_extension()
if extension == "csv": if extension in ["csv", "txt"]:
var csveditor = CsvEditor.instance() var csveditor = CsvEditor.instance()
SplitEditorContainer.add_child(csveditor) SplitEditorContainer.add_child(csveditor)
csveditor.hide() csveditor.hide()