[TxMt] Doc for Tcl mode

Juan Falgueras jfalgueras at uma.es
Wed Apr 30 15:37:35 UTC 2008


	Hi

the original command to get man doc from Tcl commands in Tcl mode was  
broken (at least in my system -with Developer Tools installed)  I have  
simplify it to a simpler and working script borrow from the Shell  
script mode one:


----------------
word=${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}

try_man () {
	if man n -w "$word" &>/dev/null; then
		page=$("$TM_SUPPORT_PATH/bin/html_man.sh" n "$word")
		echo "<meta http-equiv='Refresh' content='0;URL=tm-file://$page'>"
		exit_show_html
	fi
}

try_man

echo "Couldn’t find documentation in 'man n' for “${word}”"
-----------------

  - Juan Falgueras




More information about the textmate mailing list