Hi
Just found something I really miss in TM. Maybe I just didn't find it yet, although it's implemented ;-)
Having a project with several subfolders, it would be nice to just right click (or hit a key) to open a terminal window at the current file's location.
Is that possible somehow? I have seen "Open "..." with finder.app" and stuff, but no terminal.app.
TIA
André
On 03/05/07, Bonhôte André andre@bonhote.org wrote:
Just found something I really miss in TM. Maybe I just didn't find it yet, although it's implemented ;-)
Try Ctrl-Shift-O when you've got a file open.
To find that I typed Ctrl-T to search the commands available in the current scope. Very handy.
Graham
On 03/05/07, Graham Ashton graham.ashton@gmail.com wrote:
To find that I typed Ctrl-T to search the commands available in the current scope. Very handy.
Correction, that's Ctrl-Cmd-T.
On 03/05/07, Graham Ashton graham.ashton@gmail.com wrote:
On 03/05/07, Graham Ashton graham.ashton@gmail.com wrote:
To find that I typed Ctrl-T to search the commands available in the current scope. Very handy.
Correction, that's Ctrl-Cmd-T.
I've added "Open Finder here" locally:
if [[ -d $TM_SELECTED_FILE ]]; then TM_PATH="$TM_SELECTED_FILE" elif [[ -f $TM_SELECTED_FILE ]]; then TM_PATH="`dirname "$TM_SELECTED_FILE"`" else TM_PATH="`dirname "$TM_FILEPATH"`" fi
open "$TM_PATH"
I've added "Open Finder here" locally: ...
I've been using:
open "$TM_DIRECTORY"
-- Daryl
On 5/3/07, Henrik Nyh henrik@nyh.se wrote:
On 03/05/07, Graham Ashton graham.ashton@gmail.com wrote:
On 03/05/07, Graham Ashton graham.ashton@gmail.com wrote:
To find that I typed Ctrl-T to search the commands available in the current scope. Very handy.
Correction, that's Ctrl-Cmd-T.
I've added "Open Finder here" locally:
if [[ -d $TM_SELECTED_FILE ]]; then TM_PATH="$TM_SELECTED_FILE" elif [[ -f $TM_SELECTED_FILE ]]; then TM_PATH="`dirname "$TM_SELECTED_FILE"`" else TM_PATH="`dirname "$TM_FILEPATH"`" fi
open "$TM_PATH"
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Wow, thanks ... for both!
On 03.05.2007, at 10:09, Graham Ashton wrote:
On 03/05/07, Bonhôte André andre@bonhote.org wrote:
Just found something I really miss in TM. Maybe I just didn't find it yet, although it's implemented ;-)
Try Ctrl-Shift-O when you've got a file open.
To find that I typed Ctrl-T to search the commands available in the current scope. Very handy.
Graham
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
What if you want to use iTerm instead? :-)
Antoine
On 3 mai 07, at 10:09, Graham Ashton wrote:
On 03/05/07, Bonhôte André andre@bonhote.org wrote:
Just found something I really miss in TM. Maybe I just didn't find it yet, although it's implemented ;-)
Try Ctrl-Shift-O when you've got a file open.
To find that I typed Ctrl-T to search the commands available in the current scope. Very handy.
Graham
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On May 3, 2007, at 11:50 AM, Antoine Beyeler wrote:
What if you want to use iTerm instead? :-)
Wouldn't it work to change the command just from
osascript <<EOF tell application "Terminal" activate do script "cd '$TM_PATH'; clear; pwd" end tell EOF
to osascript <<EOF tell application "iTerm" activate do script "cd '$TM_PATH'; clear; pwd" end tell EOF
?
Niels
-- 1942? Wasn't that the year when Columbus discovered America? -- Beauty & the Geek Season 1
No.
However this did work:
osascript <<EOF tell application "iTerm" activate tell the first terminal launch session "Default Session" tell the last session write text "cd '$TM_PATH'; clear; pwd" end tell end tell end tell EOF
Best, Antoine
On 3 mai 07, at 11:53, Niels Kobschätzki wrote:
On May 3, 2007, at 11:50 AM, Antoine Beyeler wrote:
What if you want to use iTerm instead? :-)
Wouldn't it work to change the command just from
osascript <<EOF tell application "Terminal" activate do script "cd '$TM_PATH'; clear; pwd" end tell EOF
to osascript <<EOF tell application "iTerm" activate do script "cd '$TM_PATH'; clear; pwd" end tell EOF
?
Niels
-- 1942? Wasn't that the year when Columbus discovered America? -- Beauty & the Geek Season 1
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 5/3/07, Antoine Beyeler abeyeler@dplanet.ch wrote:
What if you want to use iTerm instead? :-)
Here is the one I use:
if [[ -d $TM_SELECTED_FILE ]]; then TM_PATH="$TM_SELECTED_FILE" elif [[ -f $TM_SELECTED_FILE ]]; then TM_PATH="`dirname "$TM_SELECTED_FILE"`" else TM_PATH="`dirname "$TM_FILEPATH"`" fi
osascript <<EOF tell application "iTerm" activate if exists the first terminal then set myterm to the first terminal else set myterm to (make new terminal) end if tell myterm activate current session launch session "Default Session" tell the last session write text "cd '$TM_PATH'; clear; pwd" end tell end tell end tell EOF
On 3. May 2007, at 14:00, Fred B wrote:
On 5/3/07, Antoine Beyeler abeyeler@dplanet.ch wrote:
What if you want to use iTerm instead? :-)
Here is the one I use: [...]
I updated the default command to use your script if either iTerm is running or TM_TERMINAL is set to iTerm.
We should probably move it to some lib/terminal.rb, so that all commands that run stuff in the terminal can adapt to user preferences.
On 5/4/07, Allan Odgaard throw-away-1@macromates.com wrote:
I updated the default command to use your script if either iTerm is running or TM_TERMINAL is set to iTerm.
Thanks Allan. One less custom command to worry about! ;) Glad you found the script useful.
-- FredB