On Wed, May 20, 2015 at 11:45 AM, Andy Goth <andrew.m.g...@gmail.com> wrote:

> On 5/18/2015 9:30 AM, Richard Hipp wrote:
> > I tried andygoth-brackets-outside-links.  I like it better the old
> > way, with the brackets as part of the hyperlinks.  You are going to
> > need to sell me on omitting the brackets from the links.
>
> In typical browsers, it's not possible to start a selection in the
> middle of hyperlink text.  Attempting to do so is instead interpreted as
> a drag-and-drop operation.
>
> I very frequently need to copy-and-paste artifact IDs from the web UI to
> a text terminal, but currently this requires doing a manual edit after
> pasting since I can't avoid having at least one bracket in the selection.
>
> It's been brought up several times that an alternative approach would be
> ignoring the brackets when checking if a string is an artifact ID, but
> this doesn't really solve the problem either (specifically: the need to
> manually edit after pasting) because square brackets have to be quoted
> in Unix shells.
>

While this is true, the quoting can be as simple as wrapping the square
brackets in single quote characters: '[0a1b2c3d]'

Perhaps I don't spend enough time in posix land, but since you have to
generate a command line into which you paste the text, single quotes don't
seem that arduous:

1. Type "fossil something '" (sans double quotes).
2. Paste the text.
3. Type the closing single quote and hit enter.

It only results in a net increase of two keystrokes and no editing. Of
course, this all presupposes that fossil would be modified to accept the
bracket enclosed form of hashes.

I'm not personally opposed to moving the brackets outside the link, just
observing that the quoting of square brackets isn't difficult at all as
long as you're not trying to embed a backslash into the command line.

I may have overlooked something. Sorry if this winds up as little more than
noise.
-- 
Scott Robison
_______________________________________________
fossil-dev mailing list
fossil-dev@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/fossil-dev

Reply via email to