Skip to content

A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.

The menu's Copy path row has a side button that copies in quotation marks

gelenmedyac4a0a0ca0242
diff --git a/crates/rf-app/src/ctx_menu.rs b/crates/rf-app/src/ctx_menu.rs
index bd6c6b0c..62d9a6f0 100644
--- a/crates/rf-app/src/ctx_menu.rs
+++ b/crates/rf-app/src/ctx_menu.rs
@@ -445,7 +445,13 @@ impl FolderView {
}
v.push(Item::Separator);
if mp.copy_path {
- v.push(Item::action(t!("Öğe yolunu kopyala"), icon(L::ClipboardCopy), act(me, |v, _, cx| v.copy_path(cx))).hint(crate::keymap_editor::menu_keys("Ctrl+Shift+C", cx)));
+ // the same in quotation marks, as File Explorer's "Copy as path" gives it, beside the row (discussion 1033: pasting into a
+ // terminal a path with a space in it; Ctrl+Alt+C did it already, but nothing in the menu said so)
+ v.push(
+ Item::action(t!("Öğe yolunu kopyala"), icon(L::ClipboardCopy), act(me, |v, _, cx| v.copy_path(cx)))
+ .hint(crate::keymap_editor::menu_keys("Ctrl+Shift+C", cx))
+ .side(L::Quote, t!("Tırnak içinde kopyala (Ctrl+Alt+C)"), false, act(me, |v, _, cx| v.copy_path_with(true, cx))),
+ );
}
// The commands seldom needed come with Shift held (Shift+right click, Shift+F10), as Explorer's extended commands do, or always
// with Settings › General › "Always show every command" (the full menus are long).
diff --git a/crates/rf-app/src/i18n_en.rs b/crates/rf-app/src/i18n_en.rs
index b2ce31dc..24b73752 100644
--- a/crates/rf-app/src/i18n_en.rs
+++ b/crates/rf-app/src/i18n_en.rs
@@ -86,6 +86,7 @@ pub const EN: &[(&str, &str)] = &[
("Yeniden adlandır", "Rename"),
("Geri al", "Undo"),
("Yolu kopyala", "Copy path"),
+ ("Tırnak içinde kopyala (Ctrl+Alt+C)", "Copy in quotation marks (Ctrl+Alt+C)"),
("Birlikte aç…", "Open with…"),
("Özellikler", "Properties"),
("Sağ tık menüsü", "Context menu"),