Textmate: cannot find page up for macbook keyboard - textmate

Using a macbook keyboard (which means I do not have the 'page up' button) I cannot figure out what the pageUp keybinding is or how to bind ctrl+u to the pageUp action.
My first attempt was to add this to my KeyBindings.dict file:
{
"^u" = "pageUp:";
}
That didn't work, so I tried to define pageUp: in "settings -> keyboard -> keyboard shortcuts -> application shortcuts" and then created one for textmate using 'pageUp' and 'pageUp:' as the 'Menu Title' option (there is no menu option for textmate that I can see so I was kind of guessing here).
Basically, what is the opposite of ctrl+v? Or if it does not exist for this keyboard, how can I bind ctrl+u to page up?

You may have changed something with that keybindings file. fn-up arrow should page up and fn-down arrow should page down. The cursor doesn't move with these however, just the screen. I just accidentally found that Ctrl-Up and Ctrl-Down work the same way in TextMate. Playing around a bit, I also found that fn-Opt-Up and fn-Opt-Down will page up and page down while also moving the cursor.

I don't see right away the binding for it, but I do know that on MacBook's, fn + up / down arrow keys gives you page up / page down functionality.

Related

Is there a way to jump to the target/scheme selection menu in Xcode?

I know the keyboard shortcuts for most things I often do in Xcode, but there is one thing I still haven't figured out:
How do I switch the active target/scheme without using my mouse?
I can switch from the previous and next scheme by using CTRL+COMMAND+[, but I would really like to expand the menu and type the scheme I want, similarly to how I can expand the methods navigator with CTRL+6.
Ctrl+0 will show a list of schemes. Then all you need to do is type a name of a scheme and hit enter.

Mouseless Navigation in Safari with Cmd+F on Mac

how to choose highlighted search results from the (cmd+F) word search? I know that I can change from one to the next one with "Tab" button. Pressing the "Enter" button on the highlighted word (in order to open that new link as I did on my Windows, but it does not work on my Mac). I always have to use my mouse in order to open/click on it. Is there another way to choose? I want to navigate faster through Safari.
Thanks
If you'd like to navigate faster through Safari, you can use a plugin/extension called 'Gleebox'. It's very useful for selecting links simply by pressing a shortcut (which you can set to whatever you like) and then typing the word. It will highlight it in green and you can press enter to select it. You can also press tab to move from item to item. It can also help you select just headers, image links, etc.
Gleebox for Safari is experimental however. Using Chrome, it can be downloaded here: https://glee.github.io/

Keyboard navigation of Mac OS X Finder window's search options toolbar

When I'm in a Finder window and enter terms in the spotlight search box (top right of window) and then press the TAB key the search location bar appears just below and the focus moves to the first location (usually "This Mac") shown (as it should). But then the focus seems locked in place and no keyboard key or combination I've found will get it to move (most of the time, that is; at times it's possible to select one of the shown locations with the keyboard and sometimes I've found it possible to tab to the Save button or Add Option [+] button and on to the options themselves but most times it just gets stuck [like now!] and I need to use the mouse). I've been annoyed by this for years now and am running out of new key combinations to try! Is there a way to continue with specifying the search info using the keyboard?

Moving caret back/forward to previous/next editing position within a document in Xcode 4?

In Xcode 3, I could go back to previous editing point within a document by pressing Command+Control+[Left|Right]. (I'm confusing it was Control or Option... However) In Xcode 4, the key combination is assigned to other feature. Code folding..? What did this key change into?
The shortcut in XCode 4 for "Go forward/backward" is "Control" + "Command" + "Arrow"
This is super annoying for me. When I tried to change the shortcut in the Shortcut Editor back to the Xcode 3 way, Xcode crashes. Fun.
Another option for switching to Previous/Next editing position (Go Back/Go Forward) is using two finger swipe (left for Go Back, right for Go Forward). I realize that this is not a keyboard shortcut but if you are using a Trackpad, it is much faster than trying to click on the buttons.
Note: The pointer does need to be in the editor for swiping to work.
Not 100% sure what you mean by "previous editing point", but Command+Option+Left|Right is code folding. I use Option+Left|Right and Control+Left|Right to move back and forth within the code to get to particular points.
A list of Xcode keyboard shortcuts can be found here

Textmate tab and de-tab selected block

Recently switched to Textmate on Mac for coding. On PC when ever I want to tab in or out a block of code I just highlight and press tab or shift+tab to move it in our out. It's very useful when you are adding an extra loop or conditional statement to a block of code to keep everything tidy and neatly indented.
On Textmate however when I try this it just replaces my selected text with a tab. So is there a way to do tab and de-tab lines of code in textmate?
Indent: Alt+Tab
Un-Indent: Shift+Alt+Tab
the hotkey is command-left bracket to move left and command-right bracket to move right
(the buttons next to 'p')
heres a link to more hotkeys and such
http://projects.serenity.de/textmate/tutorials/basics/
You can use Shift+Tab to decrease indent; You just need to make and assign a macro. You can reuse this technique to accomplish a great many things.
Enter some text, and intend them, this is mostly for feedback.
Click the Record Macro Button
Use ⇧+⌥+⇥ (aka; Shift + Option + Tab) to decrease the indentation.
Click the record button to stop recording the macro.
Use the Edit menu or ⌃+⌘+M to save your macro;
Saving will prompt you to create a new bundle*, or add your macro to an existing bundle.
Add a Key Equivalent by clicking in the field and pressing ⇧+⇥
Your bundle-macro should look like the one below, simply Save and you're done! TextMate will now decrease indent on ⇧+⇥
*: (as noted by u/PatrickT) Sadly the create new bundle functionality has not yet been implemented, and you must choose to add to an existing bundle. You can still create a bundle via Bundles -> Edit Bundles then Command + N.
As an alternative, you can change the keybindings, see Link
Here is what I did:
Install Link
Go to File -> Open -> User Key Bindings, this will create/edit ~/Libary/KeyBindings/DefaultKeyBinding.dict
Add a binding, for the action enter shiftRight: (indent) manually (this is a TextMate specific action and not in the pre-populated actions list)
Choose a shortcut, I used cmd+alt+right
Do the same for the action shiftLeft: (un-indent, I used cmd+alt+left)
Save and then restart TextMate
I used a shortcut with arrow keys as my right hand is already on the arrow keys when I am selecting multiple lines, so this is a good fit.
The reason why I did it was because I have a german keyboard and alt+tab/alt+shift+tab don't work for me since I am using Witch for app-switching using these exact shortcuts.
EDIT: cmd+alt+left/right don't work when you have multiple tabs open, as they are used for navigate to next or previous tab in TextMate... seems this cannot be changed or overridden (I tried Setting Shortcut Keys in Textmate). Looking for an alternative shortcut now.

Resources