-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft for feedback #62
Open
lutteman
wants to merge
105
commits into
ItJustWorksTM:master
Choose a base branch
from
aKjeller:code_editor
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
105 commits
Select commit
Hold shift + click to select a range
2724964
Updated git ignore to include build/
lutteman 95f02e3
Merge pull request #1 from aKjeller/newGitIgnore
lutteman 36d7bd1
Edit button with window
aKjeller f476890
Merge pull request #3 from ItJustWorksTM/master
aKjeller 8f7f9f0
Contribution tables for gm1
aKjeller 179b8bf
Merge pull request #4 from aKjeller/gm1
AnonymousTM f6ab0c1
Modified main_window and moved edit_btn
aKjeller 78ef4e0
Initial script for dropdown button
lutteman 420195d
Added dropdown menu button with open and save file options
lutteman 6e4a727
Add functionality to read and save files
Anthony1911 830627f
Merge pull request #16 from aKjeller/main_window
aKjeller 609c500
Merge pull request #17 from aKjeller/dropdown
aKjeller 606c652
Merge pull request #18 from aKjeller/Anthony1911-fileLoader
aKjeller 2c2ae26
TextEdit
AnonymousTM fcee001
Merge pull request #19 from aKjeller/TextEditor
aKjeller a49c6b6
Create build.yml
aKjeller 7887583
Contribution gm2
aKjeller 5f3cbe3
Create action
aKjeller 82f7c03
Rename action to action.yml
aKjeller eeed730
auto run code duplication test on pull request
aKjeller 6e4d110
Fix editor closing bug
Anthony1911 4fac493
Update SmceHud.gd
Anthony1911 3e19856
Merge pull request #27 from aKjeller/github_action
aKjeller c35bfec
Merge pull request #28 from aKjeller/Anthony1911-close-bug-fix
aKjeller df0970e
Added Arduino syntax highlighting
Anthony1911 8875d4b
Merge pull request #30 from ItJustWorksTM/master
Anthony1911 44cd238
Added popup window scene + script
Anthony1911 cdc7830
Merge pull request #29 from aKjeller/Anthony1911-syntax-highlighting
lutteman f9e3eff
Merge pull request #32 from aKjeller/Anthony1911-popup-window
AnonymousTM cb66fcd
Enabled bracket matching
Anthony1911 938700e
Tab-System V1.0
AnonymousTM 7cd2678
Merge pull request #31 from aKjeller/master
aKjeller b897d5c
Merge branch 'code_editor' into bracket-match
aKjeller 8979ae1
Merge pull request #35 from aKjeller/bracket-match
aKjeller 3605ca4
TabSystem + newProject
AnonymousTM 236c230
Merge pull request #36 from aKjeller/TabSystem
aKjeller e9eace2
Editor links with sketches in the hud
aKjeller 20c112e
Merge pull request #38 from aKjeller/link_editor_to_hud
lutteman 4747fab
file window added
aKjeller 286923f
Merge pull request #39 from aKjeller/file_tree
AnonymousTM 3347bb6
Window is smaller now + resizeable
Anthony1911 817fb4c
Added fonts for popup
Anthony1911 d04b09d
Refactoring
Anthony1911 796daef
Adding line limit functionality
Anthony1911 0ae7fc7
Adding line limit functionality
Anthony1911 4b48b31
Merge pull request #53 from aKjeller/Anthony1911-update-popup
lutteman 0c434c6
Tabs v1.1
AnonymousTM 47ae455
Small error fix
AnonymousTM 904e867
Refactor out excessive use of get_parent()
aKjeller ae77d45
Moved texteditor code to new file
aKjeller 1203f80
Merge pull request #57 from aKjeller/TabSystem-v1.1
lutteman 62fe471
Merge branch 'code_editor' into refactor_parents
lutteman a8583b8
Merge pull request #56 from aKjeller/refactor_parents
lutteman 9f363e2
Added icons in file_tree
aKjeller ffa6680
File tree buttons
aKjeller b13eb75
Added compile button
lutteman bc8bd5b
Merge pull request #54 from aKjeller/Anthony1911-line-limit
lutteman 5c7428a
Merge pull request #59 from aKjeller/compile_button
Anthony1911 6fcf70d
Resolve conflicts
aKjeller 209bcd9
Switching tabs select correct file in tree
aKjeller 1dad567
Added more highlight keywords
Anthony1911 f18daf4
Merge pull request #60 from aKjeller/Anthony1911-highlight-keyword-up…
aKjeller 5119bb3
Merge pull request #61 from aKjeller/file_tree_2
Anthony1911 9c97fdd
Added selective syntax highlighting
Anthony1911 3046249
Correction
Anthony1911 796cdc0
Merge pull request #62 from aKjeller/Anthony1911-selective-highlighting
lutteman 13aa129
Anchor refactoring
Anthony1911 4e53e21
Merge pull request #63 from aKjeller/Anthony1911-refactor-line-limit
AnonymousTM c9c40ae
Refactoring
Anthony1911 6a02367
Refactoring
Anthony1911 3ad6349
Refactor file_tree, seperate ui and logic
aKjeller 4d2d41d
Removed all signals from scene
aKjeller 6ce6135
Added a theme for the fileDialog
lutteman 2a4d64a
Changed theme of all buttons
AnonymousTM c710fe5
Refactor tabs
lutteman b4b7c80
Renaming
Anthony1911 26ad074
Merge pull request #69 from aKjeller/fileDialog_theme_update
aKjeller feafe23
Added several "Ctrl"-related shortcuts
Anthony1911 c38cdf8
Added methods for shortcut commands
Anthony1911 53f6903
Merge pull request #68 from aKjeller/refactor
Anthony1911 7a7a001
Update reference
Anthony1911 590a58e
Update reference
Anthony1911 260cccd
Update
Anthony1911 f0ce7f7
Merge pull request #72 from aKjeller/Anthony1911-keyboard-shortcuts
AnonymousTM 0548cdc
Revert "Added several "Ctrl"-related shortcuts"
AnonymousTM d3522d2
Merge branch 'code_editor' into Anthony1911-refactor-popup
Anthony1911 4e5e29a
Merge pull request #73 from aKjeller/revert-72-Anthony1911-keyboard-s…
aKjeller 9f0ed11
Merge branch 'code_editor' into Theme-Restyling
aKjeller 3e5978e
Merge pull request #70 from aKjeller/Theme-Restyling
aKjeller 2c4a143
Styling added for popup window
AnonymousTM 605558c
Merge pull request #74 from aKjeller/Theme-for-popup
aKjeller 810aeb3
Enable ctrl shortcuts
Anthony1911 9b83058
Methods for ctrl shortcuts
Anthony1911 e83906b
Merge pull request #75 from aKjeller/Anthony1911-ctrl-shortcuts
aKjeller 4c69bfc
Change to null check instead of saving variable
aKjeller f8cfcb3
-.-
lutteman 224c0f5
Merge pull request #71 from aKjeller/refactor_tabs
aKjeller 796a00d
Merge branch 'code_editor' into Anthony1911-refactor-popup
Anthony1911 9ddc50b
Bug fixed
lutteman bc96b66
Merge pull request #67 from aKjeller/Anthony1911-refactor-popup
aKjeller 96d4e89
Fixes
AnonymousTM a15e308
Merge pull request #79 from aKjeller/refactor_tabs
aKjeller 52d021c
Merge pull request #76 from aKjeller/refactor
aKjeller 65720f7
Merge pull request #78 from aKjeller/3-issues-fixed
aKjeller c908800
Small fixes read description
AnonymousTM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Duplicate code | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
duplicate-code-check: | ||
name: Check for duplicate code | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Check for duplicate code | ||
uses: platisd/duplicate-code-detection-tool@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
directories: "project/src" | ||
# Only examine .h and .cpp files | ||
file_extensions: "gd" | ||
# Only report similarities above 5% | ||
ignore_below: 5 | ||
# If a file is more than 70% similar to another, then the job fails | ||
fail_above: 70 | ||
# If a file is more than 15% similar to another, show a warning symbol in the report | ||
warn_above: 15 | ||
# Remove `src/` from the file paths when reporting similarities | ||
project_root_dir: "project/src" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
jobs: | ||
sonarcloud: | ||
name: SonarCloud | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis | ||
- name: SonarCloud Scan | ||
uses: SonarSource/sonarcloud-github-action@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* BraceEnabler.hxx | ||
* Copyright 2021 ItJustWorksTM | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
#ifndef GODOT_SMCE_BRACEENABLER_HPP | ||
#define GODOT_SMCE_BRACEENABLER_HPP | ||
|
||
#include <gen/Node.hpp> | ||
|
||
namespace godot { | ||
class BraceEnabler : public Node { | ||
GODOT_CLASS(BraceEnabler, Node); | ||
|
||
public: | ||
static void _register_methods(); | ||
void _init(); | ||
void _notification(int what); | ||
}; | ||
} // namespace godot | ||
|
||
#endif // GODOT_SMCE_BRACEENABLER_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,3 +103,7 @@ func _error(message: String) -> void: | |
|
||
func _on_clipboard_copy() -> void: | ||
OS.clipboard = error | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//New file created by GD Code Editor | ||
|
||
void setup() { | ||
// put your setup code here, to run once: | ||
|
||
} | ||
|
||
void loop() { | ||
// put your main code here, to run repeatedly: | ||
|
||
} | ||
Comment on lines
+1
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I like the idea of a template / built in sketch for users to start out with, maybe extend it a bit like printing to uart? |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[gd_resource type="DynamicFont" load_steps=2 format=2] | ||
|
||
[ext_resource path="res://media/fonts/Open_Sans/OpenSans-Regular.ttf" type="DynamicFontData" id=1] | ||
|
||
[resource] | ||
use_mipmaps = true | ||
use_filter = true | ||
font_data = ExtResource( 1 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/icon.png-c7ddf17ea825f0bffd1e1d023b7c4be2.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://media/images/icon.png" | ||
dest_files=[ "res://.import/icon.png-c7ddf17ea825f0bffd1e1d023b7c4be2.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=true | ||
flags/mipmaps=false | ||
flags/anisotropic=false | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=true | ||
svg/scale=1.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/outline_delete_white_48dp.png-27c9639844baf64968349be73c56fcff.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://media/images/outline_delete_white_48dp.png" | ||
dest_files=[ "res://.import/outline_delete_white_48dp.png-27c9639844baf64968349be73c56fcff.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=true | ||
flags/mipmaps=false | ||
flags/anisotropic=false | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=true | ||
svg/scale=1.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
project/media/images/outline_description_white_48dp.png.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/outline_description_white_48dp.png-763bce53e5ccf2d25eb6d9770d1aba0a.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://media/images/outline_description_white_48dp.png" | ||
dest_files=[ "res://.import/outline_description_white_48dp.png-763bce53e5ccf2d25eb6d9770d1aba0a.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=true | ||
flags/mipmaps=false | ||
flags/anisotropic=false | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=true | ||
svg/scale=1.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/outline_folder_white_48dp.png-20b7cbf4f763683c8f27e4155c715908.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://media/images/outline_folder_white_48dp.png" | ||
dest_files=[ "res://.import/outline_folder_white_48dp.png-20b7cbf4f763683c8f27e4155c715908.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=true | ||
flags/mipmaps=false | ||
flags/anisotropic=false | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=true | ||
svg/scale=1.0 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions
34
project/media/images/outline_refresh_white_48dp.png.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="StreamTexture" | ||
path="res://.import/outline_refresh_white_48dp.png-90032707c434f3814938c728493c521f.stex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://media/images/outline_refresh_white_48dp.png" | ||
dest_files=[ "res://.import/outline_refresh_white_48dp.png-90032707c434f3814938c728493c521f.stex" ] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/lossy_quality=0.7 | ||
compress/hdr_mode=0 | ||
compress/bptc_ldr=0 | ||
compress/normal_map=0 | ||
flags/repeat=0 | ||
flags/filter=true | ||
flags/mipmaps=false | ||
flags/anisotropic=false | ||
flags/srgb=2 | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/HDR_as_SRGB=false | ||
process/invert_color=false | ||
stream=false | ||
size_limit=0 | ||
detect_3d=true | ||
svg/scale=1.0 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know ryan made this but make this inherit from Reference instead pls, it does not need to be a node
something like
BraceEnabler.new().enable_braces(editor_node)
would be way better.