wshanks / Zutilo

Zotero plugin providing some additional editing features
Other
1.53k stars 72 forks source link

Switcher for Quick Copy Format #46

Closed gracile-fr closed 9 years ago

gracile-fr commented 9 years ago

cf. https://github.com/zotero/zotero/issues/466 but in the meantime, could it be possible to add Dan's solution here : https://forums.zotero.org/discussion/35837/switcher-for-quick-copy-format/?Focus=190328#Comment_190328

wshanks commented 9 years ago

Hmm, implement that exact code for Chicago style, or something that allows you to set the shortcut for any QuickCopy translator?

gracile-fr commented 9 years ago

Yes something that allows to switch between any installed styles/formats. To avoid too much UI work, that could be two hidden prefs that the user would have to set/fill with the correct values.

wshanks commented 9 years ago

Hmm, I had thought about doing this a while back but got sidetracked by other things and didn't do it. That discussion is here: https://github.com/willsALMANJ/Zoterodactyl/issues/3

The quick, hacky way to do it would be to make one to three new shortcuts in Zutilo called QuickCopy 1, QuickCopy 2, etc. and then have preferences in about:config that set which translator correponds to QuickCopy 1, QuickCopy 2, etc.

wshanks commented 9 years ago

Okay, I added something along these lines in 30c86fa2360f48ee6b733d3ebd25b01417daa9fc

gracile-fr commented 9 years ago

Fantastic, thanks! [note to self: display a non-disruptive window which shows the selected format during three seconds (cf Zotfile's messages)]