-
-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Enable citation autocomplete on mobile by adding citation dictionary export type #2672
Comments
Isn't this something that can be automated on the obsidian side? I'm particularly unkeen about doing any gui work for this, I really don't like UI work, and especially not in the transition period from Zotero 6 to 7. |
I think ignore/delete the GUI comment - that could always be a future request as it is certainly not necessary. The format could just be hardcoded as it would suit most users. Also, this request should not take precedence over Z7 work! It may be possible to automate on the Obsidian side but:
So I think it is more elegant to have it located in BB as BB has the automatic export code. Perhaps see if anyone else is interested in this feature though? |
Hi, just chipping in since this is about the script I made. Regarding this point ☝️ Without a way to customize the format of the citation dictionary to autocomplete from, this is only really relevant to Obsidian users, or even more specifically, Various complements plugin users, since the citation dictionary is made according to the syntax of this plugin. Anyway, automating the running of this script (at least on Obsidian upstart) is something that should be fairly simple to achieve in Obsidian, and something I intend to work on given the uptake of this workflow. However, as is, this feature request is still valuable, since the script can only run in a desktop environment, as mentioned here:
So of course, having a direct BBT option would simplify things. But again, this is very platform specific. Nevertheless, there are very few options that allow bibtex / pandoc citations on iPads (I've looked hard), so this workflow has value in that light. The limiting factor of the script is the |
OK, but so does Zotero + BBT. Something is running on the desktop in any case. I'm trying to think of something that would generalize, because I do not want to go the path of adding bespoke translators + auto-export. I can't run most Zotero translators as auto-exports, because auto-exports happen in a limited emulation of the environment Zotero translators expect. Plus there would have to be changes to the prefs GUI to manage them. I'm open to lending a hand here, I just haven't found the right solution yet. |
Right, so not running on mobile is only really a problem if you:
Of course, since the script is just javascript, it could be run independently of Obsidian (with some minor modifications), which could also circumvent the problem. Either running on a timer, or based on file changes to the bibliography. I don't have experience with makefiles, but perhaps that is an option for file-change dependent running.
Doesn't seem like you could generalize this without going down that path, as far as I can tell. |
I'm not too worried about the path, just the part that generates the content. |
I'm not sure what you mean by that, given what you wrote before, which seems to conflict with this sentiment. But anyway, I've documented a simple way to automatically update the citation dictionary every time Obsidian opens in the linked forum post. |
Yeah I think you're right. I'd still need to do GUI work for management of the auto-exports, and it would require something special in the export dialog. |
Debug log ID
N/A
What happened?
Autocomplete of citations on mobile devices is a very welcome feature for those of us who use our iPads for writing as well as reading. However, there is a lack of software support for this. Obsidian user u/Feralflora has developed a workflow using Better Bibtex and Obsidian to accomplish this:
Mobile citation autocompletion guide using Quickadd and Various Complements
This workflow involves outputting a BibTeX file then processing it using an Obsidian QuickAdd template to produce a citation dictionary which Various Complements accesses on mobile. This is a real advance for those of us using our iPads to write. The workflow can be partially automated by using Better Bibtex's automatic export feature, but the QuickAdd template still has to be manually run whenever the database changes.
A more elegant solution would be for Better Bibtex to output the citation dictionary directly. The custom dictionary format is very simple:
`The data should be in a format like this:
inserted text, description, alias
In our case, we want to insert the citekey, and use the title as both description and alias, like so:
citekey, title, title
Yes, title twice. Why? The first instance of title is only for display in the dropdown, while the second one is a searchable alias. With this format, we can search for and autocomplete citekeys using either the citekey or the title.`
Would it be possible to add this feature to Better Bibtex? It is likely that other mobile software could be configured to use a citation dictionary, although the format might vary. A full implementation of this might use a template or GUI to configure the dictionary output, but a quick and dirty implementation to start would also be nice :-)
The text was updated successfully, but these errors were encountered: