{"id":411,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=411"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"tracker-to-terminal-and-back","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=411","title":{"rendered":"Tracker to Terminal and back"},"content":{"rendered":"<p>If you find yourself frequently needing to get to a specific directory location in the shell and you&#8217;re already looking at it in the Tracker, download a copy of Sander Stok&#8217;s <a href=\"http:\/\/www.sumware.demon.nl\/products\/\">Summon<\/a> add-on. Install it in ~\/config\/add-ons\/Tracker and rename it with the letter of the hotkey you want. If you name to be able to launch a Terminal in the current folder with Opt+Alt+S, for instance, name it Summon-S.<\/p>\n<blockquote><p> Remember: &#8222;Opt&#8220; on a standard Windows keyboard is Right-Ctrl or Left-Win. Alt is the same on both sides of the keyboard. <\/p><\/blockquote>\n<p>Have you ever wanted to open a Tracker window from a Terminal? You can do it using built-in Tracker features, with the following aliases added to your <code>.profile<\/code> to save time :<\/p>\n<pre>\nalias t=\"\/boot\/beos\/system\/Tracker\"\nalias th=\"t .\"\n<\/pre>\n<p>Now if you type <code>th<\/code>, it will open a Tracker window in the current directory of your Terminal application. If you type <code>t<\/code>, it will put all Tracker windows in the front. If you type <code>t foo.cpp<\/code>, it will open this file in the BeIDE, since the MIME database will be automatically queried to locate the default application association for this file&#8217;s filetype.<br \/>\nHere&#8217;s another approach to the same goal: Paste this function into your <code>.profile<\/code> and you&#8217;ll be able to launch files by their MIME types, or launch a folder by simply typing <code>start Foldername<\/code> or <code>start .<\/code><\/p>\n<pre>\nfunction start {\n\t\/system\/Tracker $* &amp;\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you find yourself frequently needing to get to a specific directory location in the shell and you&#8217;re already looking at it in the Tracker, download a copy of Sander Stok&#8217;s Summon add-on. Install it in ~\/config\/add-ons\/Tracker and rename it with the letter of the hotkey you want. If you name to be able to [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[11],"class_list":["post-411","post","type-post","status-publish","format-standard","hentry","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=411"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/411\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}