[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] Dragging URLs to an org buffer

From: Piotr Zielinski
Subject: Re: [Orgmode] Dragging URLs to an org buffer
Date: Wed, 4 Oct 2006 17:30:19 +0200

On 04/10/06, Carsten Dominik <address@hidden> wrote:
On Oct 3, 2006, at 19:27, Piotr Zielinski wrote:
> Here's a piece of elisp that allows you to drag URLs from a webbrowser
> (or other apps) to an org buffer.

I like the functionality, but I do find it too specialized to make this
behavior the default.  So I would weaken it, or enclose turning it on
into a customization variable.

Yes, I completely agree with you, this was a hack that worked for me
rather than something everybody could use.  But I thought sharing it
with others might be a good idea, even if only for useful feedback
like yours.

The only thing which I have a different opinion about is what to do
when you drop a URL in the middle of the line.  I believe this
function should be assigned to normal "paste" (middle button).  My
goal was to make drag-and-drop useful for managing org-mode lists
_without_ using a keyboard.  For me this means: (i) an easy
(keyboard-less) way of insterting a new list element before or after
the current element, and (ii) inserting the URL into the current line,
without the need of manual adjustment (adding spaces around, adding
the colon, etc.).  So while I agree that the behaviour must be
customizable, I'd like a solution that satisfies these two criteria.
Anyway, I'll do some modifications, and send the next version.

The reasons why I find it too intrusive
the way it is now are:

- You enforce a colon for adding to the end of the line
- you enforce a particular type of bullet.
- when inserting in a empty line, the color switches to fixed-width
- people might want to use drag-and-drop to insert something into the
text that happens to be a bullet item.


- Don't enforce the colon when inserting at the end of the line.
- In the middle of a line, just insert there.
- If the current line is a bullet or a headline, *and* if you drop *on*
either the bullet or the headline stars, then make a new
headline/bullet for the dragged text.  Always make the bullet after the
current line.  (well, when inserting in front of a bullet, you could
insert before the current...)
- Respect the type of bullet:  numbered, -, +, *.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]