Skip to content

Commit dc5ef31

Browse files
authored
Update HyperSearch.ahk
1 parent 995c317 commit dc5ef31

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

HyperSearch.ahk

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -376,17 +376,17 @@ ButtonSubmit(*)
376376
} else if (lastSub.UsrIn ~= "i)^export>cat.{0,5}>h.{0,4}s.{0,5}") {
377377
ShareCat()
378378
DestroyGui()
379-
openSource()
379+
Run A_WorkingDir
380380
return
381381
} else if (lastSub.UsrIn ~= "i)^export>cat.{0,5}") {
382382
ExportCat()
383383
DestroyGui()
384-
OpenSource()
384+
Run A_WorkingDir
385385
return
386386
} else if (lastSub.UsrIn ~= "i)^export>repo.{0,6}") {
387387
ExportRepo()
388388
DestroyGui()
389-
OpenSource()
389+
Run A_WorkingDir
390390
return
391391
} else if (lastSub.UsrIn ~= ".*\+.*"){
392392
AppendLinks()
@@ -1204,13 +1204,9 @@ NewRepo(*)
12041204
return
12051205
}
12061206

1207-
FileAppend "
1208-
(
1209-
" Quick Access","[<Quick Start Guide>](*)"
1210-
"Quick Start Guide","[NAVIGATION REFERENCE](https://github.com/JSSatchell/HyperSearch#navigation)[Press Space to search the category index on the left]()[Tab between control windows]()[Press Enter after typing Space to set focus to links]()[Use Enter or double click links to activate URL]()[ ]()[TEXT ENTRY REFERENCE](https://github.com/JSSatchell/HyperSearch#adding--removing-categories--links)[Edit Favorites - 'Favorite#>Label>URL'](https://github.com/JSSatchell/HyperSearch#update-favorites)[Add Index Category - 'Category Name+']()[Add link - '+Link Name+Link URL']()[Add at Position - '+Position#+Link Name+LinkURL']()[Remove Selected Link - 'Delete-']()[Remove at Position - 'Delete-Position#']()[Delete Category - 'Delete-Category']()[ ]()[SETTINGS](https://github.com/JSSatchell/HyperSearch#update-the-settings)[Min/Max Mode - 'Set>Min/Max']()[Dark/Light Mode - 'Set>Dark/Light']()[Transparency - 'Set>Opacity>Percentage']()[]()[CLICK HERE for full feature list & updates](https://github.com/JSSatchell/HyperSearch)"
1211-
)", newRepo
1207+
repo := newRepo
12121208
IniWrite newRepo, "HS_Settings.ini", "Settings", "Repository"
1213-
repo:=newRepo
1209+
GenerateHSR()
12141210
}
12151211

12161212
;;;;; FAVORITES BAR
@@ -1230,8 +1226,8 @@ LoadMenu(*)
12301226
}
12311227
ExitMenu.Add("Close Window", DestroyGui)
12321228
ExitMenu.Add("Exit App", ExitAppFunc)
1233-
HelpMenu.Add("Support and updates", openGit)
1234-
HelpMenu.Add("Open source folder", openSource)
1229+
HelpMenu.Add("Support and updates", helpLinks)
1230+
HelpMenu.Add("Open source folder", helpLinks)
12351231
MainMenu.Add("[&?]", HelpMenu, "+right")
12361232
MainMenu.Add("[&X]", ExitMenu, "+right")
12371233
}
@@ -1273,15 +1269,13 @@ EditFav(*)
12731269
DestroyGui()
12741270
}
12751271

1276-
openGit(*)
1277-
{
1278-
Run "https://github.com/JSSatchell/HyperSearch"
1279-
DestroyGui()
1280-
}
12811272

1282-
openSource(*)
1273+
helpLinks(choice*)
12831274
{
1284-
Run A_WorkingDir
1275+
if (choice=="Support and updates")
1276+
Run "https://github.com/JSSatchell/HyperSearch"
1277+
else if (choice=="Open source folder")
1278+
Run A_WorkingDir
12851279
DestroyGui()
12861280
}
12871281

0 commit comments

Comments
 (0)