B?n dang xem chuyên m?c: Terminal
Showing posts with label Terminal. Show all posts

Saturday, September 27, 2014

10.9: Terminal text shortcuts still work in Safari

10.9: Terminal text shortcuts still work in Safari

10.9: Terminal text shortcuts still work in Safari Apps
Jun 27, '14 07:00:00AM • Contributed by: descoff I should have stumbled on this one years ago but I have just realised typing in Safari's address bar and unconsciously doing Ctrl+a to go to the start of my query, that it works.

We recall these life saving Unix text editing shortcuts: 'Ctrl+a' : go to start of the line
'Ctrl+e' : go to the eol
'Ctrl+k' : delete all chars to the right of the cursorI have tested those with success in various standard Dialog Boxes, TextEdit windows andin Safari's address bar; it seems to be a relatively system wide standard. Of course no luck with MS apps, they use their non-standard Alt+arrows (when most other Mac apps use the widely known Ctrl+arrows).

First my sincerest apologies to all those who knew and if there ever was a similar hint since 2003 in the DB. [crarko adds: At the time this hint was originally submitted the site's search function was not working.]

Ever watchful of posting etiquette, I did Google to make sure I was on to something greater than being ridiculed. Alas, after some efforts, I did find a full reference elsewhere. Still I post this stale and quasi 'hint', feigning to take comfort I may help some (one or two ?) and trying to find pitiful schadenfreude at the same time.

[crarko adds: Cute. There are plenty of older versions of this notion, this being a handy one. Now that the site's search feature is back up I'm sure there are others. Nevertheless, there are enough Mac users around who are new since 2001 that a little refresher isn't all bad.]

    •    
  You rated: 2 / 5 (21 votes cast)  
No new hints No new comments No recent new links

Read more »
Advertise
Customize Your Terminal Greeting

Customize Your Terminal Greeting

Customize Your Terminal Greeting

window.google_analytics_uacct = 'UA-142218-1';var google_adnum = 0; /* only insert this line for your first ad unit */function google_ad_request_done(google_ads) {var domain = '';var domainParts = document.referrer.split("/");if (domainParts.length > 2) {domainParts = domainParts[2].split(".");domain = domainParts[domainParts.length - 2];}var companions = document.querySelectorAll('.js_ad300-companion');var blockHeight = 0;if (companions.length > 0) {var companion = companions[0];blockHeight = companion.offsetHeight;}var onKinja = location.host.substr(-1 * "kinja.com".length) === "kinja.com";var fromSearch = (domain == "google") || (domain == "bing") || (domain == "yahoo") || (domain == "ask");var cookieString = "fromSearch=1";if (fromSearch) {document.cookie = cookieString;}var inSearchSession = document.cookie.indexOf(cookieString) != -1;var shouldShowAds = !onKinja && (fromSearch || inSearchSession);// && blockHeight > 400);if (shouldShowAds) {var s = '';var i;if (google_ads.length == 0) {return;}s += '

Wednesday, September 24, 2014

no image

Use Quick Look from Terminal

Mac OS X Leopard only: You wouldn't think that Leopard's new Quick Look feature would work anywhere but from Finder, but you'd be wrong. From the command line in Terminal, you can invoke Quick Look to preview the contents of a file. Tips web site Mac OS X Hints details how: the command is qlmanage -p somefile where somefile is your document. As Mac OS X Hints recommends, setting up an alias (qlf, perhaps?) is a good way to save your typing fingers when reusing this technique.

window.google_analytics_uacct = 'UA-142218-1';var google_adnum = 0; /* only insert this line for your first ad unit */function google_ad_request_done(google_ads) {var domain = '';var domainParts = document.referrer.split("/");if (domainParts.length > 2) {domainParts = domainParts[2].split(".");domain = domainParts[domainParts.length - 2];}var companions = document.querySelectorAll('.js_ad300-companion');var blockHeight = 0;if (companions.length > 0) {var companion = companions[0];blockHeight = companion.offsetHeight;}var onKinja = location.host.substr(-1 * "kinja.com".length) === "kinja.com";var fromSearch = (domain == "google") || (domain == "bing") || (domain == "yahoo") || (domain == "ask");var cookieString = "fromSearch=1";if (fromSearch) {document.cookie = cookieString;}var inSearchSession = document.cookie.indexOf(cookieString) != -1;var shouldShowAds = !onKinja && (fromSearch || inSearchSession);// && blockHeight > 400);if (shouldShowAds) {var s = '';var i;if (google_ads.length == 0) {return;}s += '