Amazing: Hiding vs Minimizing vs Closing

Amazing: Hiding vs Minimizing vs Closing

Dok ceo svet ide dalje, Apple se i dalje bavi najosnovnijim stvarima. Del, Backspace, Close vs Hide vs Minimize, itd. Davno rešene stvari čak i na Linux sistemima, ali ne i na MacOS.

Red dot does “Close” ali to nije “Quit” application, već je “Close” window. Ali ipak jeste Quit app kada aplikacija podržava samo jedan prozor. Yellow radi “minimize” koji se očekivano ponaša, ali opet - samo za prozor a ne i za aplikaciju. U pitanju je potpuni debilizam.

Postoji i operacija “Hide” za koju nema buttona, koja will remove the application from view while still being visible the dock. Minimizing will minimize a single window to the dock, not the entire application.

Dakle, normalne operacije bi bile: Quit App, Minimize App, a kod Apple su Close Window i Minimize Window. Pošto je to nelogično za 90% korisnika, onda su uveli pojam “Hide” koja je ustvari taj “Minimize App”, dok za Quit App nema za sada imena.

macos - Mac OS: “Minimize” vs “Hide” - what’s the difference? - Super UserCan you put the

Home and End buttons

Jebem li vam mater, debili jedni!

Source: Make Home & End keys behave like Windows on Mac OS X » DamienG

Home and End - will go to start and end of line
Shift+Home and Shift+End - will select to start and end of line
Ctrl+Home and Ctrl+End - will go to start and end of document
Shift+Ctrl+Home and Shift+Ctrl+End will select to start and end of document

Kod svih Cocoa aplikacija, moraš nekako da proradi normalan Home-End, a to se radi na sledeći način. Inače, takve su aplikacije Sublime Text,

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
mkdir -p ~/Library/KeyBindings
echo '{
  // Remap Home-End keys
  "\UF729"   = moveToBeginningOfParagraph:;                   // home
  "\UF72B"   = moveToEndOfParagraph:;                         // end
  "$\UF729"  = moveToBeginningOfParagraphAndModifySelection:; // shift-home
  "$\UF72B"  = moveToEndOfParagraphAndModifySelection:;       // shift-end
  "^\UF729"  = moveToBeginningOfDocument:;                    // ctrl-home
  "^\UF72B"  = moveToEndOfDocument:;                          // ctrl-end 
  "^$\UF729" = moveToBeginningOfDocumentAndModifySelection:;  // ctrl-shift-home
  "^$\UF72B" = moveToEndOfDocumentAndModifySelection:;        // ctrl-shift-end

  // Words selection like in Windows
  "^\UF702"  = (moveWordLeft:);                    // ctrl-left
  "^$\UF702" = (moveWordLeftAndModifySelection:);  // ctrl-shift-left
  "^\UF703"  = (moveWordRight:);                   // ctrl-right
  "^$\UF703" = (moveWordRightAndModifySelection:); // ctrl-shift-right
}' > ~/Library/KeyBindings/DefaultKeyBinding.dict

For Words selection like in Windows can be used next rules.apple

Note however, that not all apps honor default key bindings in Mac OS (XCode, Firefox, etc.)

You need to reboot after creating this file

Another issue is when you are like me, doing lots of Windoz in a VM (Oracle Virtualbox) and remote desktop (Microsoft Remote Desktop for MacOS). There you need to pass different keys so everything works. Same with terminal apps.

Same thing for Visual Studio Code:

  {
    "key": "ctrl+home",
    "command": "cursorTop",
    "when": "textInputFocus"
  },
  {
    "key": "cmd+home",
    "command": "cursorTop",
    "when": "textInputFocus"
  },
  {
    "key": "cmd+end",
    "command": "cursorBottom",
    "when": "textInputFocus"
  },
  {
    "key": "ctrl+end",
    "command": "cursorBottom",
    "when": "textInputFocus"
  },
  {
    "key": "ctrl+shift+home",
    "command": "cursorTopSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+home",
    "command": "cursorTopSelect",
    "when": "textInputFocus"
  },
  {
    "key": "ctrl+shift+end",
    "command": "cursorBottomSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+end",
    "command": "cursorBottomSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+left",
    "command": "-cursorHomeSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+left",
    "command": "cursorWordLeftSelect",
    "when": "textInputFocus"
  },
  {
    "key": "ctrl+shift+left",
    "command": "-editor.action.smartSelect.shrink",
    "when": "editorTextFocus"
  },
  {
    "key": "ctrl+shift+left",
    "command": "cursorWordLeftSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+right",
    "command": "-cursorEndSelect",
    "when": "textInputFocus"
  },
  {
    "key": "shift+cmd+right",
    "command": "cursorWordRightSelect",
    "when": "textInputFocus"
  },
  {
    "key": "ctrl+shift+right",
    "command": "-editor.action.smartSelect.expand",
    "when": "editorTextFocus"
  },
  {
    "key": "ctrl+shift+right",
    "command": "cursorWordRightSelect",
    "when": "textInputFocus"
  }
date 21. Jun 2023 | modified 15. Jun 2024
filename: macOS » How Stupid We Are