Permalink
Commits on Dec 25, 2011
  1. @sorbits
Commits on Jun 12, 2011
  1. @sorbits

    Use SELNAME with _cmd.

    This ensures that the proper type is seen by the compiler (char const* instead of SEL) which avoids a format string warning.
    sorbits committed Jun 12, 2011
Commits on Jan 24, 2011
  1. @sorbits

    Replace use of %C with unicode.

    sorbits committed Jan 24, 2011
Commits on Jun 14, 2010
  1. @sorbits

    If package creator is unset we fallback on bundle identifier as sender.

    Here ‘unset’ means having the default value of ‘????’. This is presently the case for LimeChat.
    sorbits committed Jun 14, 2010
  2. @sorbits

    Use kUnknownType instead of '????'.

    This avoids a compiler warning about trigraphs not being enabled.
    sorbits committed Jun 14, 2010
Commits on May 5, 2010
  1. @sorbits
  2. @sorbits
  3. @sorbits

    Switch to Makefile.

    sorbits committed May 5, 2010
Commits on Sep 24, 2009
  1. @sorbits

    Add more debug output.

    sorbits committed Sep 24, 2009
Commits on Sep 9, 2009
  1. @ciaran

    Add some scattered toggle-able debug messages.

    One can use:
    
    	defaults write -globalDomain EditInTextMateDebugEnabled -bool YES
    
    To enable the debugging for all applications, or use a domain instead to target a specific app.
    ciaran committed Sep 9, 2009
  2. @ciaran

    Debug messages

    ciaran committed Sep 9, 2009
Commits on Feb 22, 2008
  1. @sorbits

    Use selectLine instead of selectAll for locating textarea

    If no textarea (or other text input field) is active when you select
    Edit in Textmate…, then the selectAll call will highlight the entire
    webpage. Ick. selectLine seems to workout better.
    
    Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
    
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@8985 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Feb 22, 2008
  2. @sorbits

    Ensure we send back to the same text area as we took the text from

    Save the TextArea object in the options dictionary and then pass
    it back to textMateDidModifyString so that the text always goes
    back to whence it came.
    
    Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
    
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@8984 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Feb 22, 2008
  3. @sorbits

    Set line number correctly for textareas

    Previously when editing a textarea, the line number was always set
    to zero (the first line). We now count the line numbers correctly so that
    the caret appears on the correct line within TextMate.
    
    Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
    
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@8983 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Feb 22, 2008
  4. @sorbits

    Fix issue with locating textarea among multiple textareas

    Previously if there were multiple textareas the selection logic
    failed if the textarea were empty or already fully selected. As
    a workaround, any such areas are temporarily set to an a
    single space (' '). This gives something for selectAll to work on
    (or clears an active selection). After locating the textarea, we
    then restore the previously value.
    
    Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
    
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@8982 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Feb 22, 2008
  5. @sorbits

    Fix for sites w/multiple frames (Gmail)

    Edit in TextMate wasn't working for me with Gmail, at least under
    10.5. I believe this is due to Gmail using multiple frames. We now
    try using selectedFrame if the WebView responds to that, otherwise
    we just try the mainFrame and all children frames to see if any have
    an active textarea.
    
    Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
    
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@8981 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Feb 22, 2008
  6. @sorbits

    Fix LDFLAGS compile error under 10.5

    "-undefined define_a_way" is apparently "-undefined dynamic_lookup"
    under 10.5.
    
    Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
    
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@8980 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Feb 22, 2008
Commits on Jul 25, 2007
  1. @sorbits

    • change “Copyright (c) 2005 MacroMates” → “See /trunk/LICENSE for li…

    …cense details”
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@7805 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Jul 25, 2007
Commits on Jul 8, 2007
  1. @sorbits

    • occasionally a space would be missing between two words when invoke…

    …d from Mail (because of the DOM using two sibling nodes for one text-run)
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@7715 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Jul 8, 2007
Commits on Jun 29, 2007
  1. @sorbits

    • disable exceptions, run-time type info, and make symbols hidden — 1…

    …5% smaller executable…
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@7636 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Jun 29, 2007
  2. @sorbits

    [NEW] Added support for OmniWeb 5.6 — this support *may* include Safa…

    …ri 3, but I have only tested WebKit.app with which the text can’t be sent back due to problems with apple events (presumably related to the executable and bundle ID referencing WebKit and the running process being called Safari). The way the active text area is found is a heuristic and may fail (except for OmniWeb) see the source for details. The default key equivalent (⌃⌘E) has no effect, this seems to be a WebKit problem and the solution is to add a binding for editInTextMate: to your DefaultKeyBinding.dict or change the Edit In TextMate’s key via the Keyboard & Mouse pane in System Preferences
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@7635 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Jun 29, 2007
Commits on Feb 19, 2007
  1. @sorbits

    • use precomposedStringWithCanonicalMapping on the file name when usi…

    …ng it as a key in the dictionary storing info about open files (as the file name we get from resolving the alias might be decomposed, when it was initially precomposed vice versa)
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@6604 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Feb 19, 2007
Commits on Oct 31, 2006
  1. @sorbits

    • change didModifyString: method to textMateDidModifyString:

    • prefix NSString category methods with “TM_”
    
    This to prevent clashes with other programs which add category methods.
    
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@5822 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Oct 31, 2006
Commits on Oct 9, 2006
  1. @sorbits

    • send undo to the WebView’s undo manager after having inserted the c…

    …aret marker (to figure out where the caret is located, which there seems to be no other way to do), so that if the user cancels the edit, he is not stuck with this caret marker
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@5407 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Oct 9, 2006
Commits on Jul 6, 2006
  1. @sorbits

    • replace use of stringWithContentsOfFile:encoding:error: with initWi…

    …thData:encoding: so that it (presumably) works with Panther
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@4032 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Jul 6, 2006
Commits on Jul 3, 2006
  1. @sorbits

    • augment the default URL mappings with those found in ~/Library/Pref…

    …erences/com.macromates.edit_in_textmate.plist — this is a plist with one key at the root level (URLAssociations) which should hold the associations. The key in this dictionary is the URL substring and the value is the extension to use.
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@3992 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Jul 3, 2006
  2. @sorbits

    • use NSClassFromString rather than assume WebFrameView is defined

    • use the longest match in the URL map
    • if sending back the modified document to the calling application fails, then instead of removing the temporary file on close, it is revealed in Finder
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@3991 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Jul 3, 2006
Commits on Jul 2, 2006
  1. @sorbits

    • if a parent view to the one from which “Edit in TM” is invoked is a…

    … WebFrameView then grab the URL from that view and use the ‘url map’ to find an extension for the temporary file given to TextMate — this allows e.g. edits initiated from gmail to use mail syntax, from macromates.com/blog/ to use Markdown, from the Quicksilver forum to use BBCode etc.
    
    Currently the url map is only read from the bundle containing the Edit in TM input manager — it should probably also be read from somewhere under ~/Library
    
    This hack works for both OmniWeb and Safari. Should work for all WebKit-based browsers.
    
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@3962 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Jul 2, 2006
Commits on Jun 9, 2006
  1. @sorbits

    • will no longer freeze when caret is at the last column of the last …

    …line in a NSTextview
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@3592 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Jun 9, 2006
Commits on May 26, 2006
  1. @sorbits

    • when initiating an edit, TextMate will open the text with the caret…

    … placed on the same line as the calling text / web view
    
    I didn’t find any interface for getting the line number from the web view, so instead I insert a unicode replacement character and look for this — this has the disadvantages that if the text is not replaced (i.e. saved from TM), this code point will stay in the text (it will be visible)
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@3426 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed May 26, 2006
Commits on Apr 15, 2006
  1. @sorbits

    • lines ending with ‘>’ (without a trailing space) now also have that…

    … last character count toward the quoting level when sending back the text to Mail
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@3036 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Apr 15, 2006
Commits on Apr 6, 2006
  1. @sorbits

    • select the menu with most of the typical Edit menu actions (rather …

    …than the first) since Michael Sheets spotted that Software Update actually got this item added to its Update menu :)
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@2962 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Apr 6, 2006
Commits on Mar 26, 2006
  1. @sorbits

    • add the “Edit in TextMate” action to the first menu which contains …

    …a menu item with an undo, redo, cut, copy, paste, delete, or select all action.
    
    This should cause it to work for those who do not have English menu titles.
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@2898 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Mar 26, 2006
Commits on Feb 9, 2006
  1. @sorbits

    • encapsulate the changing of the text view text in shouldChangeTextI…

    …nRange:replacementString: and didChangeText (should trigger whatever notification the application may use)
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@2689 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Feb 9, 2006
Commits on Jan 3, 2006
  1. @sorbits

    • the Edit in TextMate input manager now install a menu item in the E…

    …dit menu so that users do not have to setup key bindings by default (though the menu item can be disabled and standard key bindings still work)
    
    • created a “web application” to create the symbolic link (i.e. performing the installation) — this may seem like a bit of a Frankenstein creation, but it's pretty simple (just a markdown document with an <input>-button that has a JavaScript event handler which creates the link, and even does somewhat graceful error handling and provides the user with installation feedback)
    
    
    git-svn-id: http://svn.textmate.org/trunk/Tools/Edit%20in%20TextMate@2525 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
    sorbits committed Jan 3, 2006