From 556733c9ee11add41531ba082e43174423d824b4 Mon Sep 17 00:00:00 2001 From: PocketMiner82 Date: Sat, 20 Apr 2024 17:41:41 +0200 Subject: [PATCH 1/4] fix: autocomplete menu selection hack removed --- pseudocodeIde/PseudocodeIDEForm.cs | 10 ++++---- .../pseudocode/PseudocodeAutocompleteItem.cs | 24 +++++++++++++++---- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/pseudocodeIde/PseudocodeIDEForm.cs b/pseudocodeIde/PseudocodeIDEForm.cs index dcbf823..8030df5 100644 --- a/pseudocodeIde/PseudocodeIDEForm.cs +++ b/pseudocodeIde/PseudocodeIDEForm.cs @@ -333,11 +333,11 @@ private void CodeTextBox_KeyDown(object sender, KeyEventArgs e) e.SuppressKeyPress = TrySelectNextTabIndicator(); } - // hack to allow enter to autocomplete even if down wasnt pressed before - if ((e.KeyCode == Keys.Enter || e.KeyCode == Keys.Tab) && e.Modifiers == Keys.None && autoCompleteMenu.SelectedItemIndex < 0) - { - autoCompleteMenu.ProcessKey((char)Keys.Down, e.Modifiers); - } + //// hack to allow enter to autocomplete even if down wasnt pressed before + //if ((e.KeyCode == Keys.Enter || e.KeyCode == Keys.Tab) && e.Modifiers == Keys.None && autoCompleteMenu.SelectedItemIndex < 0) + //{ + // autoCompleteMenu.ProcessKey((char)Keys.Down, e.Modifiers); + //} // ignore CTRL[+SHIFT]+(Z/Y/L/R/E/S) if ((e.KeyCode == Keys.Z || e.KeyCode == Keys.Y || e.KeyCode == Keys.L || e.KeyCode == Keys.R || e.KeyCode == Keys.E || e.KeyCode == Keys.S) diff --git a/pseudocodeIde/interpreter/pseudocode/PseudocodeAutocompleteItem.cs b/pseudocodeIde/interpreter/pseudocode/PseudocodeAutocompleteItem.cs index 7615db2..515349c 100644 --- a/pseudocodeIde/interpreter/pseudocode/PseudocodeAutocompleteItem.cs +++ b/pseudocodeIde/interpreter/pseudocode/PseudocodeAutocompleteItem.cs @@ -12,6 +12,7 @@ using AutocompleteMenuNS; using pseudocodeIde; using ScintillaNET; +using System; using System.Collections.Generic; using System.Linq; @@ -20,7 +21,7 @@ namespace pseudocode_ide.interpreter.pseudocode /// /// Represents an autocomplete item for pseudocode with custom behavior for replacing text. /// - public class PseudocodeAutocompleteItem : SnippetAutocompleteItem + public class PseudocodeAutocompleteItem : AutocompleteItem { /// /// Initializes a new instance of the class with the specified snippet and optional menu text. @@ -29,10 +30,10 @@ public class PseudocodeAutocompleteItem : SnippetAutocompleteItem /// The text to be displayed in the autocomplete menu. If null, the snippet is used. public PseudocodeAutocompleteItem(string snippet, string menuText = null) : base(snippet) { - if (menuText != null) - { - MenuText = menuText; - } + Text = snippet.Replace("\r", ""); + MenuText = menuText; + ToolTipText = snippet.Replace("^", ""); + ToolTipTitle = "Snippet:"; } /// @@ -96,5 +97,18 @@ public override void OnSelected(SelectedEventArgs e) PseudocodeIDEForm.Instance.AddTabSelectionIndicators(tabSelections); } + + /// + /// Compares fragment text with this item + /// + public override CompareResult Compare(string fragmentText) + { + return Text.StartsWith(fragmentText, StringComparison.InvariantCultureIgnoreCase) ? CompareResult.VisibleAndSelected : CompareResult.Hidden; + } + + public override string ToString() + { + return MenuText ?? Text.Replace("\n", " ").Replace("^", ""); + } } } From 6193a4fbdda492ac36cf93cdc5ffca03722e5ebb Mon Sep 17 00:00:00 2001 From: PocketMiner82 Date: Sat, 20 Apr 2024 19:48:41 +0200 Subject: [PATCH 2/4] fix: Autocomplete ToolTip didn't have line breaks --- pseudocodeIde/PseudocodeIDEForm.Designer.cs | 66 ++++++++++--------- pseudocodeIde/PseudocodeIDEForm.cs | 51 ++++++++++++++ .../pseudocode/PseudocodeAutocompleteItem.cs | 2 +- 3 files changed, 86 insertions(+), 33 deletions(-) diff --git a/pseudocodeIde/PseudocodeIDEForm.Designer.cs b/pseudocodeIde/PseudocodeIDEForm.Designer.cs index b9205e4..2fc9546 100644 --- a/pseudocodeIde/PseudocodeIDEForm.Designer.cs +++ b/pseudocodeIde/PseudocodeIDEForm.Designer.cs @@ -61,7 +61,6 @@ private void InitializeComponent() // // menuStrip // - this.menuStrip.GripMargin = new System.Windows.Forms.Padding(2, 2, 0, 2); this.menuStrip.ImageScalingSize = new System.Drawing.Size(24, 24); this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.fileMenuItem, @@ -71,7 +70,8 @@ private void InitializeComponent() this.helpMenuItem}); this.menuStrip.Location = new System.Drawing.Point(0, 0); this.menuStrip.Name = "menuStrip"; - this.menuStrip.Size = new System.Drawing.Size(1176, 36); + this.menuStrip.Padding = new System.Windows.Forms.Padding(4, 1, 0, 1); + this.menuStrip.Size = new System.Drawing.Size(784, 24); this.menuStrip.TabIndex = 0; this.menuStrip.Text = "menuStrip1"; // @@ -82,14 +82,14 @@ private void InitializeComponent() this.openMenuItem, this.saveMenuItem}); this.fileMenuItem.Name = "fileMenuItem"; - this.fileMenuItem.Size = new System.Drawing.Size(69, 32); + this.fileMenuItem.Size = new System.Drawing.Size(46, 22); this.fileMenuItem.Text = "Datei"; // // newMenuItem // this.newMenuItem.Name = "newMenuItem"; this.newMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N))); - this.newMenuItem.Size = new System.Drawing.Size(257, 34); + this.newMenuItem.Size = new System.Drawing.Size(166, 22); this.newMenuItem.Text = "Neu"; this.newMenuItem.Click += new System.EventHandler(this.NewMenuItem_Click); // @@ -97,7 +97,7 @@ private void InitializeComponent() // this.openMenuItem.Name = "openMenuItem"; this.openMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O))); - this.openMenuItem.Size = new System.Drawing.Size(257, 34); + this.openMenuItem.Size = new System.Drawing.Size(166, 22); this.openMenuItem.Text = "Öffnen"; this.openMenuItem.Click += new System.EventHandler(this.OpenMenuItem_Click); // @@ -106,7 +106,7 @@ private void InitializeComponent() this.saveMenuItem.Enabled = false; this.saveMenuItem.Name = "saveMenuItem"; this.saveMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S))); - this.saveMenuItem.Size = new System.Drawing.Size(257, 34); + this.saveMenuItem.Size = new System.Drawing.Size(166, 22); this.saveMenuItem.Text = "Speichern"; this.saveMenuItem.Click += new System.EventHandler(this.SaveMenuItem_Click); // @@ -121,7 +121,7 @@ private void InitializeComponent() this.toolStripSeparator4, this.goToMenuItem}); this.editMenuItem.Name = "editMenuItem"; - this.editMenuItem.Size = new System.Drawing.Size(111, 32); + this.editMenuItem.Size = new System.Drawing.Size(75, 22); this.editMenuItem.Text = "Bearbeiten"; // // undoToolStripMenuItem @@ -129,7 +129,7 @@ private void InitializeComponent() this.undoToolStripMenuItem.Enabled = false; this.undoToolStripMenuItem.Name = "undoToolStripMenuItem"; this.undoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z))); - this.undoToolStripMenuItem.Size = new System.Drawing.Size(311, 34); + this.undoToolStripMenuItem.Size = new System.Drawing.Size(203, 22); this.undoToolStripMenuItem.Text = "Rückgängig"; this.undoToolStripMenuItem.Click += new System.EventHandler(this.UndoToolStripMenuItem_Click); // @@ -138,20 +138,20 @@ private void InitializeComponent() this.redoToolStripMenuItem.Enabled = false; this.redoToolStripMenuItem.Name = "redoToolStripMenuItem"; this.redoToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Y))); - this.redoToolStripMenuItem.Size = new System.Drawing.Size(311, 34); + this.redoToolStripMenuItem.Size = new System.Drawing.Size(203, 22); this.redoToolStripMenuItem.Text = "Wiederherstellen"; this.redoToolStripMenuItem.Click += new System.EventHandler(this.RedoToolStripMenuItem_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(308, 6); + this.toolStripSeparator1.Size = new System.Drawing.Size(200, 6); // // findMenuItem // this.findMenuItem.Name = "findMenuItem"; this.findMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F))); - this.findMenuItem.Size = new System.Drawing.Size(311, 34); + this.findMenuItem.Size = new System.Drawing.Size(203, 22); this.findMenuItem.Text = "Suchen"; this.findMenuItem.Click += new System.EventHandler(this.FindMenuItem_Click); // @@ -159,20 +159,20 @@ private void InitializeComponent() // this.replaceMenuItem.Name = "replaceMenuItem"; this.replaceMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.H))); - this.replaceMenuItem.Size = new System.Drawing.Size(311, 34); + this.replaceMenuItem.Size = new System.Drawing.Size(203, 22); this.replaceMenuItem.Text = "Ersetzen"; this.replaceMenuItem.Click += new System.EventHandler(this.ReplaceMenuItem_Click); // // toolStripSeparator4 // this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(308, 6); + this.toolStripSeparator4.Size = new System.Drawing.Size(200, 6); // // goToMenuItem // this.goToMenuItem.Name = "goToMenuItem"; this.goToMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.G))); - this.goToMenuItem.Size = new System.Drawing.Size(311, 34); + this.goToMenuItem.Size = new System.Drawing.Size(203, 22); this.goToMenuItem.Text = "Gehe zu"; this.goToMenuItem.Click += new System.EventHandler(this.GoToMenuItem_Click); // @@ -181,14 +181,14 @@ private void InitializeComponent() this.viewMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.wordWrapMenuItem}); this.viewMenuItem.Name = "viewMenuItem"; - this.viewMenuItem.Size = new System.Drawing.Size(86, 32); + this.viewMenuItem.Size = new System.Drawing.Size(59, 22); this.viewMenuItem.Text = "Ansicht"; // // wordWrapMenuItem // this.wordWrapMenuItem.CheckOnClick = true; this.wordWrapMenuItem.Name = "wordWrapMenuItem"; - this.wordWrapMenuItem.Size = new System.Drawing.Size(320, 34); + this.wordWrapMenuItem.Size = new System.Drawing.Size(215, 22); this.wordWrapMenuItem.Text = "Zeilenumbrüche aktivieren"; this.wordWrapMenuItem.Click += new System.EventHandler(this.WordWrapMenuItem_Click); // @@ -200,14 +200,14 @@ private void InitializeComponent() this.toolStripSeparator2, this.singleEqualIsCompareOperatorMenuItem}); this.runMenuItem.Name = "runMenuItem"; - this.runMenuItem.Size = new System.Drawing.Size(109, 32); + this.runMenuItem.Size = new System.Drawing.Size(74, 22); this.runMenuItem.Text = "Ausführen"; // // runProgramMenuItem // this.runProgramMenuItem.Name = "runProgramMenuItem"; this.runProgramMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F5; - this.runProgramMenuItem.Size = new System.Drawing.Size(706, 34); + this.runProgramMenuItem.Size = new System.Drawing.Size(415, 22); this.runProgramMenuItem.Text = "Programm starten"; this.runProgramMenuItem.Click += new System.EventHandler(this.RunProgramMenuItem_Click); // @@ -215,14 +215,14 @@ private void InitializeComponent() // this.openOutputFormMenuItem.Name = "openOutputFormMenuItem"; this.openOutputFormMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F5))); - this.openOutputFormMenuItem.Size = new System.Drawing.Size(706, 34); + this.openOutputFormMenuItem.Size = new System.Drawing.Size(415, 22); this.openOutputFormMenuItem.Text = "Ausgabefenster öffnen"; this.openOutputFormMenuItem.Click += new System.EventHandler(this.OpenOutputFormMenuItem_Click); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(703, 6); + this.toolStripSeparator2.Size = new System.Drawing.Size(412, 6); // // singleEqualIsCompareOperatorMenuItem // @@ -231,7 +231,7 @@ private void InitializeComponent() this.singleEqualIsCompareOperatorMenuItem.ShortcutKeyDisplayString = ""; this.singleEqualIsCompareOperatorMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.D0))); - this.singleEqualIsCompareOperatorMenuItem.Size = new System.Drawing.Size(706, 34); + this.singleEqualIsCompareOperatorMenuItem.Size = new System.Drawing.Size(415, 22); this.singleEqualIsCompareOperatorMenuItem.Text = "Einfaches \'=\' wird als Vergleichsoperator verwendet"; this.singleEqualIsCompareOperatorMenuItem.Click += new System.EventHandler(this.SingleEqualIsCompareOperatorMenuItem_Click); // @@ -243,33 +243,33 @@ private void InitializeComponent() this.updateMenuItem, this.updateBetaMenuItem}); this.helpMenuItem.Name = "helpMenuItem"; - this.helpMenuItem.Size = new System.Drawing.Size(64, 32); + this.helpMenuItem.Size = new System.Drawing.Size(44, 22); this.helpMenuItem.Text = "Hilfe"; // // showHelpMenuItem // this.showHelpMenuItem.Name = "showHelpMenuItem"; this.showHelpMenuItem.ShortcutKeys = System.Windows.Forms.Keys.F1; - this.showHelpMenuItem.Size = new System.Drawing.Size(415, 34); + this.showHelpMenuItem.Size = new System.Drawing.Size(274, 22); this.showHelpMenuItem.Text = "Hilfe anzeigen"; this.showHelpMenuItem.Click += new System.EventHandler(this.ShowHelpMenuItem_Click); // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; - this.toolStripSeparator3.Size = new System.Drawing.Size(412, 6); + this.toolStripSeparator3.Size = new System.Drawing.Size(271, 6); // // updateMenuItem // this.updateMenuItem.Name = "updateMenuItem"; - this.updateMenuItem.Size = new System.Drawing.Size(415, 34); + this.updateMenuItem.Size = new System.Drawing.Size(274, 22); this.updateMenuItem.Text = "Pseudocode IDE aktualisieren"; this.updateMenuItem.Click += new System.EventHandler(this.UpdateMenuItem_Click); // // updateBetaMenuItem // this.updateBetaMenuItem.Name = "updateBetaMenuItem"; - this.updateBetaMenuItem.Size = new System.Drawing.Size(415, 34); + this.updateBetaMenuItem.Size = new System.Drawing.Size(274, 22); this.updateBetaMenuItem.Text = "Pseudocode IDE auf Beta aktualisieren"; this.updateBetaMenuItem.Click += new System.EventHandler(this.UpdateBetaMenuItem_Click); // @@ -285,12 +285,13 @@ private void InitializeComponent() this.codeTextBox.IndentationGuides = ScintillaNET.IndentView.Real; this.codeTextBox.IndentWidth = 4; this.codeTextBox.LexerName = null; - this.codeTextBox.Location = new System.Drawing.Point(0, 36); + this.codeTextBox.Location = new System.Drawing.Point(0, 24); + this.codeTextBox.Margin = new System.Windows.Forms.Padding(2); this.codeTextBox.MultiPaste = ScintillaNET.MultiPaste.Each; this.codeTextBox.MultipleSelection = true; this.codeTextBox.Name = "codeTextBox"; this.codeTextBox.ScrollWidth = 39; - this.codeTextBox.Size = new System.Drawing.Size(1176, 673); + this.codeTextBox.Size = new System.Drawing.Size(784, 437); this.codeTextBox.TabIndents = true; this.codeTextBox.TabIndex = 1; this.codeTextBox.UseRightToLeftReadingLayout = false; @@ -314,19 +315,20 @@ private void InitializeComponent() this.autoCompleteMenu.MaximumSize = new System.Drawing.Size(250, 200); this.autoCompleteMenu.MinFragmentLength = 1; this.autoCompleteMenu.TargetControlWrapper = null; + this.autoCompleteMenu.Selected += new System.EventHandler(this.AutoCompleteMenu_Selected); + this.autoCompleteMenu.Hovered += new System.EventHandler(this.AutoCompleteMenu_Hovered); // // PseudocodeIDEForm // - this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 20F); + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1176, 709); + this.ClientSize = new System.Drawing.Size(784, 461); this.Controls.Add(this.codeTextBox); this.Controls.Add(this.menuStrip); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.KeyPreview = true; this.MainMenuStrip = this.menuStrip; - this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); - this.MinimumSize = new System.Drawing.Size(511, 345); + this.MinimumSize = new System.Drawing.Size(346, 238); this.Name = "PseudocodeIDEForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Pseudocode IDE - Neue Datei"; diff --git a/pseudocodeIde/PseudocodeIDEForm.cs b/pseudocodeIde/PseudocodeIDEForm.cs index 8030df5..4ec0e37 100644 --- a/pseudocodeIde/PseudocodeIDEForm.cs +++ b/pseudocodeIde/PseudocodeIDEForm.cs @@ -53,6 +53,11 @@ public partial class PseudocodeIDEForm : Form /// private readonly Regex _noUpdateAfter = new Regex(@"^[a-zA-Z0-9_äöüÄÖÜß]$", RegexOptions.Multiline); + /// + /// The autocomplete tooltip + /// + private readonly ToolTip _toolTip = new ToolTip(); + /// /// the code currently in the textbox /// @@ -133,6 +138,9 @@ public PseudocodeIDEForm() CodeTextBox_TextChanged(null, null); // on first start, the code is always saved SetFileSaved(); + + _toolTip.OwnerDraw = false; + _toolTip.ShowAlways = true; } /// @@ -238,12 +246,55 @@ private void PseudocodeIDE_FormClosing(object sender, FormClosingEventArgs e) SaveMenuItem_Click(null, null); } } + + _toolTip.Dispose(); } // --------------------------------------------- // CODE TEXTBOX (Scintilla) // --------------------------------------------- + private void AutoCompleteMenu_Hovered(object sender, HoveredEventArgs e) + { + _toolTip.Hide(this); + + if (e.Item == null) + { + Debug.WriteLine("null"); + return; + } + + AutocompleteItem autocompleteItem = e.Item; + + string title = "Code Snippet:"; + string text = autocompleteItem.ToolTipText.Replace("\t", " "); + Color? backColor = autocompleteItem.ToolTipBackColor; + Color? foreColor = autocompleteItem.ToolTipForeColor; + + if (backColor != null) + { + _toolTip.BackColor = (Color)backColor; + } + + if (foreColor != null) + { + _toolTip.ForeColor = (Color)foreColor; + } + + Point locationOnForm = PointToClient( + ((AutocompleteListView)autoCompleteMenu.ListView).Parent.PointToScreen(((AutocompleteListView)autoCompleteMenu.ListView).Location)); + + _toolTip.ToolTipTitle = title; + _toolTip.Show(string.IsNullOrEmpty(text) ? title : text, this, + locationOnForm.X + ((AutocompleteListView)autoCompleteMenu.ListView).Width + 10, + locationOnForm.Y + 30); + } + + private void AutoCompleteMenu_Selected(object sender, SelectedEventArgs e) + { + _toolTip.Hide(this); + } + /// /// Updates the undo stack, when user updated the code /// diff --git a/pseudocodeIde/interpreter/pseudocode/PseudocodeAutocompleteItem.cs b/pseudocodeIde/interpreter/pseudocode/PseudocodeAutocompleteItem.cs index 515349c..77d8cc9 100644 --- a/pseudocodeIde/interpreter/pseudocode/PseudocodeAutocompleteItem.cs +++ b/pseudocodeIde/interpreter/pseudocode/PseudocodeAutocompleteItem.cs @@ -33,7 +33,7 @@ public PseudocodeAutocompleteItem(string snippet, string menuText = null) : base Text = snippet.Replace("\r", ""); MenuText = menuText; ToolTipText = snippet.Replace("^", ""); - ToolTipTitle = "Snippet:"; + ToolTipTitle = ""; } /// From 9f0d8539e989010c033461e3c6830a4b7f51aa8c Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Sat, 20 Apr 2024 17:50:00 +0000 Subject: [PATCH 3/4] chore(release): 1.6.3-dev.1 [skip ci] ## [1.6.3-dev.1](https://github.com/PocketMiner82/pseudocode-ide/compare/1.6.2...1.6.3-dev.1) (2024-04-20) ### Bug Fixes * autocomplete menu selection hack removed ([556733c](https://github.com/PocketMiner82/pseudocode-ide/commit/556733c9ee11add41531ba082e43174423d824b4)) * Autocomplete ToolTip didn't have line breaks ([6193a4f](https://github.com/PocketMiner82/pseudocode-ide/commit/6193a4fbdda492ac36cf93cdc5ffca03722e5ebb)) --- AutoUpdater.xml | 6 +++--- CHANGELOG.md | 8 ++++++++ pseudocodeIde/pseudocodeIde.csproj | 2 +- pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/AutoUpdater.xml b/AutoUpdater.xml index 2e4a370..9a6ff3e 100644 --- a/AutoUpdater.xml +++ b/AutoUpdater.xml @@ -1,7 +1,7 @@ - 1.6.2 - https://github.com/PocketMiner82/pseudocode-ide/releases/download/1.6.2/pseudocode-ide.zip - https://github.com/PocketMiner82/pseudocode-ide/blob/1.6.2/CHANGELOG.md + 1.6.3.1 + https://github.com/PocketMiner82/pseudocode-ide/releases/download/1.6.3-dev.1/pseudocode-ide.zip + https://github.com/PocketMiner82/pseudocode-ide/blob/1.6.3-dev.1/CHANGELOG.md false \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f34508..614e3cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## [1.6.3-dev.1](https://github.com/PocketMiner82/pseudocode-ide/compare/1.6.2...1.6.3-dev.1) (2024-04-20) + + +### Bug Fixes + +* autocomplete menu selection hack removed ([556733c](https://github.com/PocketMiner82/pseudocode-ide/commit/556733c9ee11add41531ba082e43174423d824b4)) +* Autocomplete ToolTip didn't have line breaks ([6193a4f](https://github.com/PocketMiner82/pseudocode-ide/commit/6193a4fbdda492ac36cf93cdc5ffca03722e5ebb)) + ## [1.6.2](https://github.com/PocketMiner82/pseudocode-ide/compare/1.6.1...1.6.2) (2024-04-20) diff --git a/pseudocodeIde/pseudocodeIde.csproj b/pseudocodeIde/pseudocodeIde.csproj index d4226aa..489b9b2 100644 --- a/pseudocodeIde/pseudocodeIde.csproj +++ b/pseudocodeIde/pseudocodeIde.csproj @@ -8,7 +8,7 @@ pseudocode-ide PocketMiner82 pseudocode-ide - 1.6.2 + 1.6.3.1 false false diff --git a/pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj b/pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj index ca6e9eb..6d9adf6 100644 --- a/pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj +++ b/pseudocodeIdeUpdater/pseudocodeIdeUpdater.csproj @@ -7,7 +7,7 @@ pseudocodeIdeUpdater Copyright © 2023 ..\bin\$(Configuration)\updater\ - 1.6.2 + 1.6.3.1 false false false From deb589c1f081b3308ca34492f21177b307bbe166 Mon Sep 17 00:00:00 2001 From: PocketMiner82 Date: Sat, 20 Apr 2024 19:51:42 +0200 Subject: [PATCH 4/4] chore: remove debug output +commented code --- pseudocodeIde/PseudocodeIDEForm.cs | 7 ------- pseudocodeIde/interpreter/scanner/Scanner.cs | 7 ------- 2 files changed, 14 deletions(-) diff --git a/pseudocodeIde/PseudocodeIDEForm.cs b/pseudocodeIde/PseudocodeIDEForm.cs index 4ec0e37..0a70132 100644 --- a/pseudocodeIde/PseudocodeIDEForm.cs +++ b/pseudocodeIde/PseudocodeIDEForm.cs @@ -260,7 +260,6 @@ private void AutoCompleteMenu_Hovered(object sender, HoveredEventArgs e) if (e.Item == null) { - Debug.WriteLine("null"); return; } @@ -384,12 +383,6 @@ private void CodeTextBox_KeyDown(object sender, KeyEventArgs e) e.SuppressKeyPress = TrySelectNextTabIndicator(); } - //// hack to allow enter to autocomplete even if down wasnt pressed before - //if ((e.KeyCode == Keys.Enter || e.KeyCode == Keys.Tab) && e.Modifiers == Keys.None && autoCompleteMenu.SelectedItemIndex < 0) - //{ - // autoCompleteMenu.ProcessKey((char)Keys.Down, e.Modifiers); - //} - // ignore CTRL[+SHIFT]+(Z/Y/L/R/E/S) if ((e.KeyCode == Keys.Z || e.KeyCode == Keys.Y || e.KeyCode == Keys.L || e.KeyCode == Keys.R || e.KeyCode == Keys.E || e.KeyCode == Keys.S) && (Control.ModifierKeys == Keys.Control || Control.ModifierKeys == (Keys.Control | Keys.Shift))) diff --git a/pseudocodeIde/interpreter/scanner/Scanner.cs b/pseudocodeIde/interpreter/scanner/Scanner.cs index b80eb54..823506b 100644 --- a/pseudocodeIde/interpreter/scanner/Scanner.cs +++ b/pseudocodeIde/interpreter/scanner/Scanner.cs @@ -214,13 +214,6 @@ private void HandleWhitspace(bool isNewLine) return; } } - - // currently, whitespaces often don't influence the behavior of the parser, - // we don't need to create a token for it - //if (!isNewLine) - //{ - // this.addToken(WHITESPACE); - //} } ///