Showing posts with label Mac. Show all posts
Showing posts with label Mac. Show all posts

7/07/2023

Magic Keyboard (Mac) make home/end button to move begin or end sentence like window.

 


The solution

The only solution is to change my keyboard so I don’t have to change me.

  1. Open Terminal in MacOS
  2. Type the following commands, one per line:
cd ~/Library
mkdir KeyBindings
cd KeyBindings
nano DefaultKeyBinding.dict
The top part is what your Terminal should look like

3. Next, copy and paste the below key mapping into the editor that shows:

{
/* Remap Home / End keys */
/* Home Button*/
"\UF729" = "moveToBeginningOfLine:";
/* End Button */
"\UF72B" = "moveToEndOfLine:";
/* Shift + Home Button */
"$\UF729" = "moveToBeginningOfLineAndModifySelection:";
/* Shift + End Button */
"$\UF72B" = "moveToEndOfLineAndModifySelection:";
/* Ctrl + Home Button */
"^\UF729" = "moveToBeginningOfDocument:";
/* Ctrl + End Button */
"^\UF72B" = "moveToEndOfDocument:";
/* Shift + Ctrl + Home Button */
"$^\UF729" = "moveToBeginningOfDocumentAndModifySelection:";
/* Shift + Ctrl + End Button*/
"$^\UF72B" = "moveToEndOfDocumentAndModifySelection:";
}
In the editor, paste the above key mappings

4. Then save the file by pressing Control ^ + o then Control ^ + x to exit.

5. Restart your Mac for the changes to take effect.

10/22/2018

Mac error : missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun (tip)

It seems to occur after osx updating.
In my case, I solved using below method.

xcode-select --install

^^.

5/04/2015

Java.lang.NullPointerException error, matlab install on the MAC

I met the this error message, after installing matlab on MAC.


But don't worry about that, this youtube video will solve.
Watch this.



Thank you.

2/05/2014

(Mac Tip) How to make new txt file in Finder

On the window, we made new file easily by right button click.
But on the mac, there is no function. So, very incompatible...

By the way, we can do make new file easily on Mac by using this app

The usage is as follows..
After install,
run App.

Select Gestures and Keyboard menu, 
And click +Add New Shortcut
And click keyboard shortcut and make shortcut key combination

After, click trigger predefined action, and select system actions->create new file in current folder.


Setting is done.
New, make new file in folder by the shortcut key.


Good luck~!!