Skip to content

Commit

Permalink
Minor update v8.2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoudkooi committed Oct 24, 2024
1 parent 42fd05b commit d35c447
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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.2.2.1 (2024-10-24)
Fixes / changes:
- Minor update for Autocomplete for slash command switches (Slack)

## 8.2.2.0 (2024-10-23)
Fixes / changes:
- Autocomplete for slash command switches, i.e. -u (Slack)
Expand Down
4 changes: 2 additions & 2 deletions inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ var snuslashswitches = {
"uct": { "description": "Updated or Created Today ∀", "value": "^sys_created_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()^ORsys_updated_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()", "type": "encodedquerypart" },
"ut": { "description": "Updated Today ∀", "value": "^sys_updated_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()", "type": "encodedquerypart" },
"ct": { "description": "Created Today ∀", "value": "^sys_created_onONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()", "type": "encodedquerypart" },
"um": { "description": "Updated by M ∀", "value": "^sys_updated_by=javascript:gs.getUserName()", "type": "encodedquerypart" },
"um": { "description": "Updated by Me ∀", "value": "^sys_updated_by=javascript:gs.getUserName()", "type": "encodedquerypart" },
"cm": { "description": "Created by Me ∀", "value": "^sys_created_by=javascript:gs.getUserName()", "type": "encodedquerypart" },
"m": { "description": "Updated or Created by Me ∀", "value": "^sys_updated_by=javascript:gs.getUserName()^ORsys_created_by=javascript:gs.getUserName()", "type": "encodedquerypart" },
"ou": { "description": "Order by Updated Descending ↧", "value": "^ORDERBYDESCsys_updated_on", "type": "encodedquerypart" },
Expand Down Expand Up @@ -803,7 +803,7 @@ function snuSlashCommandAddListener() {
switchText += "<div class='cmdlabel'>-" + prop + ": " + snuslashswitches[prop].description + '</div>';
delete unusedSwitches[prop];
}
else {
if (!(snufilter + thisKeyWithSpace).includes(" -" + prop + " ")) {
autoCompleteSwitch = prop;
}
});
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.2.2.0",
"version": "8.2.2.1",
"manifest_version": 3,
"permissions": [
"activeTab",
Expand Down

0 comments on commit d35c447

Please sign in to comment.