[wingide-users] "Open File Location" feature

Wingware Support support at wingware.com
Fri Sep 16 09:42:40 MDT 2011


On 9/16/11 11:38 AM, Jonathan March wrote:
> +1
> Also I would greatly appreciate an option to copy complete filename with
> path to clipboard, suitable for use in shell, "Open file" dialogs of
> other apps, documentation, etc.

Wing 4.0.4 will have a command copy-filename-to-clipboard.  Here is the 
implementation which can be dropped into a script in earlier versions of 
Wing:

import wingapi
def copy_filename_to_clipboard(fn=wingapi.kArgFilename):
   if fn:
     wingapi.gApplication.SetClipboard(fn[0])


-- 

Stephan Deibel
Wingware | Python IDE
Advancing Software Development

www.wingware.com


More information about the wingide-users mailing list