Add ⌘F find in transcripts and a TODO filter on the project page
This commit is contained in:
@@ -56,6 +56,9 @@ final class Overlays {
|
||||
var leftTab = LeftTab.lead
|
||||
var leadFocus = 0
|
||||
var tabFocus = 0
|
||||
var findLead = 0
|
||||
var findTask = 0
|
||||
@ObservationIgnored var endFind: (token: String, run: () -> Void)?
|
||||
var listKeys = false
|
||||
var listCursor: String?
|
||||
var projectTab = ProjectTab.tasks
|
||||
@@ -148,6 +151,14 @@ final class Overlays {
|
||||
#endif
|
||||
}
|
||||
|
||||
func cancelFind() -> Bool {
|
||||
guard let endFind else {
|
||||
return false
|
||||
}
|
||||
endFind.run()
|
||||
return true
|
||||
}
|
||||
|
||||
func closeTop() {
|
||||
if !alerts.isEmpty {
|
||||
alerts.removeLast()
|
||||
@@ -201,6 +212,9 @@ final class Overlays {
|
||||
if !dialogOpen && flags.contains(.control) && !flags.contains(.command) && goKeys.contains(chars) {
|
||||
return ctrl(chars)
|
||||
}
|
||||
if !dialogOpen && flags.subtracting(.capsLock) == .command && chars == "f" {
|
||||
return ctrl(chars)
|
||||
}
|
||||
let marked = (NSApp.keyWindow?.firstResponder as? NSTextView)?.hasMarkedText() ?? false
|
||||
if code == 53 {
|
||||
if isOpen {
|
||||
|
||||
Reference in New Issue
Block a user