summaryrefslogtreecommitdiff
path: root/bog.el
AgeCommit message (Collapse)Author
2015-01-19bog-list-orphan-citekeys: Raise bufferKyle Meyer
2015-01-19bog-create-combined-bib: Use pop-to-bufferKyle Meyer
2015-01-19Use erase-buffer instead of delete-regionKyle Meyer
2015-01-11Decouple Bog search from Org agendaKyle Meyer
Previously, using bog-search-notes and bog-search-notes-for-citekey clobbered the existing agenda buffer. Make these commands output to a Bog-specific buffer and take care to restore org-lprops after executing. Unfortunately, this still relies heavily on Org agenda internals, but I don't see an obvious way around this.
2015-01-11Rewrite bog-all-citekeysKyle Meyer
2015-01-11Reword some docstringsKyle Meyer
2014-12-13Extend goto functions to support citekey propertiesKyle Meyer
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.
2014-12-13Support creating combined bib from multiple filesKyle Meyer
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
2014-12-13Prefer 'citekeys' to 'refs' as variable nameKyle Meyer
2014-12-11Add function to get citekeys in bufferKyle Meyer
2014-12-11bog-heading-citekeys-in-buffer: Fix docstringKyle Meyer
2014-12-11Add command to list orphan citekeysKyle Meyer
2014-12-11bog-heading-citekeys-in-file: Remove unneeded setqKyle Meyer
2014-12-11bog-citekeys-in-file: Don't load Org modeKyle Meyer
2014-12-11Make citekey groups for web search customizableKyle Meyer
2014-12-11Add commands bog-{next,previous}-non-heading-citekeyKyle Meyer
2014-12-11Fix specification of defcustom variablesKyle Meyer
- Fix a few places where the group or type was missing. - Use 'directory' or 'file' instead of 'string' when appropriate.
2014-12-11Clarify bog-citekey-file-name-separators docstringKyle Meyer
2014-12-11Anchor and restrict citekey regular expressionKyle Meyer
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.
2014-12-10Modify bog-citekey-format docstringKyle Meyer
2014-12-10Remove leading digits from bog-citekey-formatKyle Meyer
I originally allowed leading digits to account for a case where a consortium's name started with a number. However, looking back at this, I don't think it makes sense to change the default format for such a rare case.
2014-12-10Make all citekey searches case-sensitiveKyle Meyer
While this was implied in the docstring of `bog-citekey-format', it wasn't actually true.
2014-12-09bog-citekey-p: Return string-match-p result directlyKyle Meyer
2014-12-09Replace some when's with and'sKyle Meyer
2014-12-08Avoid ambiguous use of 'notes'Kyle Meyer
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.
2014-12-08Refer to notes consistentlyKyle Meyer
2014-12-07Use '/' after directory namesKyle Meyer
2014-12-07Update commander for upstream changesKyle Meyer
See Projectile commit 2fd7ec96465aea135ff9017ce7f2001f870f7765.
2014-12-07Remove invisible/autosave files from notes listKyle Meyer
2014-12-07bog-notes-files: Correct docstringKyle Meyer
2014-12-07Follow Emacs convention for spacing after periodsKyle Meyer
2014-11-24Don't believe org-up-heading-safe (yet)Kyle Meyer
In Org mode 8.2.10 (built-in version with Emacs 24.4), this function will still throw an error if it is before the first heading. This was fixed in Org mode commit 9ba9f916e87297d863c197cb87199adbb39da894.
2014-11-23Prefer current buffer when finding citekey headingKyle Meyer
Several functions use `org-find-exact-heading-in-directory' to find the location of a citekey heading. However, when called with a citekey at point, it is likely that the citekey is in the current file (assuming files are arranged by general topics), so first check the current buffer and, only if it isn't found there, search all Org files in `bog-notes-directory'.
2014-11-23Update copyright dateKyle Meyer
2014-11-23Add command to open first citekey heading linkKyle Meyer
2014-11-23Fix inconsistent citekey highlightingKyle Meyer
With the previous approach, some citekeys weren't highlighted until text near them was changed. I'm still not certain why this is, but using `org-font-lock-hook' seems to fix it.
2014-11-23Use org-link face as base of citekey faceKyle Meyer
2014-11-22Generate docstring for citekey selection functionsKyle Meyer
2014-11-22bog-citekey-as-search-url: Add argument to dosctringKyle Meyer
2014-11-22bog-citekey-file-name-separators: Reword docstringKyle Meyer
2014-11-22bog-citekey-from-heading: Correct docstringKyle Meyer
2014-11-22bog-selection-method: Complete docstringKyle Meyer
2014-11-22bog-find-citekey-bib-func: Reword docstringKyle Meyer
2014-11-22bog-find-citekey-bib: Expand docstringKyle Meyer
2014-11-22Mark bog-prepare-bib-file as an internal functionKyle Meyer
2014-11-22Give clearer names to helper functionsKyle Meyer
Previously, the names were minor variants of the corresponding interactive function names. Rename to make it clear which functions are internal helper functions.
2014-11-22Add some missing docstringsKyle Meyer
2014-11-22Remove an unhelpful let bindingKyle Meyer
2014-11-12Restructure search functionsKyle Meyer
Use `bog-search-notes' in `bog-search-notes-for-citekey' instead of repeating logic. The STRING argument added to `bog-search-notes' follows `org-search-view'.
2014-11-12bog-search-notes-for-citekey: Use fallback promptKyle Meyer