From vitaly at bitwine.com Thu Aug 2 09:49:30 2007 From: vitaly at bitwine.com (Vitaly) Date: Thu, 2 Aug 2007 02:49:30 -0700 (PDT) Subject: [TxMt Plugins] Mercurial bundle fix Message-ID: <11961456.post@talk.nabble.com> Mercurial bundle was failing for me for some time and I finaly decided to fix it. Below is the patch fixing the error. Apparently the com.macromates.textmate.plist file doesn't always have the 'OakTextViewNormalFontName' property. I checked standard bundles and found in the TextMate.bundle almost same code but with defaults for font name and size. Corresponding change for Mercurial is in the below patch. ------ cut ------ * Fix bundle error when missing font prefs diff -r 98bb64167077 Pristine Copy/Bundles/Mercurial.tmbundle/Support/getfontpref.rb --- a/Pristine Copy/Bundles/Mercurial.tmbundle/Support/getfontpref.rb Thu Aug 02 12:07:30 2007 +0300 +++ b/Pristine Copy/Bundles/Mercurial.tmbundle/Support/getfontpref.rb Thu Aug 02 12:46:36 2007 +0300 @@ -6,12 +6,12 @@ textmate_pref_file = '~/Library/Preferen $prefs = OSX::PropertyList.load(File.open(File.expand_path(textmate_pref_file))) def getfontname - font_name = $prefs['OakTextViewNormalFontName'] + font_name = $prefs['OakTextViewNormalFontName'] || 'Monaco' font_name = '"' + font_name + '"' if font_name.include?(' ') && !font_name.include?('"') return font_name end def getfontsize - font_size = ($prefs['OakTextViewNormalFontSize']).to_s + font_size = ($prefs['OakTextViewNormalFontSize'] || 11).to_s font_size.sub!(/\.\d+$/, '') end \ No newline at end of file -- View this message in context: http://www.nabble.com/Mercurial-bundle-fix-tf4205140.html#a11961456 Sent from the textmate-plugins mailing list archive at Nabble.com. From fredb7 at gmail.com Thu Aug 2 10:31:58 2007 From: fredb7 at gmail.com (Fred B) Date: Thu, 2 Aug 2007 12:31:58 +0200 Subject: [TxMt Plugins] Mercurial bundle fix In-Reply-To: <11961456.post@talk.nabble.com> References: <11961456.post@talk.nabble.com> Message-ID: <9c31463d0708020331xa90b084scb8f0e82f5ebba84@mail.gmail.com> On 8/2/07, Vitaly wrote: > > Mercurial bundle was failing for me for some time and I finaly decided to fix > it. > Below is the patch fixing the error. Apparently the > com.macromates.textmate.plist file doesn't > always have the 'OakTextViewNormalFontName' property. I checked standard > bundles and found > in the TextMate.bundle almost same code but with defaults for font name and > size. > Corresponding change for Mercurial is in the below patch. Thanks for the patch, I'll commit it ASAP. BTW, I've worked on the Mercurial bundle and it will be updated soon. NB: You used the wrong list, this list if for plugins, not bundles and it's better to use the standard list anyway ;). -- FredB From ciawal at gmail.com Sat Aug 25 07:17:35 2007 From: ciawal at gmail.com (=?UTF-8?Q?Ciar=C3=A1n_Walsh?=) Date: Sat, 25 Aug 2007 02:17:35 -0500 Subject: [TxMt Plugins] Manually specify Selection? In-Reply-To: References: Message-ID: <4B48D49D-22E6-4DDE-BFF5-C1B7EFA674B8@gmail.com> On 22 Apr 2007, at 04:41, Allan Odgaard wrote: > On 22. Apr 2007, at 00:05, Kirt Fitzpatrick wrote: > >> Does TextMate implement any method that would allow me to manually >> specify the selection? Or am I limited to the >> "moveRightAndModifySelection" types of methods? I'm willing to >> put up with any amount of complexity to implement this >> functionality if someone can point me in the right direction. > > You?re unfortunately limited to the *AndModifySelection methods. I?m trying to move the caret from a plugin but: *** -[OakTextView moveDown:]: selector not recognized [self = 0x16451550] I tried a moveLeftAndModifySelection: too with the same result. Am I missing something? -------------- next part -------------- An HTML attachment was scrubbed... URL: From throw-away-1 at macromates.com Sat Aug 25 14:13:02 2007 From: throw-away-1 at macromates.com (Allan Odgaard) Date: Sat, 25 Aug 2007 10:13:02 -0400 Subject: [TxMt Plugins] Manually specify Selection? In-Reply-To: <4B48D49D-22E6-4DDE-BFF5-C1B7EFA674B8@gmail.com> References: <4B48D49D-22E6-4DDE-BFF5-C1B7EFA674B8@gmail.com> Message-ID: <5B588CF9-0923-4D73-9D1A-A4892AE9271C@macromates.com> On Aug 25, 2007, at 3:17 AM, Ciar?n Walsh wrote: > [...] > I?m trying to move the caret from a plugin but: > > *** -[OakTextView moveDown:]: selector not recognized [self = > 0x16451550] > > I tried a moveLeftAndModifySelection: too with the same result. Am > I missing something? http://lists.macromates.com/pipermail/textmate-plugins/2007-March/ 000037.html