Screenshots, hung out to dry. A tiny native macOS app that hangs every screenshot on a line at the top of your screen.
Swift
⌘Z over the line puts back what was taken down (#104)
Ashley30683eb78916
diff --git a/README.md b/README.mdindex e983a75..b89e6a5 100644--- a/README.md+++ b/README.md@@ -54,6 +54,7 @@ Rest the pointer in the menu bar and it glides down. Move away and it's gone.| Drag into an app | Send a copy. It stays on the line. || Drag into a folder | Keep it there. It leaves the line. || Drag to the Trash, or click the cross | Let it go. |+| <kbd>⌘</kbd> <kbd>Z</kbd> with the pointer on the line | Hang back what you just let go. || Rest the pointer in the menu bar | Bring the line down on that screen. || Click anything in the menu bar | Put it away. || <kbd>⌃</kbd> <kbd>⌥</kbd> <kbd>T</kbd> | Show or hide the line. Change it under Shortcut in the menu bar. |diff --git a/Sources/Tendedero/AppDelegate.swift b/Sources/Tendedero/AppDelegate.swiftindex b4e4438..fccb970 100644--- a/Sources/Tendedero/AppDelegate.swift+++ b/Sources/Tendedero/AppDelegate.swift@@ -475,6 +475,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {mouseTimer?.invalidate()mouseTimer = nilpanel.ignoresMouseEvents = true+ holdPutBackKey(false)}/// How long the cursor rests against the top edge before the line comes@@ -524,6 +525,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {if !inMenuBar { menuBarSuppressed = false }guard isRevealed else {+ holdPutBackKey(false)// Resting in the menu bar brings the line down on that screen.// Pushing against the top edge is part of it, and it also works// when another display sits above and the pointer never stops.@@ -556,6 +558,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {if let screen = panel.screen { zone.size.height = screen.frame.maxY - zone.minY }let inside = NSMouseInRect(mouse, zone, false)if inside && pinned { pinned = false }+ holdPutBackKey(inside)let busy = pinned || GrabView.isDragging || GrabView.isShowingMenu|| line.pressedID != nil || now < peekUntil@@ -590,6 +593,32 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {}}+ // MARK: Putting back++ /// ⌘Z while the pointer is on the line. The line never takes the+ /// keyboard, so it only borrows ⌘Z then, as a hot key. Everywhere else+ /// ⌘Z stays the undo of the app you are in.+ private var putBackKey: HotKey?++ private func holdPutBackKey(_ hold: Bool) {+ let hold = hold && line.canPutBack+ guard hold != (putBackKey != nil) else { return }+ putBackKey = hold ? HotKey(Shortcut.putBack) { [weak self] in self?.putBack() } : nil+ }++ /// From the menu the line is usually up, so it comes down for a moment+ /// to show the photos going back.+ private func putBack() {+ if !isRevealed {+ panel.placeOnScreen()+ updateCapacity()+ wanted = true+ refresh()+ reveal(peekFor: 2.5)+ }+ line.putBack()+ }+// MARK: Shortcutprivate func registerShortcut() {@@ -688,6 +717,12 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSMenuDelegate {clearItem.isEnabled = line.liveCount > 0menu.addItem(clearItem)+ let putBackItem = ClosureMenuItem(L("Put back"), key: "z") { [weak self] in+ self?.putBack()+ }+ putBackItem.isEnabled = line.canPutBack+ menu.addItem(putBackItem)+let inbox = ClosureMenuItem(L("Handle screenshots")) { [weak self] inself?.setInbox(!Inbox.isEnabled)}diff --git a/Sources/Tendedero/HotKey.swift b/Sources/Tendedero/HotKey.swiftindex 6ed72ab..90da83a 100644--- a/Sources/Tendedero/HotKey.swift+++ b/Sources/Tendedero/HotKey.swift@@ -1,34 +1,44 @@import AppKitimport Carbon-/// A single global shortcut through the Carbon hot key API. Unlike a global-/// key monitor, it needs no Accessibility permission.+/// A global shortcut through the Carbon hot key API. Unlike a global key+/// monitor, it needs no Accessibility permission. It lasts as long as the+/// object.final class HotKey {private var ref: EventHotKeyRef?- private static var action: (() -> Void)?+ private let id: UInt32+ private static var actions: [UInt32: () -> Void] = [:]+ private static var nextID: UInt32 = 1private static var handlerInstalled = false/// Nil when the combination cannot be registered, for example because/// another app already took it.init?(_ shortcut: Shortcut, action: @escaping () -> Void) {- HotKey.action = action- // One handler for the app, however many times the shortcut changes.+ // One handler for the app, whatever the shortcuts. It finds which one+ // was pressed by its id.if !HotKey.handlerInstalled {var spec = EventTypeSpec(eventClass: OSType(kEventClassKeyboard), eventKind: UInt32(kEventHotKeyPressed))- InstallEventHandler(GetApplicationEventTarget(), { _, _, _ in- DispatchQueue.main.async { HotKey.action?() }+ InstallEventHandler(GetApplicationEventTarget(), { _, event, _ in+ var pressed = EventHotKeyID()+ GetEventParameter(event, EventParamName(kEventParamDirectObject), EventParamType(typeEventHotKeyID),+ nil, MemoryLayout<EventHotKeyID>.size, nil, &pressed)+ DispatchQueue.main.async { HotKey.actions[pressed.id]?() }return noErr}, 1, &spec, nil, nil)HotKey.handlerInstalled = true}- let id = EventHotKeyID(signature: OSType(0x5445_4E44), id: 1) // "TEND"- let status = RegisterEventHotKey(UInt32(shortcut.keyCode), UInt32(shortcut.carbonModifiers), id,+ id = HotKey.nextID+ HotKey.nextID += 1+ let hotKeyID = EventHotKeyID(signature: OSType(0x5445_4E44), id: id) // "TEND"+ let status = RegisterEventHotKey(UInt32(shortcut.keyCode), UInt32(shortcut.carbonModifiers), hotKeyID,GetApplicationEventTarget(), 0, &ref)guard status == noErr, ref != nil else { return nil }+ HotKey.actions[id] = action}deinit {if let ref { UnregisterEventHotKey(ref) }+ HotKey.actions[id] = nil}}@@ -41,6 +51,35 @@ struct Shortcut: Equatable {static let standard = Shortcut(keyCode: kVK_ANSI_T, modifiers: [.control, .option], key: "t")+ /// ⌘Z, for Put back while the pointer is on the line. A hot key is a key+ /// on the keyboard, not a letter, so it is the key that types Z with+ /// Command held in the layout in use: on AZERTY, where QWERTY has W.+ static var putBack: Shortcut {+ Shortcut(keyCode: keyCode(typing: "z") ?? kVK_ANSI_Z, modifiers: .command, key: "z")+ }++ /// The key that types this letter with Command held, in a keyboard+ /// layout, by default the one in use.+ static func keyCode(typing letter: String,+ in source: TISInputSource? = TISCopyCurrentKeyboardLayoutInputSource()?.takeRetainedValue()) -> Int? {+ guard let source, let data = TISGetInputSourceProperty(source, kTISPropertyUnicodeKeyLayoutData) else { return nil }+ let layout = Unmanaged<CFData>.fromOpaque(data).takeUnretainedValue() as Data+ return layout.withUnsafeBytes { bytes -> Int? in+ guard let keys = bytes.baseAddress?.assumingMemoryBound(to: UCKeyboardLayout.self) else { return nil }+ let command = UInt32((cmdKey >> 8) & 0xFF)+ for code in 0..<128 {+ var dead: UInt32 = 0+ var chars = [UniChar](repeating: 0, count: 4)+ var length = 0+ let status = UCKeyTranslate(keys, UInt16(code), UInt16(kUCKeyActionDown), command,+ UInt32(LMGetKbdType()), OptionBits(kUCKeyTranslateNoDeadKeysBit),+ &dead, chars.count, &length, &chars)+ if status == noErr, String(utf16CodeUnits: chars, count: length).lowercased() == letter { return code }+ }+ return nil+ }+ }+private static let defaultsKey = "shortcut"/// The user's choice. Nil means no shortcut at all.diff --git a/Sources/Tendedero/Line.swift b/Sources/Tendedero/Line.swiftindex 17905f1..500f5b2 100644--- a/Sources/Tendedero/Line.swift+++ b/Sources/Tendedero/Line.swift@@ -135,11 +135,13 @@ final class Line: ObservableObject {takeDown(neighbours(of: id, toTheLeft: toTheLeft))}- /// One after another, and only the first makes a sound.+ /// One after another, and only the first makes a sound. They are one+ /// step, so Put back brings them all back at once.private func takeDown(_ live: [Pegged]) {+ let step = UUID()for (n, item) in live.enumerated() {DispatchQueue.main.asyncAfter(deadline: .now() + 0.06 * Double(n)) { [weak self] in- self?.discard(item.id, quietly: n > 0)+ self?.discard(item.id, quietly: n > 0, step: step)}}}@@ -195,9 +197,13 @@ final class Line: ObservableObject {/// Moves the file to the Trash and takes the photo off the line. When a/// drag ends on the Dock's Trash, macOS only reports it: deleting the file/// is the source app's job, as Finder does.+ ///+ /// `step` is what Put back brings it back with. Nil when the line lets+ /// a photo go by itself, which is not undone.@discardableResult- func trash(_ id: UUID, quietly: Bool = false) -> Bool {+ func trash(_ id: UUID, quietly: Bool = false, step: UUID? = UUID()) -> Bool {guard let item = items.first(where: { $0.id == id }) else { return false }+ let index = liveIndex(of: id)do {var trashed: NSURL?try FileManager.default.trashItem(at: item.url, resultingItemURL: &trashed)@@ -205,6 +211,9 @@ final class Line: ObservableObject {log.notice("Trashed \(item.url.lastPathComponent, privacy: .public)")if soundOn && !quietly { Line.trashSound?.play() }drop(id, quietly: true)+ if let step, let index {+ remember(TakenDown(url: item.url, index: index, trashed: trashed as URL?), in: step)+ }return true} catch {log.error("Could not trash \(item.url.path, privacy: .public): \(error.localizedDescription, privacy: .public)")@@ -226,8 +235,13 @@ final class Line: ObservableObject {}/// The corner cross and "Take down" both end up here.- func discard(_ id: UUID, quietly: Bool = false) {- if isInInbox(id) { trash(id, quietly: quietly) } else { drop(id, quietly: quietly) }+ func discard(_ id: UUID, quietly: Bool = false, step: UUID = UUID()) {+ if isInInbox(id) {+ trash(id, quietly: quietly, step: step)+ } else if let item = items.first(where: { $0.id == id && !$0.falling }), let index = liveIndex(of: id) {+ drop(id, quietly: quietly)+ remember(TakenDown(url: item.url, index: index, trashed: nil), in: step)+ }}/// The oldest photo falling off a full line. Like the cross, a file from@@ -250,7 +264,7 @@ final class Line: ObservableObject {}private func letGo(_ id: UUID) {- if isInInbox(id), trash(id, quietly: true) { return }+ if isInInbox(id), trash(id, quietly: true, step: nil) { return }drop(id, quietly: true)}@@ -318,6 +332,86 @@ final class Line: ObservableObject {NSWorkspace.shared.activateFileViewerSelecting([item.url])}+ // MARK: Putting back++ /// A photo taken down by hand: its file, where it hung among the photos+ /// still on the line, and where the file went if it went to the Trash.+ private struct TakenDown {+ let url: URL+ let index: Int+ let trashed: URL?+ }++ /// What was taken down, the latest last. A step holds everything one+ /// action took down. Only kept while the app runs.+ private var steps: [(id: UUID, photos: [TakenDown])] = []+ private static let maxSteps = 20++ var canPutBack: Bool { !steps.isEmpty }++ private func remember(_ photo: TakenDown, in step: UUID) {+ if let i = steps.lastIndex(where: { $0.id == step }) {+ steps[i].photos.append(photo)+ } else {+ steps.append((step, [photo]))+ if steps.count > Self.maxSteps { steps.removeFirst() }+ }+ }++ /// Put back, or ⌘Z over the line: what was taken down last hangs again+ /// where it was, and a file sent to the Trash comes back out of it.+ func putBack() {+ guard let step = steps.popLast() else { return }+ var back: Set<UUID> = []+ // The last one taken down goes back first, so each finds its place.+ for photo in step.photos.reversed() {+ guard let url = restore(photo), !items.contains(where: { $0.url == url && !$0.falling }),+ let thumb = makeThumbnail(url) else { continue }+ let item = Pegged(url: url, thumb: thumb)+ let live = items.filter { !$0.falling }+ if photo.index < live.count, let i = items.firstIndex(where: { $0.id == live[photo.index].id }) {+ items.insert(item, at: i)+ } else {+ items.append(item)+ }+ back.insert(item.id)+ }+ guard !back.isEmpty else {+ NSSound.beep()+ return+ }+ // As when something new hangs, a full line lets its oldest photo go,+ // never one that just came back.+ while liveCount > maxItems, let oldest = items.first(where: { !$0.falling && !back.contains($0.id) }) {+ letGo(oldest.id)+ }+ save()+ play("Tink", volume: 0.35)+ }++ /// The photo's file, where it was before. Nil when it is gone: the Trash+ /// was emptied, or the file was moved or deleted since.+ private func restore(_ photo: TakenDown) -> URL? {+ guard let trashed = photo.trashed else {+ return FileManager.default.fileExists(atPath: photo.url.path) ? photo.url : nil+ }+ let url = uniqueURL(in: photo.url.deletingLastPathComponent(), for: photo.url.lastPathComponent)+ do {+ try FileManager.default.moveItem(at: trashed, to: url)+ clipboardFollows(trashed, to: url)+ log.notice("Put back \(url.lastPathComponent, privacy: .public)")+ return url+ } catch {+ log.error("Could not put back \(trashed.path, privacy: .public): \(error.localizedDescription, privacy: .public)")+ return nil+ }+ }++ /// Where a photo hangs, counting only the photos still on the line.+ private func liveIndex(of id: UUID) -> Int? {+ items.filter { !$0.falling }.firstIndex { $0.id == id }+ }+// MARK: Breeze/// Every so often a little wind moves the line. It is the detail thatdiff --git a/Sources/Tendedero/Resources/az.lproj/Localizable.strings b/Sources/Tendedero/Resources/az.lproj/Localizable.stringsindex 5386a2f..a25c81b 100644--- a/Sources/Tendedero/Resources/az.lproj/Localizable.strings+++ b/Sources/Tendedero/Resources/az.lproj/Localizable.strings@@ -10,6 +10,7 @@"Hide line" = "İpi gizlət";"Show line" = "İpi göstər";"Take everything down" = "Hamısını ipdən yığ";+"Put back" = "İpə geri as";"Handle screenshots" = "Ekran şəkillərini idarə et";"Screenshots hang instantly and skip the Desktop" = "Ekran şəkilləri dərhal asılır və İş masasına düşmür";"Open screenshots folder" = "Ekran şəkilləri qovluğunu aç";diff --git a/Sources/Tendedero/Resources/en.lproj/Localizable.strings b/Sources/Tendedero/Resources/en.lproj/Localizable.stringsindex 002cec8..5b4f655 100644--- a/Sources/Tendedero/Resources/en.lproj/Localizable.strings+++ b/Sources/Tendedero/Resources/en.lproj/Localizable.strings@@ -10,6 +10,7 @@"Hide line" = "Hide line";"Show line" = "Show line";"Take everything down" = "Take everything down";+"Put back" = "Put back";"Handle screenshots" = "Handle screenshots";"Screenshots hang instantly and skip the Desktop" = "Screenshots hang instantly and skip the Desktop";"Open screenshots folder" = "Open screenshots folder";diff --git a/Sources/Tendedero/Resources/es.lproj/Localizable.strings b/Sources/Tendedero/Resources/es.lproj/Localizable.stringsindex c9b149a..2123660 100644--- a/Sources/Tendedero/Resources/es.lproj/Localizable.strings+++ b/Sources/Tendedero/Resources/es.lproj/Localizable.strings@@ -8,6 +8,7 @@"Hide line" = "Ocultar tendedero";"Show line" = "Mostrar tendedero";"Take everything down" = "Descolgar todo";+"Put back" = "Volver a colgar";"Handle screenshots" = "Encargarse de las capturas";"Screenshots hang instantly and skip the Desktop" = "Las capturas se cuelgan al instante y no pasan por el Escritorio";"Open screenshots folder" = "Abrir carpeta de capturas";diff --git a/Sources/Tendedero/Resources/fr.lproj/Localizable.strings b/Sources/Tendedero/Resources/fr.lproj/Localizable.stringsindex b669abf..8d99847 100644--- a/Sources/Tendedero/Resources/fr.lproj/Localizable.strings+++ b/Sources/Tendedero/Resources/fr.lproj/Localizable.strings@@ -8,6 +8,7 @@"Hide line" = "Masquer la corde";"Show line" = "Afficher la corde";"Take everything down" = "Tout décrocher";+"Put back" = "Raccrocher";"Handle screenshots" = "Gérer les captures d’écran";"Screenshots hang instantly and skip the Desktop" = "Les captures s’accrochent aussitôt et évitent le bureau";"Open screenshots folder" = "Ouvrir le dossier des captures";diff --git a/Sources/Tendedero/Resources/gl.lproj/Localizable.strings b/Sources/Tendedero/Resources/gl.lproj/Localizable.stringsindex ea83610..71854a5 100644--- a/Sources/Tendedero/Resources/gl.lproj/Localizable.strings+++ b/Sources/Tendedero/Resources/gl.lproj/Localizable.strings@@ -8,6 +8,7 @@"Hide line" = "Ocultar a corda";"Show line" = "Amosar a corda";"Take everything down" = "Descolgar todo";+"Put back" = "Volver colgar";"Handle screenshots" = "Encargarse das capturas";"Screenshots hang instantly and skip the Desktop" = "As capturas pendúranse ao momento e non pasan polo Escritorio";"Open screenshots folder" = "Abrir o cartafol de capturas";diff --git a/Sources/Tendedero/Resources/hi.lproj/Localizable.strings b/Sources/Tendedero/Resources/hi.lproj/Localizable.stringsindex edcecb0..3e7f5aa 100644--- a/Sources/Tendedero/Resources/hi.lproj/Localizable.strings+++ b/Sources/Tendedero/Resources/hi.lproj/Localizable.strings@@ -10,6 +10,7 @@"Hide line" = "रस्सी छिपाएँ";"Show line" = "रस्सी दिखाएँ";"Take everything down" = "सब उतार दें";+"Put back" = "वापस टाँगें";"Handle screenshots" = "स्क्रीनशॉट संभालें";"Screenshots hang instantly and skip the Desktop" = "स्क्रीनशॉट तुरंत टँगते हैं और डेस्कटॉप पर नहीं जाते";"Open screenshots folder" = "स्क्रीनशॉट फ़ोल्डर खोलें";diff --git a/Sources/Tendedero/Resources/ja.lproj/Localizable.strings b/Sources/Tendedero/Resources/ja.lproj/Localizable.stringsindex 63ee27c..42ca2dc 100644--- a/Sources/Tendedero/Resources/ja.lproj/Localizable.strings+++ b/Sources/Tendedero/Resources/ja.lproj/Localizable.strings@@ -8,6 +8,7 @@"Hide line" = "ロープを非表示";"Show line" = "ロープを表示";"Take everything down" = "すべて外す";+"Put back" = "掛け直す";"Handle screenshots" = "スクリーンショットを任せる";"Screenshots hang instantly and skip the Desktop" = "撮った瞬間に吊るされ、デスクトップを経由しません";"Open screenshots folder" = "スクリーンショットのフォルダを開く";diff --git a/Sources/Tendedero/Resources/ko.lproj/Localizable.strings b/Sources/Tendedero/Resources/ko.lproj/Localizable.stringsindex 9399f70..fe2e6be 100644--- a/Sources/Tendedero/Resources/ko.lproj/Localizable.strings+++ b/Sources/Tendedero/Resources/ko.lproj/Localizable.strings@@ -8,6 +8,7 @@"Hide line" = "빨랫줄 가리기";"Show line" = "빨랫줄 보기";"Take everything down" = "모두 걷어내기";+"Put back" = "다시 걸기";"Handle screenshots" = "스크린샷 관리";"Screenshots hang instantly and skip the Desktop" = "스크린샷이 바로 걸리고 데스크탑을 거치지 않아요";"Open screenshots folder" = "스크린샷 폴더 열기";diff --git a/Sources/Tendedero/Resources/pt-BR.lproj/Localizable.strings b/Sources/Tendedero/Resources/pt-BR.lproj/Localizable.stringsindex df6b942..863ee08 100644--- a/Sources/Tendedero/Resources/pt-BR.lproj/Localizable.strings+++ b/Sources/Tendedero/Resources/pt-BR.lproj/Localizable.strings@@ -8,6 +8,7 @@"Hide line" = "Ocultar varal";"Show line" = "Mostrar varal";"Take everything down" = "Recolher tudo";+"Put back" = "Pendurar de volta";"Handle screenshots" = "Cuidar das capturas de tela";"Screenshots hang instantly and skip the Desktop" = "As capturas vão direto para o varal, sem passar pela Mesa";"Open screenshots folder" = "Abrir pasta de capturas";diff --git a/Sources/Tendedero/Resources/tr.lproj/Localizable.strings b/Sources/Tendedero/Resources/tr.lproj/Localizable.stringsindex 3b64d0c..4acd4bc 100644--- a/Sources/Tendedero/Resources/tr.lproj/Localizable.strings+++ b/Sources/Tendedero/Resources/tr.lproj/Localizable.strings@@ -8,6 +8,7 @@"Hide line" = "İpi gizle";"Show line" = "İpi göster";"Take everything down" = "Hepsini indir";+"Put back" = "Geri as";"Handle screenshots" = "Ekran görüntülerini yönet";"Screenshots hang instantly and skip the Desktop" = "Ekran görüntüleri anında asılır ve Masaüstünü atlar";"Open screenshots folder" = "Ekran görüntüleri klasörünü aç";diff --git a/Sources/Tendedero/Resources/zh-Hans.lproj/Localizable.strings b/Sources/Tendedero/Resources/zh-Hans.lproj/Localizable.stringsindex 4f36609..c9b55dc 100644--- a/Sources/Tendedero/Resources/zh-Hans.lproj/Localizable.strings+++ b/Sources/Tendedero/Resources/zh-Hans.lproj/Localizable.strings@@ -8,6 +8,7 @@"Hide line" = "隐藏晾衣绳";"Show line" = "显示晾衣绳";"Take everything down" = "全部取下";+"Put back" = "挂回去";"Handle screenshots" = "接管截图";"Screenshots hang instantly and skip the Desktop" = "截图即刻挂上,不再经过桌面";"Open screenshots folder" = "打开截图文件夹";diff --git a/docs/i18n/README.az.md b/docs/i18n/README.az.mdindex 0826cc5..5723c85 100644--- a/docs/i18n/README.az.md+++ b/docs/i18n/README.az.md@@ -56,6 +56,7 @@ Göstəricini menyu panelində saxlayın, ip aşağı enir. Uzaqlaşdırın, yox| Proqrama sürükləmək | Surətini göndərir. Şəkil ipdə qalır. || Qovluğa sürükləmək | Orada saxlanır və ipdən çıxır. || Zibil qutusuna sürükləmək və ya çarpaza klik | Ondan qurtulursunuz. |+| Göstərici ipin üstündəykən <kbd>⌘</kbd> <kbd>Z</kbd> | Atdığınızı ipə geri asır. || Göstəricini menyu panelində saxlamaq | İpi həmin ekranda endirir. || Menyu panelində istənilən yerə klik | İpi yığır. || <kbd>⌃</kbd> <kbd>⌥</kbd> <kbd>T</kbd> | İpi göstərir və ya gizlədir. Menyu panelində Qısayol bölməsindən dəyişdirmək olar. |diff --git a/docs/i18n/README.es.md b/docs/i18n/README.es.mdindex b7051d0..c596614 100644--- a/docs/i18n/README.es.md+++ b/docs/i18n/README.es.md@@ -56,6 +56,7 @@ Lleva el puntero a la barra de menús y la cuerda baja. Apártalo y desaparece.| Arrastrar a una app | Envía una copia, y la captura sigue colgada. || Arrastrar a una carpeta | Se queda ahí y sale de la cuerda. || Arrastrar a la Papelera o hacer clic en la cruz | Te deshaces de ella. |+| <kbd>⌘</kbd> <kbd>Z</kbd> con el puntero en la cuerda | Vuelve a colgar lo que acabas de soltar. || Dejar el puntero en la barra de menús | Baja la cuerda en esa pantalla. || Hacer clic en cualquier sitio de la barra de menús | Recoge la cuerda. || <kbd>⌃</kbd> <kbd>⌥</kbd> <kbd>T</kbd> | Muestra u oculta la cuerda. Se cambia en Atajo, en la barra de menús. |diff --git a/docs/i18n/README.fr.md b/docs/i18n/README.fr.mdindex e8ed3f5..9ae0917 100644--- a/docs/i18n/README.fr.md+++ b/docs/i18n/README.fr.md@@ -56,6 +56,7 @@ Posez le pointeur dans la barre des menus et la corde descend. Éloignez-le et e| Glisser dans une app | Envoie une copie. Elle reste sur la corde. || Glisser dans un dossier | Elle y reste. Elle quitte la corde. || Glisser dans la corbeille, ou cliquer sur la croix | Laissez-la filer. |+| <kbd>⌘</kbd> <kbd>Z</kbd>, le pointeur sur la corde | Raccroche ce que vous venez de laisser filer. || Poser le pointeur dans la barre des menus | Fait descendre la corde sur cet écran. || Cliquer n’importe où dans la barre des menus | La range. || <kbd>⌃</kbd> <kbd>⌥</kbd> <kbd>T</kbd> | Affiche ou masque la corde. Modifiable dans Raccourci, dans la barre des menus. |diff --git a/docs/i18n/README.gl.md b/docs/i18n/README.gl.mdindex 73db760..d587710 100644--- a/docs/i18n/README.gl.md+++ b/docs/i18n/README.gl.md@@ -56,6 +56,7 @@ Leva o punteiro á barra de menús e a corda baixa. Apártao e desaparece.| Arrastrar a unha app | Envía unha copia, e a captura segue pendurada. || Arrastrar a un cartafol | Queda alí e sae da corda. || Arrastrar á Papeleira ou facer clic na cruz | Desfaste dela. |+| <kbd>⌘</kbd> <kbd>Z</kbd> co punteiro na corda | Volve colgar o que acabas de soltar. || Deixar o punteiro na barra de menús | Baixa a corda nesa pantalla. || Facer clic en calquera sitio da barra de menús | Recolle a corda. || <kbd>⌃</kbd> <kbd>⌥</kbd> <kbd>T</kbd> | Amosa ou oculta a corda. Cámbiase en Atallo, na barra de menús. |diff --git a/docs/i18n/README.hi.md b/docs/i18n/README.hi.mdindex 8984982..26f945b 100644--- a/docs/i18n/README.hi.md+++ b/docs/i18n/README.hi.md@@ -56,6 +56,7 @@| किसी ऐप में खींचें | एक कॉपी भेजें। वह रस्सी पर बनी रहती है। || किसी फ़ोल्डर में खींचें | उसे वहीं रखें। वह रस्सी से उतर जाती है। || ट्रैश में खींचें, या क्रॉस पर क्लिक करें | जाने दें। |+| पॉइंटर रस्सी पर रखकर <kbd>⌘</kbd> <kbd>Z</kbd> | जिसे अभी जाने दिया, उसे वापस टाँगें। || पॉइंटर को मेनू बार में रोकें | उस स्क्रीन पर रस्सी नीचे लाएँ। || मेनू बार में कहीं भी क्लिक करें | रस्सी ऊपर कर दें। || <kbd>⌃</kbd> <kbd>⌥</kbd> <kbd>T</kbd> | रस्सी दिखाएँ या छिपाएँ। मेनू बार में शॉर्टकट से इसे बदलें। |diff --git a/docs/i18n/README.ja.md b/docs/i18n/README.ja.mdindex 5e3fc3e..1bfccc2 100644--- a/docs/i18n/README.ja.md+++ b/docs/i18n/README.ja.md@@ -56,6 +56,7 @@| アプリにドラッグ | コピーを送る。ロープには残ります。 || フォルダにドラッグ | そこに保存。ロープからは外れます。 || ゴミ箱にドラッグ、または×をクリック | 手放す。 |+| ポインタをロープに置いて <kbd>⌘</kbd> <kbd>Z</kbd> | 手放したばかりのものを掛け直す。 || メニューバーにポインタを置く | その画面にロープを降ろす。 || メニューバーのどこかをクリック | ロープをしまう。 || <kbd>⌃</kbd> <kbd>⌥</kbd> <kbd>T</kbd> | ロープを表示または非表示。メニューバーの「ショートカット」で変更できます。 |diff --git a/docs/i18n/README.ko.md b/docs/i18n/README.ko.mdindex 17b7896..87f0e4e 100644--- a/docs/i18n/README.ko.md+++ b/docs/i18n/README.ko.md@@ -56,6 +56,7 @@| 앱으로 드래그 | 사본을 보내요. 빨랫줄에는 그대로 남아요. || 폴더로 드래그 | 폴더에 보관해요. 빨랫줄에서는 사라져요. || 휴지통으로 드래그하거나 X 버튼 클릭 | 미련 없이 버려요. |+| 포인터를 빨랫줄에 두고 <kbd>⌘</kbd> <kbd>Z</kbd> | 방금 버린 걸 다시 걸어요. || 포인터를 메뉴 막대에 올려 두기 | 그 화면에 빨랫줄을 내려요. || 메뉴 막대의 아무 곳이나 클릭 | 빨랫줄을 치워요. || <kbd>⌃</kbd> <kbd>⌥</kbd> <kbd>T</kbd> | 빨랫줄을 보거나 가려요. 메뉴 막대의 단축키에서 바꿀 수 있어요. |diff --git a/docs/i18n/README.pt-BR.md b/docs/i18n/README.pt-BR.mdindex 179036f..47a4957 100644--- a/docs/i18n/README.pt-BR.md+++ b/docs/i18n/README.pt-BR.md@@ -56,6 +56,7 @@ Pare o ponteiro na barra de menus e o varal desce. Afaste-o e ele some.| Arrastar para um app | Envia uma cópia. Ela continua no varal. || Arrastar para uma pasta | Guarda a imagem ali. Ela sai do varal. || Arrastar para o Lixo, ou clicar no X | Desapegue. |+| <kbd>⌘</kbd> <kbd>Z</kbd> com o ponteiro no varal | Pendura de volta o que você acabou de soltar. || Parar o ponteiro na barra de menus | Baixa o varal naquela tela. || Clicar em qualquer lugar da barra de menus | Recolhe o varal. || <kbd>⌃</kbd> <kbd>⌥</kbd> <kbd>T</kbd> | Mostra ou oculta o varal. Altere em Atalho, na barra de menus. |diff --git a/docs/i18n/README.tr.md b/docs/i18n/README.tr.mdindex 2fe905e..43dd0ca 100644--- a/docs/i18n/README.tr.md+++ b/docs/i18n/README.tr.md@@ -56,6 +56,7 @@ Aldığınız her ekran görüntüsü, ekranınızın hemen üstündeki bir ipe| Uygulamaya sürükle | Bir kopya gönderir. İpte kalmaya devam eder. || Klasöre sürükle | Orada saklar. İpten ayrılır. || Çöp Kutusu'na sürükle ya da çarpıya tıkla | Siler. |+| İşaretçi ipin üzerindeyken <kbd>⌘</kbd> <kbd>Z</kbd> | Az önce bıraktığını geri asar. || İşaretçiyi menü çubuğunda bırak | O ekranda ipi aşağı indirir. || Menü çubuğunda herhangi bir yere tıkla | İpi geri kaldırır. || <kbd>⌃</kbd> <kbd>⌥</kbd> <kbd>T</kbd> | İpi gösterir ya da gizler. Menü çubuğundaki Kısayol bölümünden değiştirilebilir. |diff --git a/docs/i18n/README.zh-Hans.md b/docs/i18n/README.zh-Hans.mdindex 87c1af8..5b38a84 100644--- a/docs/i18n/README.zh-Hans.md+++ b/docs/i18n/README.zh-Hans.md@@ -56,6 +56,7 @@| 拖进 App | 送一份副本过去。原图仍挂在绳上。 || 拖进文件夹 | 存在那儿。原图从绳上取下。 || 拖到废纸篓,或点叉 | 松手丢弃。 |+| 指针在绳子上时按 <kbd>⌘</kbd> <kbd>Z</kbd> | 把刚丢掉的挂回去。 || 指针停在菜单栏 | 在那一块屏幕上放下绳子。 || 点击菜单栏任意处 | 把绳子收起来。 || <kbd>⌃</kbd> <kbd>⌥</kbd> <kbd>T</kbd> | 显示或隐藏绳子。可在菜单栏的「快捷键」中更改。 |