Skip to content

Commit 87154ad

Browse files
committed
Refactored: Added consistent spacing before inline curly brackets
1 parent 0865ca4 commit 87154ad

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

components/clipCreatorGUI.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
showClipCreatorGUI(createAsQuickClip = false){
2+
showClipCreatorGUI(createAsQuickClip = false) {
33
global
44

55
Gui New

components/logic.ahk

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
deleteOldLogFiles(){
2+
deleteOldLogFiles() {
33
global
44

55
oldLogFileNum := clipFiles.count() - maxClipFileNum
@@ -20,32 +20,32 @@ deleteOldLogFiles(){
2020

2121
;-------------------------------------------------------
2222

23-
deleteClipFileName(place){
23+
deleteClipFileName(place) {
2424
global
2525
return clipFiles.removeAt(clipFiles.count() - place)
2626
}
2727

28-
getClipFileName(place){
28+
getClipFileName(place) {
2929
global
3030
return clipFiles[clipFiles.count() - place]
3131
}
3232

33-
getClipFilePath(place){
33+
getClipFilePath(place) {
3434
global
3535
return clipLogDir . getClipFileName(place)
3636
}
3737

38-
hasClipFiles(){
38+
hasClipFiles() {
3939
global
4040
return (clipFiles.count() != 0)
4141
}
4242

43-
hasClipFile(index){
43+
hasClipFile(index) {
4444
global
4545
return (index >= 0 && index < clipFiles.count() && index < maxClipFileNum)
4646
}
4747

48-
setClipCursorPos(index, new := false){
48+
setClipCursorPos(index, new := false) {
4949
global
5050

5151
if ((index != clipCursorPos || new == true) && hasClipFile(index)) {
@@ -57,7 +57,7 @@ setClipCursorPos(index, new := false){
5757
}
5858
}
5959

60-
calcPlace(place = ""){
60+
calcPlace(place = "") {
6161
global
6262

6363
if (place == "") {
@@ -74,12 +74,12 @@ calcPlace(place = ""){
7474
}
7575
}
7676

77-
getExtension(fileName){
77+
getExtension(fileName) {
7878
fileNameArr := StrSplit(fileName, ".")
7979
return fileNameArr[fileNameArr.MaxIndex()]
8080
}
8181

82-
getUniqueFileExtension(extLessFileWithPath){
82+
getUniqueFileExtension(extLessFileWithPath) {
8383
Loop, Files, %extLessFileWithPath%.*
8484
{
8585
return getExtension(A_LoopFileName)
@@ -91,19 +91,19 @@ getCurrentCustomQuickClipBase() {
9191
return customQuickClipTableIsUsed ? customQuickClipTableList[customQuickClipTablePos] : customQuickClipTablePos
9292
}
9393

94-
getQuickClipCurrentSlotString(index){
94+
getQuickClipCurrentSlotString(index) {
9595
global
9696
return getCurrentCustomQuickClipBase() . " - " . index
9797
}
9898

99-
quickClipExists(index){
99+
quickClipExists(index) {
100100
global
101101

102102
fileAttributes := FileExist(quickClipLogDir . getCurrentCustomQuickClipBase() . index . ".?log")
103103
return (fileAttributes != "")
104104
}
105105

106-
getFullPathOfQuickClip(place){
106+
getFullPathOfQuickClip(place) {
107107
global
108108

109109
quickClipFile := quickClipLogDir . getCurrentCustomQuickClipBase() . place
@@ -112,7 +112,7 @@ getFullPathOfQuickClip(place){
112112
return quickClipFile . "." . quickClipType
113113
}
114114

115-
readClipFromFile(filePathToRead){
115+
readClipFromFile(filePathToRead) {
116116
global
117117

118118
try {
@@ -123,7 +123,7 @@ readClipFromFile(filePathToRead){
123123
}
124124
}
125125

126-
loadClipDataWithoutSaving(data, isFilePath = false){
126+
loadClipDataWithoutSaving(data, isFilePath = false) {
127127
global
128128

129129
OnClipboardChange("saveClipb", 0)
@@ -139,7 +139,7 @@ loadClipDataWithoutSaving(data, isFilePath = false){
139139

140140
;------------------------------------------------
141141

142-
waitForClipboard(dataToWaitFor = false){
142+
waitForClipboard(dataToWaitFor = false) {
143143
global
144144

145145
if (dataToWaitFor == false)
@@ -151,7 +151,7 @@ waitForClipboard(dataToWaitFor = false){
151151
;--------------------------------------------------------------------------------------------------
152152
;--------------------------------------------------------------------------------------------------
153153

154-
saveClipb(clipTypeID){
154+
saveClipb(clipTypeID) {
155155
global
156156

157157
if (saveClipbRunning) {
@@ -210,7 +210,7 @@ saveClipb(clipTypeID){
210210

211211
;--------------------------------------------------------------------------------------------------
212212

213-
changeClip(place = "", force = false, showPreview = true){
213+
changeClip(place = "", force = false, showPreview = true) {
214214
global
215215

216216
if (changeClipRunning) {
@@ -237,7 +237,7 @@ changeClip(place = "", force = false, showPreview = true){
237237
} else if (place == "" && force) {
238238
changed := setClipCursorPos(clipCursorPos, force)
239239
} else if place is Integer
240-
{
240+
{
241241
changed := setClipCursorPos(place, force)
242242
if ( !changed && place != clipCursorPos) {
243243
ToolTip % errorNoClipAtIndex
@@ -257,7 +257,7 @@ changeClip(place = "", force = false, showPreview = true){
257257
changeClipRunning := false
258258
}
259259

260-
showClipPreview(tooltipHeader, cType){
260+
showClipPreview(tooltipHeader, cType) {
261261
global
262262

263263
if (showClipPreviewRunning) {
@@ -333,7 +333,7 @@ showClipPreview(tooltipHeader, cType){
333333
showClipPreviewRunning := false
334334
}
335335

336-
instantPaste(place){
336+
instantPaste(place) {
337337
global
338338

339339
if (instantPasteRunning) {
@@ -358,7 +358,7 @@ instantPaste(place){
358358
instantPasteRunning := false
359359
}
360360

361-
AddClipFromQuickClip(quickClipIndex){
361+
AddClipFromQuickClip(quickClipIndex) {
362362
global
363363

364364
if (AddClipFromQuickClipRunning) {
@@ -382,7 +382,7 @@ AddClipFromQuickClip(quickClipIndex){
382382
AddClipFromQuickClipRunning := false
383383
}
384384

385-
deleteClip(place = "", maintainCursorPos = false){
385+
deleteClip(place = "", maintainCursorPos = false) {
386386
global
387387

388388
if (deleteClipRunning) {
@@ -432,7 +432,7 @@ deleteClip(place = "", maintainCursorPos = false){
432432

433433
;--------------------------------------------------------------------------------------------------
434434

435-
setQuickClipTable(place := ""){
435+
setQuickClipTable(place := "") {
436436
global
437437

438438
if (place == "") {
@@ -450,7 +450,7 @@ setQuickClipTable(place := ""){
450450
ToolTip % "Quick clip table: " . getCurrentCustomQuickClipBase()
451451
}
452452

453-
setQuickClip(place, dataToUse = false){
453+
setQuickClip(place, dataToUse = false) {
454454
global
455455

456456
if (setQuickClipRunning) {
@@ -490,7 +490,7 @@ setQuickClip(place, dataToUse = false){
490490
setQuickClipRunning := false
491491
}
492492

493-
peekQuickClip(place, customHeader = ""){
493+
peekQuickClip(place, customHeader = "") {
494494
global
495495

496496
if (peekQuickClipRunning) {
@@ -524,7 +524,7 @@ peekQuickClip(place, customHeader = ""){
524524
peekQuickClipRunning := false
525525
}
526526

527-
pasteQuickClip(place){
527+
pasteQuickClip(place) {
528528
global
529529

530530
if (pasteQuickClipRunning) {
@@ -550,7 +550,7 @@ pasteQuickClip(place){
550550
pasteQuickClipRunning := false
551551
}
552552

553-
deleteQuickClip(place){
553+
deleteQuickClip(place) {
554554
global
555555

556556
if (deleteQuickClipRunning) {

0 commit comments

Comments
 (0)