disable command-delete osx shortcut - macos

I can't seem to find a way to disable command-delete shortcut in OSX.
This shortcut deletes files without warning also from save-as and load finder pages (e.g. when you save a page on disk from chrome, you can still accidentally remove a folder!)
Any suggestion is appreciated
alfonso

It is possible, although not recommended.
Go to System Preferences > Keyboard > Shortcuts > App Shortcuts. Then click the + button. Choose 'Finder' as your application, Menu title has to be exactly "Move to Trash" and enter a new shortcut. Click add, and you're all set.
If you have any more questions, please shoot :)
screenshot: http://i.imgur.com/VygU7Om.png

Related

How to disable keyboard shortcut for Show all files

The Show All Files option in Visual Studio's Solution Explorer keeps toggling on for some reason. What shortcut key does it use and how do I disable it?
For some time now I would randomly find the Show All Files option enabled in solution explorer and I couldn't figure out what was causing it. Thanks to Keyboard shortcut for Show All Files I knew the keys but there was no keyboard shortcut bound to the SolutionExplorer.Folders.ShowAllFiles command. What's actually happening is that Alt+P opens the Project menu then pressing O will toggle show all files.
This was happening often to me because I use Visual Assist's Open File in Solution default shortcut Alt+Shift+O and would sometimes hit P on the way accidentally. To remove this shortcut and behavior you actually need to edit your menu items. Open the Customize menu (Tools->Customize) and remove both entries for Show All Files.

is it possibile to open iTerm in current Finder position

Sometimes it could be very useful to open new iTerm window. I've seen this feature in Gnome window manager. It is possible to get same feature on MaxOsX? Is there a software to do that?
Go to System Preferences -> Keyboard -> Shortcuts -> Services -> Files and Folders and give preferred shortcuts.
The shortcut will open iTerm at the selected folder, instead of from the folder that has been opened.
You can right-click on the folder where you want iTerm2 to open, then select Services -> New iTerm2 Tab here.
You can also find other options in the Services menu to open iTerm2 and Terminal.
This was tested on iTerm2 3.x and Catalina and above.
There are two apps called "Go2Shell" and "ShellHere". Both place a small icon at the top of the finder window. When the icon is clicked a terminal window opens in the same directory as the finder window.
Go2Shell
Go2Shell can be downloaded from Mac App Store or developer's website. It is possible that you won't be able to install it from Mac App Store, because Go2Shell wasn't updated for a long time.
Go2Shell allows users to specify whether to open shell in Terminal or iTerm2.
ShellHere
Shellhere can be downloaded from here.
ShellHere allows users to open a folder only in uses only MacOS Terminal.
Problem with current solutions: Doesn't work in current folder. Only if you right click a folder.
So do this:
In Finder, press ⌥ + ⌘ + P to show the path bar.
Then, right click your folder and choose the option. Voila!
Try https://github.com/wonderyue/Go2ShellAppleScript.
Something like Go2Shell. The latest update of Go2Shell is five years ago, due to the compatibility problem, I make a similar one with AppleScript.
If you want to open iTerm in current Finder position try the following:
OpenInTerminal
https://github.com/Ji4n1ng/OpenInTerminal
Alternative and a bit older
TermHere
https://hashbang.productions/apps/termhere/ (last updated on 2016)
Both work without issues in MacOS Catalina
cdto doesn't support opening the folder in iTerm, so its a no go
If you have BetterTouchTool, you can just create a Finder trigger with action "Open Active/Selected Folder With Specific App" and select "iTerm". Works for me!
BetterTouchTool screenshot
EDIT:
You can even add Hotkey Window hotkey before "Open Active/Selected Folder With Specific App" to open the terminal in the hotkey window (as a tab). Really neat.
In hotkey window
I've been using cdto forever before accidentally stumbling on to the accepted answer. Will definitely try out the accepted answer, but leaving a link to cdto here if someone finds in useful
https://github.com/jbtule/cdto

XCode Simulator: how to change its shortcuts?

When the simulator in XCode is running, the default shortcuts for rotation are Cmd+Left and Cmd+Right.
Is there any way to change them? For example, change them to Ctrl+Left & Ctrl+Right?
I was able to change Simulator shortcuts by doing the following:
Open Simulator
Right click the icon in the tray
Select Options > Show in Finder
Copy Simulator.app to your /Applications directory
At this point, you won't be able to run Simulator.app from the /Applications directory, but that's ok, we're just going to use it there for setting the shortcut(s). To do that, follow the steps you would to change any other app's shortcuts:
System Preferences > Keyboard > Shortcuts
App Shortcuts > add [+]
Select the Simulator.app from the list (wouldn't appear unless we had already completed the steps above.)
Exact name of Menu item and shortcut.
Add
Now go ahead and delete Simulator.app from /Applications. The shortcut will still be changeable and the app will be listed from now on.
I could use Jason's answer without having to duplicate Simulator.app into Applications and then delete it.
Not sure the needed Other... and Search options required some particular MacOS, so I'm copying the adapted steps here :
System Preferences > Keyboard > Shortcuts
App Shortcuts > add [+]
Open list of Applications, select Other... at the bottom
Use the search box to search for Simulator.app
Simulator.app should appear, double click it
Exact name of Menu item, and shortcut
Add

Jump to search result shortcut in XCode

After I've searched on something I want a keyboard shortcut to focus on the search results so I can step through them.
I've looked in XCode's key bindings with no luck.
ctrl+cmd+G
Keybinding is called "Find next in Workspace"
Use Show Find Navigator shortcut (by default it's Cmd+3)
Preferences page screenshot

2 basic Textmate shortcuts 'don't save' and 'replace all'

Ok, maybe they're system shortcuts. I've googled (just a bit) and couldn't find an answer. Maybe there isn't any :) Still..
I love keyboard and I use quite a few in TextMate but just realise I still use the mouse for 2 of the most common actions:
How do I press search and replace after the S/R dialog box is up? - if you press enter it just takes you to the next occurrence of the search string
when I close a file that I don't want to save, how can I choose don't save without touching the mouse?
To select Don't Save from the keyboard, you can use the keyboard shortcut ⌘+D. (This works in most OS X apps, not just TextMate.)
The search and replace (actually it's called "Replace & Find") shortcut is alt-cmd-f and works both inside the Find dialog and without it. With using other shortcuts like cmd-f, shift-cmd-f, cmd-G you can perform most of the search/replace actions without even opening the dialog. For example, if you want to perform the substitution, you press alt-cmd-f, then another is highlighted and if you want to skip it, it's cmd-G, which finds yet another, and so on.
As for the second question, I think it's a general Mac OS X issue -- the message boxes buttons don't have keyboard shortcuts in other apps, too. When I first switched from Windows, this annoyed me but I got used to it by now.
I recently built a web site to store lists of shortcut keys and there is a great list of TextMate Shortcut Keys for Mac on there.
If you know any more you can add them yourself too!
Here's the link http://shortcutkeys.org/software-shortcuts/mac/textmate
If you want to choose the answer for any dialog with the keyboard, go to "System Preferences" > "Keyboard" > "Keyboard Shortcuts". On the bottom of that page there are two radio buttons. Activate "All controls". Now you can switch options of a dialog box with the tab key in every proper OS X application. Note that this is a secondary option, thus you can hit the enter key for the default behaviour or space to trigger your secondary option. Most often it's set to the opposite of the default behaviour, i.e. "Don't save" in a file save dialog and "no" or "cancel" in many many other applications.
I think thats a great feature. Due to the secondary option I always hit either enter or space, depending which option I wanted.

Resources