Skip to content
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

Separate out File operations #10

Merged
merged 1 commit into from
Dec 3, 2023
Merged

Separate out File operations #10

merged 1 commit into from
Dec 3, 2023

Conversation

windymilla
Copy link
Collaborator

  1. Separate out File operations into their own module
  2. Also fix key binding bug - by default Ctrl-O adds a blank line to a Text widget. We have bound it to Open File in our Text widget, but the class binding was still being called, so doing Open File also added a blank line (at the end of the file) so the file appeared "edited" immediately after loading. By returning the string "break" from the instance callback, it stops the class callback being called.

1. Separate out File operations into their own module
2. Also fix key binding bug - by default Ctrl-O adds a blank line
to a Text widget. We have bound it to Open File in our Text
widget, but the class binding was still being called, so doing
Open File also added a blank line (at the end of the file) so the
file appeared "edited" immediately after loading. By returning
the string "break" from the instance callback, it stops the
class callback being called.
@windymilla windymilla merged commit 09eaa25 into master Dec 3, 2023
1 check passed
@windymilla windymilla deleted the file-file branch December 8, 2023 16:51
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