# Possible shortcut to add pdf?

**URL:** https://discourse.jabref.org/t/possible-shortcut-to-add-pdf/567
**Category:** Help
**Created:** [April 10, 2017, 9:41am UTC](https://discourse.jabref.org/t/possible-shortcut-to-add-pdf/567 "2017-04-10T09:41:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bkleine](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/bkleine/32/428_2.png) [@bkleine](https://discourse.jabref.org/u/bkleine)
#### Post date: [April 10, 2017, 9:41am UTC](https://discourse.jabref.org/t/possible-shortcut-to-add-pdf/567/1 "2017-04-10T09:41:51Z")

</div>

I do not see in my jabref configuration a page to edit shortcuts. I do not remember whether there was any before. I would like to have a shortcut for “add pdf to file”. That would be great. Working routinely with jabref I am sure there is a faster way than to click 1) Edit-\> that 2) General-\> and then 3) +.

The automatic adding files drives the pdf to an folder which is very cryptic e.g. \storage\88AWDZ4D and cannot be manipulated; therefore I have organized the pdf in folders which some meaning e.g volltext/metabolismus etc.

What do you think? I have not seen that ctrl-alt-F is used. It should lead to the Main file directory.

---

<div class="post-metadata">

### Author: ![matthiasgeiger](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/matthiasgeiger/32/7_2.png) [@matthiasgeiger](https://discourse.jabref.org/u/matthiasgeiger)
#### Post date: [April 10, 2017, 10:26am UTC](https://discourse.jabref.org/t/possible-shortcut-to-add-pdf/567/2 "2017-04-10T10:26:05Z")

</div>

Hi!  
Again Drag-and-drop would be possible 😉

Just select a PDF in the file explorer and drag it on the entry you want to add it. Alternatively: Right-Click on the selected entry -\> “Attach File” (unfortunately no short-cut for this…).

Both options should use the library or default file directory for storing the files - and not a cryptic `\storage\...` directory.

---

<div class="post-metadata">

### Author: ![bkleine](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/bkleine/32/428_2.png) [@bkleine](https://discourse.jabref.org/u/bkleine)
#### Post date: [April 10, 2017, 4:24pm UTC](https://discourse.jabref.org/t/possible-shortcut-to-add-pdf/567/3 "2017-04-10T16:24:37Z")

</div>

I tested it but still to many clicks to make when I dragged the pdf to the entry. You should be thinking about the ctrl alt f shortcut.

The right click is a much faster way. Recommended.

---

<div class="post-metadata">

### Author: ![Siedlerchr](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/siedlerchr/32/216_2.png) [@Siedlerchr](https://discourse.jabref.org/u/Siedlerchr)
#### Post date: [April 11, 2017, 4:13pm UTC](https://discourse.jabref.org/t/possible-shortcut-to-add-pdf/567/4 "2017-04-11T16:13:38Z")

</div>

You could also auto-import the pdf files, if they are named like the bibtex entry or named that an regex can find them:

[http://help.jabref.org/en/ExternalFiles#using-regular-expression-search-for-auto-linking](http://help.jabref.org/en/ExternalFiles#using-regular-expression-search-for-auto-linking)

---

<div class="post-metadata">

### Author: ![bkleine](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.jabref.org/bkleine/32/428_2.png) [@bkleine](https://discourse.jabref.org/u/bkleine)
#### Post date: [April 12, 2017, 6:50am UTC](https://discourse.jabref.org/t/possible-shortcut-to-add-pdf/567/5 "2017-04-12T06:50:29Z")

</div>

Very interesting: That will turn out to be complicated, I usually name the pdf with

shortformOfJournal\_volume\_firstpage\_firstAuthor\_title.

shortform of journal is not yet ( but I could adapt to ) the shorttitle without spaces, first author is minuscule and the title as copied from the website or jabref. Since I am not very good with reg expressions, I use them only sparely for general replacement in oo, could you provide a regex that I can test it.  
In the title ? mark are omitted, : are replaced with \_\_, and / are replaced with =, ?/: not allowed in file names.
