Opened 8 days ago

Last modified 8 days ago

#19159 new enhancement

Tracker: provide text/plain as copy target.

Reported by: nephele Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/libtracker.so Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

When copying file names into a text editor currently one has to select the file, rename it, select all, copy, and then paste it into the text editor.

It would be nice if a text/plain copy target could be included for text editors, so this moves to: copy file -> paste in text editor

hrev58204

Change History (3)

comment:1 by humdinger, 8 days ago

I'm not sure I understand correctly... Something like the "CopyNameToClipboard" Tracker addon?

comment:2 by nephele, 8 days ago

Not sure why that would need to be an addon?

AFAIK copy/pasting and drag&drop in Haiku works by the source application providing a set of MIME types it supports sending the content as and the destination picks the type it wants from the list, and that is then what is copied.

For example copying from a webpage could either paste plain text or html depending on what the received can handle.

In this case I want tracker to provide a plaintext option for files (or to just get their title)... but maybe the text editor should be changed to support a file instead and only pick it's name?

In any case, I don't want to use an addon for something that could happen automatically ;)

comment:3 by humdinger, 8 days ago

Maybe I just misunderstand you. Talk me through it... :)

You have a text editor open. When you left-d'n'd a text file into it, it most probably would either open the file in a new window, or insert the contents of the text file. You are suggesting that when right-d'n'd the file you get a context menu where you select what should happen, among it a "Paste filename"?
Wouldn't that need support from the app you're dropping the file into?

Or maybe you mean something completely different, and as I said, I misunderstand.

Note: See TracTickets for help on using tickets.