Skip to content

Commit

Permalink
history_index -> frontmost_application_history_index
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Dec 5, 2024
1 parent d4585fd commit 0ba288a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
22 changes: 11 additions & 11 deletions public/json/personal_tekezo_launcher_mode_v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"rules": [
{
"description": "Launcher Mode v4 (rev 25)",
"description": "Launcher Mode v4 (rev 26)",
"available_since": "15.3.4",
"manipulators": [
{
Expand All @@ -22,7 +22,7 @@
{
"software_function": {
"open_application": {
"history_index": 1
"frontmost_application_history_index": 1
}
}
}
Expand Down Expand Up @@ -74,7 +74,7 @@
{
"software_function": {
"open_application": {
"history_index": 1
"frontmost_application_history_index": 1
}
}
}
Expand All @@ -98,7 +98,7 @@
{
"software_function": {
"open_application": {
"history_index": 2
"frontmost_application_history_index": 2
}
}
}
Expand Down Expand Up @@ -150,7 +150,7 @@
{
"software_function": {
"open_application": {
"history_index": 2
"frontmost_application_history_index": 2
}
}
}
Expand All @@ -174,7 +174,7 @@
{
"software_function": {
"open_application": {
"history_index": 3
"frontmost_application_history_index": 3
}
}
}
Expand Down Expand Up @@ -226,7 +226,7 @@
{
"software_function": {
"open_application": {
"history_index": 3
"frontmost_application_history_index": 3
}
}
}
Expand All @@ -250,7 +250,7 @@
{
"software_function": {
"open_application": {
"history_index": 4
"frontmost_application_history_index": 4
}
}
}
Expand Down Expand Up @@ -302,7 +302,7 @@
{
"software_function": {
"open_application": {
"history_index": 4
"frontmost_application_history_index": 4
}
}
}
Expand All @@ -326,7 +326,7 @@
{
"software_function": {
"open_application": {
"history_index": 5
"frontmost_application_history_index": 5
}
}
}
Expand Down Expand Up @@ -378,7 +378,7 @@
{
"software_function": {
"open_application": {
"history_index": 5
"frontmost_application_history_index": 5
}
}
}
Expand Down
18 changes: 9 additions & 9 deletions src/json/personal_tekezo_launcher_mode_v4.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ function main() {
maintainers: ['tekezo'],
rules: [
{
description: 'Launcher Mode v4 (rev 25)',
description: 'Launcher Mode v4 (rev 26)',
available_since: '15.3.4',
manipulators: [].concat(
generateLauncherMode('1', { historyIndex: 1 }),
generateLauncherMode('2', { historyIndex: 2 }),
generateLauncherMode('3', { historyIndex: 3 }),
generateLauncherMode('4', { historyIndex: 4 }),
generateLauncherMode('5', { historyIndex: 5 }),
generateLauncherMode('1', { frontmostApplicationHistoryIndex: 1 }),
generateLauncherMode('2', { frontmostApplicationHistoryIndex: 2 }),
generateLauncherMode('3', { frontmostApplicationHistoryIndex: 3 }),
generateLauncherMode('4', { frontmostApplicationHistoryIndex: 4 }),
generateLauncherMode('5', { frontmostApplicationHistoryIndex: 5 }),
generateLauncherMode('a', { bundleIdentifier: 'com.apple.ActivityMonitor' }),
generateLauncherMode('c', { bundleIdentifier: 'com.google.Chrome' }),
generateLauncherMode('e', { bundleIdentifier: 'com.microsoft.VSCode' }),
Expand Down Expand Up @@ -49,7 +49,7 @@ function generateLauncherMode(
/**
* @type {{
* bundleIdentifier?: string,
* historyIndex?: number,
* frontmostApplicationHistoryIndex?: number,
* to?: any[],
* }} */
options
Expand All @@ -66,11 +66,11 @@ function generateLauncherMode(
},
})
}
if (options.historyIndex !== undefined) {
if (options.frontmostApplicationHistoryIndex !== undefined) {
to.push({
software_function: {
open_application: {
history_index: options.historyIndex,
frontmost_application_history_index: options.frontmostApplicationHistoryIndex,
},
},
})
Expand Down

0 comments on commit 0ba288a

Please sign in to comment.