I just added a bugzilla request regarding this feature.
Hope we could see this feature soon.
James

The following is my request
==================================
In command buffer, one can type "citation-insert " followed by a list of bib keys to insert the citations to the place where the cursor is.

In practice, the bib key list is often from another Bib management tool, like JabRef or something like that, which is able to push/copy the selected bib keys to the system's "clipboard". Now, using the feature mentioned above, one can type "citation-insert " and then <CTRL-V> to paste the bib keys from the clipboard and hit <enter> to complete the citation insertion.

However, the point is that the "paste" step might be further omitted if LyX could have another command like "citation-insert-clipboard" that simply takes the content of the clipboard directly to insert, without user's explicitly pasting or typing after the "citation-insert" command. This way, user can insert citations from outside of LyX much more agile.

Of course, it would be even better if LyX has a single keyboard "short-cut" that directly does the "citation-insertion from clipboard".

Hope LyX team can consider this suggestion.
==================================


Richard Heck wrote:
Yes, I can see that. Can you add a bugzilla request? I take it the idea
would be to have a really, really simple dialog: You enter the key,
period. Maybe we could also allow entering the before, after, etc. But
mostly it'd be for quick entries of the key.

This would not be hard to do. The Model-View-Controller framework sees
to that.

rh

Yu, James wrote:
Hi Richard,

I know of the discussion---actually I raised that question recently.
But using a third helper utility to bridge Lyx and a bib management
app is one thing,  having a quick way (what Tobias said
"one-key-stroke") to insert citations from clipboard is another.

I think "insert-citation-in-one-key-stroke" method would be a very
useful, general feature, no matter what OS you are in.

Thanks for providing the command buffer method. I tried it. It works
well. I am thinking if LyX could have a command
"citation-insert-from-clipboard", where you don't need to append
literally the citation key list, it also would be great.

Thanks,

James



Richard Heck wrote:
It would be possible for someone to write the necessary code to get
reference pushing to work under windows, and there are work-arounds that
have been discussed in the list---maybe it was the devel
list---recently. How hard the code would be isn't obvious to me, but I
don't use Windows and so obviously can't do it myself.

Richard

Yu, James wrote:
Hi Richard,

I had the exact same question as Tobias'.

In pure Windows environment (without cygwin), the communication
between the Java-based JabRef and Window-based LyX is not possible (or
not available yet). So, the immediate question is that: once in the
JabRef we select a set of citations and copy it to the system
clipboard, how do we quickly and agilely "insert" it to the LyX.

Originally, I thought there could be a simple text field in the
citation insertion dialog, something like "insert from clipboard",
which would take whatever string in the system clipboard and insert it
to the Lyx. I am wondering whether this approach was ever considered
by the LyX team.

Anyway, I am going to try out your method. Hope it serves the same
purpose nicely.

Thanks,

James

Richard Heck wrote:
Tobias Krause wrote:
usually when I insert a citation I already have the complete
BibTeX-Key in the clipboard - is there a faster way to insert the
citation than clicking Insert -> Citation,...?
Use the mini-buffer. The first time, you'll have to hit alt-x to focus
it, type "citation-insert " and then paste the key. But the next time,
you hit alt-x, up arrow (history), ctrl-shift-left-arrow (highlight
the
key), and paste. Of course, if you use the mini-buffer for something
else, you may have to up-arrow a few more times. But it's faster than
what you're doing.

That said: If you've got the key in the clipboard...did you get it
from
somewhere that could push it through the lyxpipe? Or are you,
sadly, on
a system that doesn't do that?

Richard




Reply via email to