Comments (2)
Shouldn't be harder than
diff --git a/www/src/ts/editor/index.ts b/www/src/ts/editor/index.ts
index 8c170b6..78da6cf 100644
--- a/www/src/ts/editor/index.ts
+++ b/www/src/ts/editor/index.ts
@@ -33,6 +33,7 @@ import { customElement, property, query } from "lit/decorators.js";
import { editorStyles } from "./styles";
import "./shortcuts_ui";
import { AceKeyboardShortcuts } from "./shortcuts_ui";
+import { saveFile } from "../utils";
@customElement("ace-ic10")
export class IC10Editor extends BaseElement {
@@ -365,6 +366,13 @@ export class IC10Editor extends BaseElement {
that.kbShortcuts.show();
},
},
+ {
+ name: "save",
+ bindKey: {win: "Ctrl-S", mac: "Cmd-S"},
+ exec: function(editor: Ace.Editor) {
+ saveFile(window.Editor.editorValue);
+ }
+ }
]);
this.updateEditorSettings();
from ic10emu.
Yep, that would do it. only caveat is it would only activate when the editor has focus.
from ic10emu.
Related Issues (17)
- `aliases.keys().forEach is not a function` on live site in firefox HOT 2
- Autocomplete messes up spans HOT 2
- :) HOT 1
- Semantic tokens in editor
- Selects don't update their display when the menu item updates
- Error: unknown device ID HOT 4
- Emulator stuck on command "get r0 db 0"
- Feature request -> save project as project file HOT 2
- Present numbers in hex/oct/binary HOT 1
- interpreter doesn't handle modes correctly - unknown batch mode HOT 1
- Provide a way to persist sessions with gists HOT 1
- crash when typing `move foo -`
- `s db On 0` not working
- Error in Virtual Machin RuntimeError
- Suggestion: Add Simulation IC10 to write Read-Only Parameter
- Introduce a way to set IP HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ic10emu.