txl_notebook_editor 0.2.6__tar.gz → 0.2.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {txl_notebook_editor-0.2.6 → txl_notebook_editor-0.2.7}/PKG-INFO +1 -1
- txl_notebook_editor-0.2.7/txl_notebook_editor/__init__.py +1 -0
- {txl_notebook_editor-0.2.6 → txl_notebook_editor-0.2.7}/txl_notebook_editor/components.py +9 -0
- txl_notebook_editor-0.2.6/txl_notebook_editor/__init__.py +0 -1
- {txl_notebook_editor-0.2.6 → txl_notebook_editor-0.2.7}/.gitignore +0 -0
- {txl_notebook_editor-0.2.6 → txl_notebook_editor-0.2.7}/LICENSE.txt +0 -0
- {txl_notebook_editor-0.2.6 → txl_notebook_editor-0.2.7}/README.md +0 -0
- {txl_notebook_editor-0.2.6 → txl_notebook_editor-0.2.7}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: txl_notebook_editor
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.7
|
|
4
4
|
Summary: TXL plugin for a notebook editor
|
|
5
5
|
Project-URL: Source, https://github.com/davidbrochart/jpterm/plugins/notebook_editor
|
|
6
6
|
Author-email: David Brochart <david.brochart@gmail.com>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.7"
|
|
@@ -152,7 +152,15 @@ class NotebookEditor(Editor, VerticalScroll, metaclass=NotebookEditorMeta):
|
|
|
152
152
|
kernel_name = kernelspec.get("name")
|
|
153
153
|
if kernel_name:
|
|
154
154
|
self.kernel = self.kernels(kernel_name)
|
|
155
|
+
elif target == "state":
|
|
156
|
+
if "dirty" in events.keys:
|
|
157
|
+
dirty = events.keys["dirty"]["newValue"]
|
|
158
|
+
if dirty:
|
|
159
|
+
self.main_area.set_dirty(self)
|
|
160
|
+
else:
|
|
161
|
+
self.main_area.clear_dirty(self)
|
|
155
162
|
elif target == "cells":
|
|
163
|
+
self.main_area.set_dirty(self)
|
|
156
164
|
for event in events:
|
|
157
165
|
if event.path:
|
|
158
166
|
continue
|
|
@@ -229,6 +237,7 @@ class NotebookEditor(Editor, VerticalScroll, metaclass=NotebookEditorMeta):
|
|
|
229
237
|
asyncio.create_task(do_later())
|
|
230
238
|
elif event.key == Keys.ControlS:
|
|
231
239
|
await self.contents.save(self.path, self.ynb)
|
|
240
|
+
self.main_area.clear_dirty(self)
|
|
232
241
|
event.stop()
|
|
233
242
|
elif event.key == Keys.Return or event.key == Keys.Enter:
|
|
234
243
|
event.stop()
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.6"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|