{"id":1083,"date":"2011-11-30T13:55:47","date_gmt":"2011-11-30T13:55:47","guid":{"rendered":"http:\/\/www.frogcake.net\/blog\/?p=1083"},"modified":"2017-11-09T20:45:53","modified_gmt":"2017-11-09T20:45:53","slug":"textmate-for-intellij-users","status":"publish","type":"post","link":"https:\/\/davidkeen.com\/blog\/2011\/11\/textmate-for-intellij-users\/","title":{"rendered":"TextMate for IntelliJ users"},"content":{"rendered":"<p>I use <a href=\"http:\/\/www.jetbrains.com\/idea\/\">IntelliJ IDEA<\/a>. I also use <a href=\"http:\/\/macromates.com\/\">TextMate<\/a>. The fact that I spend most of my day in IntelliJ means I&#8217;m used to IntelliJ&#8217;s keyboard mapping which happens to be slightly different from TextMate&#8217;s.<\/p>\n<p>The biggest difference I found was with the Home and End keys and the Delete Line mapping. So here&#8217;s how to make TextMate work more like IntelliJ.<\/p>\n<h2>Change Home and End keys<\/h2>\n<p>From <a href=\"http:\/\/blog.macromates.com\/2005\/key-bindings-for-switchers\/\">this old blog post<\/a>:<br \/>\nCreate the custom KeyBindings folder (if it doesn&#8217;t already exist):<\/p>\n<pre lang=\"bash\">mkdir ~\/Library\/KeyBindings<\/pre>\n<p>Create a key bindings file called DefaultKeyBinding.dict in this directory with the following content:<\/p>\n<pre lang=\"objc\">{\r\n    \/* home *\/\r\n    \"\\UF729\"  = \"moveToBeginningOfLine:\";\r\n    \"$\\UF729\" = \"moveToBeginningOfLineAndModifySelection:\";\r\n\r\n    \/* end *\/\r\n    \"\\UF72B\"  = \"moveToEndOfLine:\";\r\n    \"$\\UF72B\" = \"moveToEndOfLineAndModifySelection:\";\r\n\r\n    \/* page up\/down *\/\r\n    \"\\UF72C\"  = \"pageUp:\";\r\n    \"\\UF72D\"  = \"pageDown:\";\r\n}<\/pre>\n<h2>Change Delete Line mapping<\/h2>\n<p>Go to Bundles &gt; Bundle Editor &gt; Show Bundle Editor.<br \/>\nIn text bundle, change Delete Line from CTRL+K to CMD+DELETE.<br \/>\nIn the text bundle, Delete to Beginning of Line macro, click the X to remove the same binding.<\/p>\n<h2>Change Duplicate Line mapping<\/h2>\n<p>While you are there you might also want to change the Duplicate Line \/ Selection mapping to CMD+D<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use IntelliJ IDEA. I also use TextMate. The fact that I spend most of my day in IntelliJ means I&#8217;m used to IntelliJ&#8217;s keyboard mapping which happens to be slightly different from TextMate&#8217;s. The biggest difference I found was with the Home and End keys and the Delete Line mapping. So here&#8217;s how to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2648,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[25],"tags":[],"class_list":["post-1083","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/davidkeen.com\/blog\/wp-content\/uploads\/2011\/11\/pexels-photo-276452.jpeg?fit=1280%2C682&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/posts\/1083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/comments?post=1083"}],"version-history":[{"count":12,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/posts\/1083\/revisions"}],"predecessor-version":[{"id":2649,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/posts\/1083\/revisions\/2649"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/media\/2648"}],"wp:attachment":[{"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/media?parent=1083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/categories?post=1083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidkeen.com\/blog\/wp-json\/wp\/v2\/tags?post=1083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}