Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
Code Editor Tab key insert spaces instead of a tab
Browse files Browse the repository at this point in the history
  • Loading branch information
DewGew authored Dec 3, 2019
1 parent d2ac009 commit 847ec04
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from helpers import configuration

"""Constants for Google Assistant."""
VERSION = '1.3.3'
VERSION = '1.3.4'
PUBLIC_URL = 'https://[YOUR REVERSE PROXY URL]'
HOMEGRAPH_URL = 'https://homegraph.googleapis.com/'
REQUEST_SYNC_BASE_URL = HOMEGRAPH_URL + 'v1/devices:requestSync'
Expand Down Expand Up @@ -512,6 +512,12 @@
mode: "yaml",
autoRefresh:true
}});
editor.setOption("extraKeys", {{
Tab: function(cm) {{
var spaces = Array(cm.getOption("indentUnit") + 1).join(" ");
cm.replaceSelection(spaces);
}}
}});
editor.on("change", function() {{
textTosave = editor.getValue();
document.getElementById("save").value = textTosave;
Expand Down

0 comments on commit 847ec04

Please sign in to comment.