emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: Alternatives or org-capture?
       [not found] <0d5b4eb4-5953-4a5a-b208-80ab031a642f@gmail.com>
@ 2022-07-13 22:12 ` Christopher M. Miles
  0 siblings, 0 replies; 6+ messages in thread
From: Christopher M. Miles @ 2022-07-13 22:12 UTC (permalink / raw)
  To: ypuntot; +Cc: numbchild, Org Mode

[-- Attachment #1: Type: text/plain, Size: 2793 bytes --]


ypuntot <ypuntot@gmail.com> writes:

> Thanks for your template! 
> Maybe it would be nice to have it on the MELPA documentation? 
> I couldn't find other documentation. 
>

org-capture template is just a personal usage scene, people will want to
define their own org-capture template. So no need to add this to documentation.

> I tried to reach you via email, I don't know if it's possible to export :ORG: property to vcard 3.0. I am starting to use
> your maintained package and I would like to use it the best way possible. 
>

If you want to export contacts has only specific property, you might
want to try org mode sparse tree filtering. I'm not sure whether it
works as expected for exporting.

> Best regards! 
>
>  I'm currently maintaining org-contacts (well, inactively) 
>
>  Here is my own org-contacts' org-capture template, maybe you want to check out 
>  as reference: 
>
>  #+begin_src emacs-lisp 
>  (add-to-list 'org-capture-templates 
>                 `("C" ,(format "%s\tContacts" 
>                                (all-the-icons-material "contacts" :face 
>  'all-the-icons-blue-alt)) 
>                   entry (file (lambda () (car org-contacts-files))) 
>                   "* %^{NAME} 
>  :PROPERTIES: 
>  :DIR:  %\\1 
>  :DATE: %^U 
>  :AVATAR: %^{Avatar} 
>  :NICK: %^{Nick} 
>  :NAME(Chinese): %^{Name(Chinese)} 
>  :NAME(English): %^{Name(English)} 
>  :GENDER: %^{Gender|Transgender|Male|Female} 
>  :RELATIONSHIP: %^{Relationship|Internet|Meet|Friend|Good Friend|Boy Friend|Girl 
>  Friend|Workmate|Classmate|Schoolmate} 
>  :FIRST-MEET: %^U  %^{How is the first-time meet? when? where? how?} 
>  :MOBILE: %^{Mobile Phone} 
>  :EMAIL: %^{Email} 
>  :GitHub: %^{GitHub} 
>  :ADDRESS(home): %^{address(home)} 
>  :ADDRESS(live): %^{address(live)} 
>  :LANGUAGES: %^{Languages|Chinese|Chinese, English|English|Japanese|Korean} 
>  :EDUCATION: %^{Education} 
>  :School(university): 
>  :SKILLS: %^{Skills|Programming|Economy} 
>  :Programming-Skills: %^{Programming Skills|Emacs|Web|Computer System|Cloud 
>  Computation} 
>  :Programming-Languages: %^{Programming Languages|LISP|Common Lisp|Clojure|Emacs 
>  Lisp|Java|C/C++|Python|Ruby|PHP} 
>  :OCCUPATION: %^{Occupation|Programmer|Freelancer|Businessman|Servant|Arter} 
>  :HOBBIES: %^{Hobbies|Reading|Music|Movie|Travel} 
>  :END:" 
>                   :empty-lines 0 
>                   :jump-to-captured t) 
>                 :append) 
>  #+end_src 
>
>  -- 
>  [ stardiviner ] 


-- 
[ stardiviner ]
       I try to make every word tell the meaning that I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Alternatives or org-capture?
  2022-07-13 21:07 ypuntot
@ 2022-07-14 12:42 ` Greg Minshall
  0 siblings, 0 replies; 6+ messages in thread
From: Greg Minshall @ 2022-07-14 12:42 UTC (permalink / raw)
  To: ypuntot; +Cc: theophilusx, Org-mode

ypuntot,

by the way, i use =doct= to express org-capture templates:
----
https://github.com/progfolio/doct
----

in case that might seem more "intuitive" for you.

cheers, Greg


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Alternatives or org-capture?
@ 2022-07-13 21:07 ypuntot
  2022-07-14 12:42 ` Greg Minshall
  0 siblings, 1 reply; 6+ messages in thread
From: ypuntot @ 2022-07-13 21:07 UTC (permalink / raw)
  To: theophilusx, Org-mode

[-- Attachment #1: Type: text/plain, Size: 129 bytes --]

Thanks, Tim!
I will try it.


> Recommend you get to know/understand org-capture first and the rest will
> become much clearer.


[-- Attachment #2: Type: text/html, Size: 698 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Alternatives or org-capture?
  2022-07-11 21:20 ` Tim Cross
@ 2022-07-12  2:15   ` Christopher M. Miles
  0 siblings, 0 replies; 6+ messages in thread
From: Christopher M. Miles @ 2022-07-12  2:15 UTC (permalink / raw)
  To: Tim Cross; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1848 bytes --]


I'm currently maintaining org-contacts (well, inactively)

Here is my own org-contacts' org-capture template, maybe you want to check out as reference:

#+begin_src emacs-lisp
(add-to-list 'org-capture-templates
               `("C" ,(format "%s\tContacts"
                              (all-the-icons-material "contacts" :face 'all-the-icons-blue-alt))
                 entry (file (lambda () (car org-contacts-files)))
                 "* %^{NAME}
:PROPERTIES:
:DIR:  %\\1
:DATE: %^U
:AVATAR: %^{Avatar}
:NICK: %^{Nick}
:NAME(Chinese): %^{Name(Chinese)}
:NAME(English): %^{Name(English)}
:GENDER: %^{Gender|Transgender|Male|Female}
:RELATIONSHIP: %^{Relationship|Internet|Meet|Friend|Good Friend|Boy Friend|Girl Friend|Workmate|Classmate|Schoolmate}
:FIRST-MEET: %^U  %^{How is the first-time meet? when? where? how?}
:MOBILE: %^{Mobile Phone}
:EMAIL: %^{Email}
:GitHub: %^{GitHub}
:ADDRESS(home): %^{address(home)}
:ADDRESS(live): %^{address(live)}
:LANGUAGES: %^{Languages|Chinese|Chinese, English|English|Japanese|Korean}
:EDUCATION: %^{Education}
:School(university):
:SKILLS: %^{Skills|Programming|Economy}
:Programming-Skills: %^{Programming Skills|Emacs|Web|Computer System|Cloud Computation}
:Programming-Languages: %^{Programming Languages|LISP|Common Lisp|Clojure|Emacs Lisp|Java|C/C++|Python|Ruby|PHP}
:OCCUPATION: %^{Occupation|Programmer|Freelancer|Businessman|Servant|Arter}
:HOBBIES: %^{Hobbies|Reading|Music|Movie|Travel}
:END:"
                 :empty-lines 0
                 :jump-to-captured t)
               :append)
#+end_src


-- 
[ stardiviner ]
       I try to make every word tell the meaning that I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Alternatives or org-capture?
  2022-07-11 18:08 ypuntot
@ 2022-07-11 21:20 ` Tim Cross
  2022-07-12  2:15   ` Christopher M. Miles
  0 siblings, 1 reply; 6+ messages in thread
From: Tim Cross @ 2022-07-11 21:20 UTC (permalink / raw)
  To: emacs-orgmode


ypuntot <ypuntot@gmail.com> writes:

> I'm going to start using org-contacts. And, with that, I would like to use org-capture or yankpad. Which one would you recommend using?
> I have been trying to use org-capture but it doesn't seem too intuitive for me :$ 
>
> I saved time ago a tutorial for yankpad, and it looked nice. 
> Does org-capture deserve more effort or could yankpad be more friendly and as useful? 
>
> Best regards 
>

The first thing to note is that org-contacts is a contrib package and
not actually part of org itself.

Where org-contacts can be really useful is when you use Emacs to read
your email. For most Emacs based MUAs, you will be able to configure the
MUA to use org-contacts to collect contact information and for
auto-completion of addresses etc. For example, the mu4e manual has a
short page about using org-contacts with mu4e.

I don't know yankpad, but from a quick look it seems to only be a basic
template system. Org capture is not quite the same - it is functionality
used to capture data and store it in an org file in a specific
format. Where it is really powerful is through its template expansion capability
which will be automatically filled in with data extracted from
the source buffer you are in when you run it. For example, if your using
a MUA which has org support, you can have an org-contgacts template
which will be automatically filled in with contact data from the current
message your viewing, you can have the message-id automatically added
and even have a permanent link to the email as well as other meta data
like date/time etc.

If your going to be using org mode a bit, I strongly recommend you spend
the time to get to understand org-capture. Because it is built into org
mode it is an integral part of many org mode based workflows. The
org-contrib package uses it to streamline collection of contact data and
it is a core part of how org-contacts works. If your going to use
something else like yankpad, you may as well not worry aboutg
org-contacts and just roll your own using yankpad and an org file as
your contacts database.  

As to documentation for org-contacts - there isn't much I could
find. The best source is really the source code, particularly the
'commentry' section. The ELPA package description also has some
information. and there are a few blogs, video etc which you can use to
piece things together.

Recommend you get to know/understand org-capture first and the rest will
become much clearer.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Alternatives or org-capture?
@ 2022-07-11 18:08 ypuntot
  2022-07-11 21:20 ` Tim Cross
  0 siblings, 1 reply; 6+ messages in thread
From: ypuntot @ 2022-07-11 18:08 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 461 bytes --]

I'm going to start using org-contacts. And, with that, I would like to use org-capture or yankpad. Which one would you recommend using? I have been trying to use org-capture but it doesn't seem too intuitive for me :$

I saved time ago a tutorial for yankpad, and it looked nice.
Does org-capture deserve more effort or could yankpad be more friendly and as useful?


Best regards

NB: I can't find the documentation for org-contacts, not sure if it's just me.

[-- Attachment #2: Type: text/html, Size: 1006 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-14 12:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <0d5b4eb4-5953-4a5a-b208-80ab031a642f@gmail.com>
2022-07-13 22:12 ` Alternatives or org-capture? Christopher M. Miles
2022-07-13 21:07 ypuntot
2022-07-14 12:42 ` Greg Minshall
  -- strict thread matches above, loose matches on Subject: below --
2022-07-11 18:08 ypuntot
2022-07-11 21:20 ` Tim Cross
2022-07-12  2:15   ` Christopher M. Miles

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).