Skip to content
This repository was archived by the owner on Jan 26, 2021. It is now read-only.

Add roam-link company completion - #15

Open
alan-carroll wants to merge 8 commits into
org-roam:masterfrom
alan-carroll:feat/roam-link
Open

Add roam-link company completion#15
alan-carroll wants to merge 8 commits into
org-roam:masterfrom
alan-carroll:feat/roam-link

Conversation

@alan-carroll

Copy link
Copy Markdown

For org-roam/org-roam#592

  • Add conditional to company-org-roam--get-candidates to check if
    completion is for a roam-link or not.
    If completion is for a roam-link, include in-buffer candidates for
    TITLEs that are not part of the org-roam database yet
  • Add conditional to company-org-roam--post-completion to check if
    completion is for a roam-link or not.
    If completion is for a roam-link either insert plain
    TITLE (completion inside [[roam:]] syntax) or insert complete roam
    link (org-roam-use-roam-links is t)

- Add conditional to company-org-roam--get-candidates to check if
  completion is for a roam-link or not.
  If completion is for a roam-link, include in-buffer candidates for
  TITLEs that are not part of the org-roam database yet
- Add conditional to company-org-roam--post-completion to check if
  completion is for a roam-link or not.
  If completion is for a roam-link either insert plain
  TITLE (completion inside [[roam:]] syntax) or insert complete roam
  link (org-roam-use-roam-links is t)

@jethrokuan jethrokuan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM mostly, just needs the other PR cleaned up first.

Comment thread company-org-roam.el Outdated
alan-carroll and others added 2 commits May 11, 2020 08:54
Co-authored-by: Jethro Kuan <jethrokuan95@gmail.com>
Comment thread company-org-roam.el Outdated
(if (or (string= "roam" (org-element-property :type (org-element-context)))
org-roam-use-roam-links)
(if (or org-roam-use-roam-links
(string= "roam" (org-element-property :type (org-element-context))))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the indentation looks a bit off here, my suggestion was typed in github, so I didn't get it right 😅

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be fixed in the last commit 😉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants