Re: Auto-Indent
Re: Auto-Indent
- Subject: Re: Auto-Indent
- From: Philip Aker <email@hidden>
- Date: Sun, 21 Dec 2003 06:50:29 -0800
On Saturday, December 20, 2003, at 11:53 AM, Godfrey DiGiorgi wrote:
Xcode text editing is one of the major points of focus for the next
release cycle.
I'm very glad to hear this. I'd like to remark that the Aqua guidelines
discuss a "Syntactic Unit" in the context of selection expansion and
document navigation. This unit defaults to a paragraph for the
Option-DownArrow keystroke (as in Mail e.g). I note that this behavior
has been changed for the better in Xcode for the Metrowerks template
but that behavior for its sibling, Option-Shift-DownArrow, hasn't been
changed to match.
In the same vein, a page-down action centers the insertion point in the
middle of current editing frame. It's more efficient to have this
action result in the insertion point being on the bottom line of the
frame. That's because there is no visual search necessary to locate the
cursor after the action and no decision making process involved in
which way to subsequently move it. I should note that there are other
considerations: That is, if one is using a screenful of small windows
and doing the edits in them, then perhaps it's nicer to have the
centered effect. However, for someone like me, who much prefers to have
the current editing window full sized, it's most decidedly a bother to
have to search for the cursor on a page up/down action.
... I open up the .m file from an Xcode plugin. The salient portion
looks like:
@implementation MyPlugin
@end
I place the insertion point at the end of "@implementation MyPlugin".
I type <Return>. Nothing happens. Color me frustrated -- this is
basic text editing gone awry.
I was unable to reproduce this.
It's fixed now. Scott Tooker mentioned the problem was related to using
old Key Binding templates in a post just before yours.
Which project template did you use, specifically? There is no specific
template for an "Xcode plugin" as such.
Very happy to inform you about the AppleScript Xcode Plugin choice now
available. Exponentially easier for me to implement than a User Scripts
item.
BTW, I've started this plugin because there is no "Enter Replace
String <Cmd-Shift-E>" item in the "Find" menu. It's really weird to
have to do this because it's a standard item in Macintosh code
editors (same ones as above). Any chance there'll be such an item in
the near future?
Please file a bug report/enhancement request for this feature.
ID# :3516422
so I presume:
rdar://3516422
I stated the obvious but in the NOTES section I up the ante a bit:
The "Find String" appears to be implemented as a system-wide global
available for use in applications. I suggest that instead of a single
string accommodating only the search string portion of search and
replace operations, that arrays of search and replace 'data' be
considered. A traditional implementation of search and replace
includes saved phrases and regular expression patterns for use in
text. OS X has facilities such that it would be possible to extend
this notion to say pixel data for images.
Note also that it's debatable whether it's an advantage to have global
search and replace data always turned on. That is, one may not wish to
have the S & R strings used in Xcode appear in the TextEdit
application. Therefore an option ("defaults write -g
AppleUseGlobalSearchAndReplace true/false" e.g.) is needed.
Thanks,
Philip Aker
http://www.aker.ca
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.