Skip to content

Added tab whitespacing, save through hotkey and toast to config codeeditor#702

Open
Dboy0ZDev wants to merge 3 commits intomainfrom
improve-configeditor-tab-and-save
Open

Added tab whitespacing, save through hotkey and toast to config codeeditor#702
Dboy0ZDev wants to merge 3 commits intomainfrom
improve-configeditor-tab-and-save

Conversation

@Dboy0ZDev
Copy link
Copy Markdown
Collaborator

Implemented suggestions from Issue: l3montree-dev/devguard#1871

  • You can now add whitespaces using the tab button
  • You can use hotkeys to save your config (CMD+S on Mac, CTRL + S on Windows/Linux)
  • You'll get a toast message after your config was saved successfully

Copilot AI review requested due to automatic review settings April 14, 2026 10:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the config file editing experience by improving keyboard ergonomics and user feedback in the config code editor UI.

Changes:

  • Add Cmd/Ctrl+S save hotkey support to the CodeMirror-based editor.
  • Enable indentation/whitespace insertion via the Tab key inside the editor.
  • Show a success toast after successfully saving a config file.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/components/common/ConfigFileEditor.tsx Adds success toast on save and wires onSave handler to trigger saving via hotkey.
src/components/common/CodeEditor.tsx Adds CodeMirror keymaps for Tab indentation and Mod-s save shortcut; introduces required onSave prop.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants