Skip to content

Conversation

@ABB00717
Copy link

@ABB00717 ABB00717 commented Jan 16, 2026

  • Add file_save function to write buffer content to the file.
  • Bind the 's' key (Ctrl + s) to trigger the save action.

- Add `file_save` function to write buffer content to the file.
- Bind the 's' key to trigger the save action.
Copilot AI review requested due to automatic review settings January 16, 2026 01:52
Copy link

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 implements file saving functionality to a text editor application. It allows users to save their buffer content by pressing the 's' key, writing all edited lines back to the original file.

Changes:

  • Added file_save function to write the current buffer contents to a file
  • Moved the 's' key binding from SDL_TEXTINPUT (with CTRL modifier) to SDL_KEYDOWN event handling to trigger file save operation
  • Added missing break statement after SDLK_TAB case

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

@ABB00717
Copy link
Author

Fair enough, I'm sorry for my stupidity :(

- Fix the stupid 's' keybinding
- Error logging when saving failed
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.

1 participant