summaryrefslogtreecommitdiff
path: root/bog.el
AgeCommit message (Collapse)Author
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
2014-10-15Restrict keywords to built-in keywordsKyle Meyer
2014-10-15Add command bog-insert-heading-citekeyKyle Meyer
2014-10-15Use cache for bog-all{-heading}-citekeysKyle Meyer
2014-10-15bog-selection-method: Add docstringKyle Meyer
2014-10-15bog-root-directory: Simplify docstringKyle Meyer
2014-10-15bog-rename-staged-file-to-citekey: Fix docstringKyle Meyer
2014-10-15Replace some 'error' instances with 'user-error'Kyle Meyer
2014-06-05Note limitation of goto functionsKyle Meyer
2014-06-05Simplify bog-citekey-pKyle Meyer
2014-06-05Rename bog-citekey-only-p to bog-citekey-pKyle Meyer
Old `bog-citekey-p' was not being used.
2014-06-05Remove bog-citekey-functionKyle Meyer
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.
2014-05-28Add URL to commentaryKyle Meyer