Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Situation

I got tired of some bugs/annoyments in Ubuntu(=some programs coming along with it). For example after using compiz for a few days I found bugs that were distracting my work flow pretty bad (e.g. https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/933776).

What I also hate is what I call "monitor lottery", it starts when you plug in an external video-output to your machine. Sometimes you win, and most times you don't.

I needed fresh air and Windows was not an option. I just don't like .bat, cmd.exe, C:\, and those windowsy things.

So I bought 13" Macbook Air. Someday I probably will test how to code an app for my iPad, so being in Apple-camp helps.

I'm trying to use the Macbook as my main working/coding laptop, because it is light and has better resolution than my current laptop(Thinkpad X220).

Problem

Maybe I'm not used to OS X's philosophy or something. I don't understand the window manager's behavior. I don't fully understand the behavior of the bottom dock.

I'm quite lost.

Questions

Workspace = single virtual desktop

Window management

When pressing Cmd-Tab and the app switcher pops up:

  • I have 5 terminal windows open, and would want to bring one of them in front. Is it possible that Cmd-Tab would be window-switcher instead of app-switcher. I know I can switch to app's next window with a shortcut, but I would want to have all the windows in the switcher, regardless of what the app is.

  • When switching to a minimized app, workspace will be switched where the window should be, but the window stays minimized. Why? I would want it to be shown(unminimized?).

  • In my Ubuntu machine, I move window's position by pressing Alt, holding left mouse and dragging it from anywhere on the window. Also resizing works by holding right mouse button instead of left. Any solution to emulate this behavior?

  • I usually use windows in maximized mode. For example when I'm editing text, I do not want to see any distractions(like a browser window). To my mind, maximized means that a window takes all available space on the screen but does not cover the system's toolbars etc. But when I press the green (+) button, the window is streched vertically and the width stays the same. The weirdest thing is, that some of the windows strech only vertically, but some of them strech both vertically and horizontally. I want the maximize button to take all the available space. Is it possible?

Shortcuts

  • In my web browser, I have always closed tabs with middle click. Also if I want to open a link to a new tab, I press middle click. How can I do that? I often browse news etc with one hand on the touchpad, so pressing Cmd while clicking isn't that good. Touching or tapping(not pressing the whole thing down with force to hear a click sound) touchpad with three fingers would be the best shortcut.

  • I want the following global shortcuts. The apps should open in the current workspace.

    • Ctrl - < : New terminal window opens
    • Ctrl - Alt - b : New terminal window opens and it executes a command: 'ssh bla bla bla'
    • Alt - m : Maximize/Restores the earlier size of currently focused window.
    • Ctrl - Alt - c : Browser opens
    • Ctrl - Alt - s : Text editor opens

    Is there any program that would allow this?

Apps/Other stuff

  • Terminal

    • Pressing Alt-2 normally produces '@'. But in terminal, it does not produce that character but instead it starts a mode which says '(arg: 2)' on the left.
    • Not directly related to terminal, but is it possible to setup SSH so that the connection would not drop when lid is closed or internet disconnects? Any experiences of MOSH http://mosh.mit.edu/?
  • With my Ubuntu laptop, I edited files in a remote SSH server via STFP. Are there any good SFTP clients which could just mount the remote folder, like in Ubuntu it does.

share|improve this question
6  
The best way to ask questions is to ask one thing at a time - this should be several questions - for example that would allow me to comment on the cmd-tab issue - or at least point you to duplicates other relevant info –  Mark Oct 18 '12 at 20:13
    
Given the coverage of your question(s), I think you should look more for a book/blog/article on 'how to get started with OSX' or 'How to switch to the mac'. You can't expect people to write such a book/article here as an answer, hmm .. somebody just did ;-) –  Rabarberski Oct 19 '12 at 11:34
2  
This contains a lot of great questions, but it really works best when a single post contains a single question. You've picked up an amazing answer, so I don't want this to go away, but for anyone reading this in the future looking for how to ask questions, seriously multi-part questions like this one rarely draw answers a great as this one did. –  Daniel Lawson Oct 21 '12 at 19:30
    
I wrote a post about these problems - scouringmacbook.blogspot.fi/2012/10/setting-everything.html –  Kimmo Oct 22 '12 at 15:06
add comment

4 Answers 4

up vote 28 down vote accepted

Welcome to OS X. It can be a great aid to your workflow, and make you more productive. You should be able to adjust pretty quickly after the initial learning curve. Please be advised that there are some small things you'll have to change in your workflow, as OS X is after all a completely different OS. But over time, you'll grow to enjoy it. I'll address your specific concerns.


Dock Behaviour

The Dock has several sections. Assuming you kept your dock on the bottom, the left side contains pinned and currently running apps. This is actually similar to Unity. You can enable a "dot" under running applications by right-clicking an empty space in the Dock and clicking Dock Preferences from the context menu, and selecting Show indicator lights for open applications.

After the divider, which can be clicked and dragged to resize the dock, there are your stacks. Stacks are previews to commonly-accessed folders, and you can drag any folder into this spot. You can preview the contents of stacks in several ways, right-click it to view the stack's options.

To the right of the stacks are the minimised windows or documents. OS X typically dedicates windows to documents, so the terms (especially in the old days) were considered pretty interchangeable.

Dock


Window Management

This was one of the biggest pain points when I switched, and now I really enjoy it.


Viewing Application Windows

You can quickly switch between open windows of the same app by pressing Cmd+`.

As you Cmd + Tab, you notice that you're tabbing through apps and not their individual windows. Note that you can activate an app (i.e. un-minimise or un-hide windows by holding down alt (option in the US).

If you want to see what windows an application has, you can either:

  • Press the Down arrow while the Cmd + Tab selector box is over the app.
  • Right-click the app's dock icon and select "Show All Windows".
  • If you are in the app, swipe three or four fingers down on your trackpad (configured by click the Apple on the top left, opening System Preferences, opening Trackpad, navigating to the More Gestures tab, and selecting to activate App Exposé with three or four fingers.).
  • Swipe three or four fingers down on its dock icon.

Any of those options (there might be more) will take you to App Exposé, this will show all the open windows in the center of the screen, and any minimised or hidden windows as thumbnails.


Switching to a minimised window in a different workspaces

This behaviour is app-dependent. Using a Finder window, the behaviour is as you wish. i.e. the window un-minimises itself, and the workspace is switched. Make sure to click the minimised window and not the app icon.

You might want to make certain apps available on all your workspaces. To do this, right-click the app's dock icon, and select its behaviour under the Options > Assign To section. The app needs to support this feature.


Moving and Resizing

Windows can be moved using only the chrome (the grey area above the app's actual content). Most of the chrome is on the top of the window, but certain apps such as Finder have bottom chrome that can be used to move the window around.

OS X does not recognise right-click drags. It just doesn't. The only real way to resize windows is by dragging from any edge using the left mouse button.


Using BetterTouchTool

If you want, you can download the excellent BetterTouchTool. Under Preferences, Advanced, Action Settings, Window Moving & Resizing, you can choose to move the window under the mouse by simply holding down a key (e.g. the alt (opt) key.

You can use BTT to change certain behaviours to just the way you want them. It's extremely powerful. You can also assign custom gestures to do almost anything, in any app (or globally).

BetterTouchTool
BetterTouchTool's advanced settings.




Maximising and Zooming

OS X does not use the green "+" button zoom button to represent "maximise". That's the "zoom" button. The idea is that the app expands itself to occupy as much space as it needs. Unfortunately, the behaviour is extremely inconsistent, especially with third party apps.

More and more apps are beginning to support the FullScreen mode, which was a feature introduced in OS X 10.7 (Lion) fullscreen button. This button, if an app has it, will dedicate an entire space to the application. It will be accessible from Mission Control.

I'll give you two options, both involving third-party apps:

BetterTouchTool has an option to enable Windows-style snapping. So when you drag a window to the top of the screen, it will expand to fill the screen.

BTT options

Another option is to use RightZoom, which claims to change the functionality of the green zoom button to mimic a maximise button. It's free, but I haven't yet tried it.


Shortcuts

You can create a ton of shortcuts in OS X, even to specific menu-items from System Preferences. I'll address your specific concerns here.


Middle click to open and close tabs

I long ago solved this with BetterTouchTool. All you need to do is assign a shortcut like below, and it will be mapped to a three-finger click on your touchpad. You can choose anything else (e.g. three-finger tap if you prefer).

bettertouchtool

Middle click allow you to open a link in a new tab.

Safari does not support the closing of tabs using middle-click. You either need to click the little "x" that appears over the tab, or press Cmd+W.

Google Chrome supports middle click for both closing tabs.


Global Shortcuts

BetterTouchTool can make quick work of assigning some global shortcuts. I don't think you'll be able to replicate the Ctrl + Alt + B (opens a text box, then executes the command in a terminal).

Cmd + M will minimise a window, no need for BTT for this.


Etc

Apologies, but I can't answer your MOSH question


Alt-2 in Terminal

On my laptop, Alt + 2 produces the euro symbol, so it's keyboard-dependent. If you want the "@" symbol, it's normally found by pressing Shift + 2.


SFTP

I normally use CyberDuck for all my FTP needs. However, a quick web search turned up this: How to mount SFTP shares in Lion.

share|improve this answer
1  
+10 for such an answer, kudos –  Stu Wilson Oct 18 '12 at 20:23
    
Interesting stuff in there. I switched from Windows in early August and a lot of stuff still drives me nuts. –  MetalMikester Oct 19 '12 at 10:21
    
Amazing answer, thank you! BetterTouchTool alone solved almost half of my problems, it's a great tool. –  Kimmo Oct 22 '12 at 0:51
    
For the mounting, you can also use the Transmit application for your FTP needs which includes the option to mount a server as disk –  Philippe Gilbert Oct 23 '12 at 19:15
add comment

Ctrl - Alt - b : New terminal window opens and it executes a command: 'ssh bla bla bla'

You can assing a shortcut to a script like tell application "Terminal" to do script "ssh bla bla bla".

Pressing Alt-2 normally produces '@'. But in terminal, it does not produce that character but instead it starts a mode which says '(arg: 2)' on the left.

That's why using option as a meta key is disabled by default. iTerm has a preference for using only the other option as a meta key.

With my Ubuntu laptop, I edited files in a remote SSH server via STFP. Are there any good SFTP clients which could just mount the remote folder, like in Ubuntu it does.

I use Transmit Disk for that.

share|improve this answer
    
iTerm solved the issue and is much better then the default Terminal! –  Kimmo Oct 22 '12 at 0:58
add comment

As a nonspecific suggestion, someone coming from Linux will probably appreciate Alfred. You can execute any Terminal shell command by hitting the Alfred hotkey (usually Alt-Space) and beginning the command with >.

share|improve this answer
add comment

In addition to the great answer by @Redandwhite I suggest that you also look at another add on called 'Witch'. http://manytricks.com/witch/

It appears to change your command-tabbing to cycle between windows instead of just applications. I've never needed this myself, so can't vouch for it. But it may be just what you are after.

Additionally, you may like the application QuickSilver http://qsapp.com/ I use it to launch my applications rather than by clicking w/ the mouse. (it is similar to Alfred mentioned by @Andrew Lazarus above)


share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.