Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
bog-goto-citekey-heading-in-buffer gives preference to citekeys as
heading titles over citekeys as properties.
The order of preference for bog-goto-citekey-heading-in-notes is the
citekey as a heading title in the current buffer, the citekey as a
property in the current buffer, the citekey as heading title in notes,
and, finally, the citekey as property in notes.
|
|
Before, bog-create-combined-bib only collected citekeys from a single
buffer. Extend it so that it also works with marked files in Dired.
In addition
- Rename combined bib buffer so that it includes "Bog" in the name.
- Offer to skip missing bib files instead of failing.
- Remove bog-collect-references and bog-collect-unique-references, which
overlap with the newer bog-citekeys-in-buffer [1] and should have been
removed when that function was added.
[1] ce74785920d6234072eb2ebef63bd140a25534c2
|
|
|
|
|
|
|
|
Limit the characters that are allowed in the citekey to letters, digits,
underscores, and hyphens. This allows the citekey to be treated as a
word (temporarily expanding word constituents to include underscore and
hyphen), as opposed to explicitly specifying the characters that can
come before a citekey.
|
|
In general, 'notes' are used to refer to Org file in
`bog-note-directory'. Rename `bog-citekey-from-notes' (and related
selection functions), which refer to the context around the point in an
Org file, not the collection of note files.
|
|
|
|
|
|
|
|
|
|
- Split into two functions instead of having no-sort argument.
- Use push instead of add-to-list.
|
|
|
|
Because bog-citekey-at-point used "(thing-at-point 'word)", it didn't
handle hyphenated citekeys properly.
Now the function relies on a set of characters that are allowed to
precede citekeys.
|
|
Old `bog-citekey-p' was not being used.
|
|
Before, citekeys could be listed as either heading titles or properties,
but these two styles could not be mixed. Now, they can, and the
following method is used to find the citekey.
1. Take the citekey from title of the current heading.
2. Take the citekey from the property of the current heading.
3. If no citekey found, go to parent heading and repeat.
The process stops as soon as a citekey is found or a top-level heading
is reached.
|
|
|
|
|
|
|
|
|
|
|
|
When 4dfcc52 changed remoed the path from choices, this should have been
kept as the full path.
|
|
This should have been changed with 9f58e9b.
|
|
`bog-citekey-action' generalizes the common setup (citekey selection
from notes or from user completion) of the citekey functions, but it
doesn't allow much flexibility for functions to handle citekey selection
differently. Replacing this with `bog-citekey-from-notes' shares the
citekey selection from notes but doesn't couple this to the user
selection.
|
|
`bog-citekey-action' should not try to select a citekey from the note
context when ASK-FUNC returns non-nil.
|
|
|
|
Now citekeys can be taken either from properties or from headings. This
provides greater compatibility with org-bibtex.el.
|
|
|
|
New name, `bog-citekey-from-heading-title', provides a clearer
indication of what it is doing.
|
|
|
|
|
|
|