-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
34 changed files
with
666 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
PasteBoard/Assets.xcassets/menubar-icon.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "paste (9).png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"filename" : "paste (10).png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "paste (9)-1.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"filename" : "paste (10)-1.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "paste (9)-2.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"filename" : "paste (10)-2.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// Utils.swift | ||
// PasteBoard | ||
// | ||
// Created by Steven J. Selcuk on 11.03.2021. | ||
// | ||
|
||
import Cocoa | ||
|
||
extension String { | ||
enum TruncationPosition { | ||
case head | ||
case middle | ||
case tail | ||
} | ||
|
||
func truncated(limit: Int, position: TruncationPosition = .tail, leader: String = "...") -> String { | ||
guard count > limit else { return self } | ||
|
||
switch position { | ||
case .head: | ||
return leader + suffix(limit) | ||
case .middle: | ||
let headCharactersCount = Int(ceil(Float(limit - leader.count) / 2.0)) | ||
|
||
let tailCharactersCount = Int(floor(Float(limit - leader.count) / 2.0)) | ||
|
||
return "\(prefix(headCharactersCount))\(leader)\(suffix(tailCharactersCount))" | ||
case .tail: | ||
return prefix(limit) + leader | ||
} | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 36 additions & 3 deletions
39
PasteBoardFinderExtension/Media.xcassets/toolbar-icon.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+543 Bytes
PasteBoardFinderExtension/Media.xcassets/toolbar-icon.imageset/paste (10)-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+543 Bytes
PasteBoardFinderExtension/Media.xcassets/toolbar-icon.imageset/paste (10)-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+543 Bytes
PasteBoardFinderExtension/Media.xcassets/toolbar-icon.imageset/paste (10).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-641 Bytes
PasteBoardFinderExtension/Media.xcassets/toolbar-icon.imageset/paste (6).png
Binary file not shown.
Binary file removed
BIN
-832 Bytes
PasteBoardFinderExtension/Media.xcassets/toolbar-icon.imageset/paste (7).png
Binary file not shown.
Binary file removed
BIN
-993 Bytes
PasteBoardFinderExtension/Media.xcassets/toolbar-icon.imageset/paste (8).png
Binary file not shown.
Binary file added
BIN
+453 Bytes
PasteBoardFinderExtension/Media.xcassets/toolbar-icon.imageset/paste (9)-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+453 Bytes
PasteBoardFinderExtension/Media.xcassets/toolbar-icon.imageset/paste (9)-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+453 Bytes
PasteBoardFinderExtension/Media.xcassets/toolbar-icon.imageset/paste (9).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.