Skip to content

Commit

Permalink
Change Shortcut BG script
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoudkooi committed May 21, 2024
1 parent 6c13b4a commit 32152cc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG.md

## 8.1.0.1 (2024-05-20)
Fixes / changes:
- Change background script execute shortcut to CMD-SHIFT-Enter to prevent conflict with Now Assist

## 8.1.0.0 (2024-05-20)
Features:
- On clasic forms with attatchments, you can now click [] This opens a modal with a list of the attachments, and it tries to show the preview of the attachment.
Expand Down
4 changes: 2 additions & 2 deletions js/bgscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let snuLoadedResult = '';
let div = document.createElement('div');
let divInfo = document.createElement('div');
top.document.title ="⚪ BG script not started"
divInfo.innerText = 'CTRL/CMD Enter to Execute | Slashcommand /bg to open this page | Editor and shortcut added by SN Utils';
divInfo.innerText = 'CTRL/CMD SHIFT Enter to Execute | Slashcommand /bg to open this page | Editor and shortcut added by SN Utils';
divInfo.style.fontSize = '9pt';
divInfo.style.fontFamily = 'SourceSansPro, "Helvetica Neue", Arial';
let scrpt = document.getElementById('runscript');
Expand Down Expand Up @@ -81,7 +81,7 @@ if (snusettings.applybgseditor && scrpt) {
editor.addAction({
id: "runScript",
label: "Run script",
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter],
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.Enter],
contextMenuGroupId: "2_execution",
precondition: blockContext,
run: () => {
Expand Down
4 changes: 2 additions & 2 deletions js/bgscriptmodern.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let snuEditor;
let snuDiv = document.createElement('div');
let snuDivInfo = document.createElement('div');
top.document.title = "⚪ BG script not started"
snuDivInfo.innerText = 'CTRL/CMD Enter to Execute | Slashcommand /bgm to open this page | Shortcut and split screen added by SN Utils | ';
snuDivInfo.innerText = 'CTRL/CMD SHIFT Enter to Execute | Slashcommand /bgm to open this page | Shortcut and split screen added by SN Utils | ';
snuDivInfo.style.fontSize = '9pt';
snuDivInfo.style.fontFamily = 'SourceSansPro, "Helvetica Neue", Arial';
let snuScript = document.querySelector('div.script-container');
Expand Down Expand Up @@ -171,7 +171,7 @@ function snuEnhanceMonaco() {
snuEditor.addAction({
id: "runScript",
label: "Run script",
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.Enter],
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyMod.Shift | monaco.KeyCode.Enter],
contextMenuGroupId: "2_info",
precondition: blockContext,
run: () => {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"short_name": "SN Utils",
"description": "Productivity tools for ServiceNow. (Personal work, not affiliated to ServiceNow)",
"author": "Arnoud Kooi / arnoudkooi.com",
"version": "8.1.0.0",
"version": "8.1.0.1",
"manifest_version": 3,
"permissions": [
"activeTab",
Expand Down

0 comments on commit 32152cc

Please sign in to comment.