Opened 10 years ago

Closed 10 years ago

#418 closed enhancement (fixed)

Context menu option to rename attached files

Reported by: dstillman Owned by: dstillman
Priority: minor Milestone: 1.0 Beta 3
Component: interface Version: 1.0
Keywords: Cc:

Description

Need a way to change the underlying filename without losing the link

Change History (1)

comment:1 Changed 10 years ago by dstillman

  • Resolution set to fixed
  • Status changed from new to closed

(In [1032]) Closes #418, Context menu option to rename attached files

New methods, Item.renameAttachmentFile(newName, force) -- _force_ forces overwrite of an existing file

For the moment, implemented in the UI via a checkbox in the attachment title rename dialog (accessible by clicking on the title in the right pane) to rename the associated file as well -- this might be replaced by the upcoming keep-filenames-in-sync-with-attachment-titles feature, but it's probably fine for Beta 3.

Also new:

  • Zotero.Attachments.getPath(file, linkMode) to get a relative or persistent path as appropriate given the link mode
Note: See TracTickets for help on using tickets.