textmate

Rails doesn't write to development.log file anymore as soon as I save it from another location

ぃ、小莉子 提交于 2019-12-12 01:18:09
问题 I'm facing a really strange problem. When I start rails s , Rails logs as expected to log/development.log file. As soon as I open it in an editor (e.g. Vi, TextMate) and save it from there, Rails doesn't write to it anymore! I have to restart the server, and then it works again. This is really strange, it seems like Vi/TextMate "steals" the right to write the file, and only a restart of the Rails server regains the right again. Anybody has an idea what's happening here? This is really

I want to do vim snipMate like TextMate

十年热恋 提交于 2019-12-11 23:39:32
问题 i use vim with snipMate But I find this problem if (true) {|}; in TextMate After pressing Enter key .. Look at the cursor if (true) { | }; in vim After pressing Enter key .. Look at the cursor if (true) { |}; How to Make vim , such as TextMate thanks edit this is my vimrc filetype on " Enable filetype detection filetype indent on " Enable filetype-specific indenting filetype plugin on " Enable filetype-specific plugins " New Tab nnoremap <silent> <C-t> :tabnew<CR> " Next Tab nnoremap <silent>

Textmate + RVM + Rake = Rake not using expected gem environment

孤者浪人 提交于 2019-12-11 19:51:29
问题 I am using: TextMate: version 2.0-alpha.9511 rvm: 1.25.15 (stable) ruby: version 2.1.0p0 oh-my-zshell: 5.0.2 Mac OS X: 10.9.1 (Mavericks) I have rvm and textmate set up to use TM_RUBY=/Users/<myuser>/.rvm/bin/rvm-auto-ruby The problem: when I try to run my rake tasks using the rake bundle in textmate, I get some errors about the file not loading: "cannot load such file -- rubocop/rake_task" The clue: I changed my rakefile so that it simply reports the "gem env" for the default task. When I

TextMate's Command + Enter in Vim?

不羁岁月 提交于 2019-12-11 13:56:10
问题 In TextMate when you are editing a line of text and you press command + enter it inserts a newline and brings the cursor to that new line without bringing down any text from the previous line. Is there a way to create this feature in Vim? Any insight would be much appreciated. Thanks! 回答1: The following mapping works: inoremap <D-Enter> <ESC>o The D maps the command key on Mac. The answer by CatPlusPlus shows how this would work when using the Control key instead. Note that mapping the

Any New TextMate resources?

℡╲_俬逩灬. 提交于 2019-12-11 08:28:41
问题 So, I just installed OSX Lion and have been trying to get TextMate setup on it (first time using TextMate). I've found all these links about installing bundles, but I can't seem to get any of them to be loaded into the program. For instance, on pretty much all TextMate bundles, after you pull the code from github, this command is always listed: osascript -e 'tell app "TextMate" to reload bundles' Doing this gives me this response: 2011-09-16 17:32:55.276 osascript[19941:707] Error loading

Textmate to browse C++ project with a bunch of files and CUDA

夙愿已清 提交于 2019-12-11 07:52:38
问题 I am new to Textmate. I have to work on a CUDA C++ project and at the moment just would like to get the project (bunch of files and directories), start with the main C++ file and from there, selecting functions and that Textmate jumps to the definitions which usually are in other files. Is it possible with Textmate and moreover with CUDA? Do not need to compile, just efficiently browse code 回答1: You want the CTags bundle for TextMate. Here's a tutorial that explains how to do by hand what the

How do I update my compiler to use C++11 features?

倖福魔咒の 提交于 2019-12-11 05:14:59
问题 I tried to get myself into C++ and purchased the book "Programming - Principles and Practice Using C++" by Bjarne Stroustrup. When I tried to get compile the following source code: #include "std_lib_facilities.h" int main(){ cout<<"Hello, World!\n"; keep_window_open(); return 0; } I am getting following compile error: In file included from /Users/hypertrooper/Documents/Programming - Principles and Practice Using C++/hello_world.cpp:1: std_lib_facilities.h:71:20: warning: alias declarations

Minor Git Issue - Changing Default Editor [duplicate]

不想你离开。 提交于 2019-12-11 02:18:51
问题 This question already has answers here : Closed 8 years ago . Possible Duplicates: How can I set up an editor to work with Git on Windows? Trouble on setting the git 'core.editor' I'm trying to change my default git text editor to TextMate, such that forgetting the -m tag on a commit will bring me into TextMate and not vi. I have [core] editor = mate -w in my ~/.gitconfig, but it still throws the following error at me: error: cannot run TextMate: No such file or directory error: There was a

How do you open a TextMate tab in an another window?

戏子无情 提交于 2019-12-11 00:32:29
问题 I have two monitors on my system and sometimes I want to open a tab (i.e. file) from one window in its own window. Is this possible? 回答1: You can't move a tab to a new window (yet? see this suggestion), but you can open a file in a new window from the drawer. Right-click the file in the drawer and choose "Open filename in New Window." Find next is ⌘ + G . 回答2: Find Next is Cmd-g . Moving a tab is View > Move to New Window. Exploring the menus would be a good idea. Ignore me, confused editors

Regular expression to replace spaces with dashes within a sub string.

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 21:04:08
问题 I've been struggling to find a way to replace spaces with dashes in a string but only spaces that are within a particular part of the string. Source: ABC *This is a sub string* DEF My attempt at a regular expression : /\s/g If I use the regular expression to match spaces and replace I get the following result: ABC-*This-is-a-sub-string*-DEF But I only want to replace spaces within the text surrounded by the two asterisks. Here is what I'm trying to achieve: ABC *This-is-a-sub-string* DEF Not