Making the text editor use the Windows/Mac/etc clipboard

The interface, modeling, 3d editing tools, import/export, feature requests, etc

Moderators: jesterKing, stiv

LukeW
Posts: 64
Joined: Mon Mar 03, 2003 1:14 pm

Making the text editor use the Windows/Mac/etc clipboard

Postby LukeW » Mon Mar 03, 2003 4:53 pm

Here's a feature suggestion:
It is quite important because it allows python scripts, etc, to be copied and pasted between blender and other programs, like Internet Explorer (if you want to tell someone about your code or paste their code snippet with yours, etc)

The text editor in Blender 2.26 uses Ctrl-C to copy text, Ctrl-X to cut text (copy and delete) and Ctrl-V to paste text, just like other Windows programs do.
Unlike other Windows programs, the text stored on the Windows clipboard can't be pasted into blender - and the text copied from blender can't be pasted into other Windows programs.

Maybe Ctrl-C/Ctrl-V/Ctrl-X could work like this:

Copying/Cutting text:
If it is Windows, copy the text to the Windows clipboard.
If it is the Mac, copy the text to the Mac clipboard, etc.
If it is an OS that doesn't have a shared clipboard, do what blender normally does.

Pasting text:
If it is Windows, try extracting some text from the Windows clipboard (even though it might be in rich text format in the clipboard) - if that fails, do nothing.
If it is the Mac, try extracting some text from the Mac clipboard (even though it might be in rich text format in the clipboard) - if that fails, do nothing.
If it is an OS that doesn't have a shared clipboard, do what blender normally does.

aequitas
Posts: 43
Joined: Sat Jan 18, 2003 6:21 pm
Location: Holland

Postby aequitas » Thu Mar 06, 2003 12:54 am

I think that is just one of the things that should be improved in the text editor:

- Unix like copying and pasting would be nice to (select text to copy to clipboard, middlemouse to paste) But that would be a prob with the scrolling as it is now.

- Syntax highligthing would be nice to.

- Code-complete (or whatever its called) like in many common source editors (ie VBasic, VC++) that when you type the beginning of a command or variable it suggest a list of possible words so it is easyer to use longer variable names.

- Better navigation by enabling the home and end buttons to act as the do in normal text editors.


ETC,ETC,ETC,

There is just so much to be done for the text editor to make it functional.

For now i do creating scripts in notepad or nano/vi and just import it in blender and then debug.

It works fine but there would be just one thing that would make this a lot easyer. OS clipboard support. Instead of saving and reloading in in blender.

joeri
Posts: 2243
Joined: Fri Jan 10, 2003 6:41 pm
Contact:

Postby joeri » Thu Mar 13, 2003 11:02 am

I think blender should also be able to use external text files, just like external images.
Then anyone can use any texteditor he/she wants.
Then maybe Packing a file makes it read into a text window.
Then unpacking could restore it as a linked file.
Ofcourse this will give nice Linked-Lib troubles ;)


Return to “Interface & Tools”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests