summaryrefslogtreecommitdiff
path: root/bog.el
AgeCommit message (Collapse)Author
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
2014-11-12Shorten commentaryKyle Meyer
2014-11-11Stop quoting lambdasKyle Meyer
2014-11-01Use org-before-first-heading-pKyle Meyer
2014-11-01Remove some useless let bindingsKyle Meyer
2014-11-01Replace some cond instances with caseKyle Meyer
2014-11-01bog-citekey-from-property: Cosmetic changesKyle Meyer
2014-11-01bog-citekeys-in-file: Replace add-to-list with pushKyle Meyer
2014-11-01Rework citekey collectionKyle Meyer
- Split into two functions instead of having no-sort argument. - Use push instead of add-to-list.
2014-11-01Rewrite some functions to avoid find-file-noselectKyle Meyer
Several functions relied on find-file-noselect. I hadn't realized that it's a bad idea to use this non-interactively [1]. [1] http://emacs.stackexchange.com/questions/145/what-are-some-built-in-packages-with-nice-source-code/151#151
2014-10-29Fix bog-citekey-at-point for hyphenated citekeysKyle Meyer
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.
2014-10-16bog-citekey-from-heading-title: Cover edge caseKyle Meyer
Don't throw error if point is before first heading.
2014-10-16Use org-with-wide-buffer macroKyle Meyer