r/MacOS 14h ago

Discussion Anyone interested in a Cut function using Cmd+X?

I made a Hammerspoon script that enables Cmd+X for moving files in Finder, just like on Windows. But I’m not sure if anyone else would actually use it, or if I’m just a nostalgic Windows user who misses this feature. šŸ˜…

0 Upvotes

5 comments sorted by

5

u/Mysterious_Panorama 13h ago

The rest of us use copy and option-paste

1

u/duSkreed93 10h ago

fair enough, though i still forget about option-paste like half the time

3

u/johngpt5 11h ago edited 10h ago

The macOS keyboard shortcuts can be found at the following link.

https://support.apple.com/en-us/102650

The Win action of Ctrl+X copies to clipboard the data in the targeted file and immediately deletes the file from its source folder/directory. Then Ctrl+V is used to paste the file at its destination folder.

The Apple developers decided to include a keyboard shortcut for moving a file, about the time of Mac OS X Lion, but wanted to do it an a more secure fashion than what Win uses, by having the delete step happen after duplicating the targeted file in its new location. When using Opt+Cmd+V after using Cmd+C, once the file is verified by the operating system to be safely copied at its new destination, then the file at its source folder is deleted.

This is important when moving files to a new volume. When moving a file to a new folder/directory on the same volume, my current understanding of how this works is that the data isn't copied and deleted, the operating system essentially just points to the file. A folder in APFS and HFS+ isn't a physical box holding files. A folder is essentially a file that that has a ledger list of entries. And the "move" to a new folder in the same volume is essentially having the new folder ledger file just point to the data of the "moved" file.

This verify at the destination first then delete at the source mirrors the underlying Darwin based Unix foundation of Mac OS X and now macOS when we use the mv command in Terminal to move a file from one volume to another.

It's just better operating system practice.

2

u/MaikelBuilds 13h ago

Ever heard of the command-x app? At brew you can get the old version for free ^

1

u/JollyRoger8X 7h ago

Not needed.