emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@gmail.com>
To: Jean Louis <bugs@gnu.support>
Cc: "Dr. Arne Babenhauserheide" <arne_bab@web.de>,
	Texas Cyberthal <texas.cyberthal@gmail.com>,
	"emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Is Org really so simple?
Date: Sun, 29 Nov 2020 15:20:12 +0800	[thread overview]
Message-ID: <87r1oc634j.fsf@localhost> (raw)
In-Reply-To: <X79uD4uCNhRermdh@protected.rcdrun.com>


Jean Louis <bugs@gnu.support> writes:
> Rather the query that is made by the user should be remembered as such
> and be made available as a command, macro or similar that can be saved
> for later.

Users can explicitly define custom searches using
org-agenda-custom-commands. Though format of that variable is indeed
quite complex (similar to org-capture-templates).

> Example is when I search for TODO entries with special TODO kwd, then
> I may search for 3-4 keywords or 7-10 keywords during one
> day. Then there would be repetition to search again for those
> keywords. There is history value access in the minibuffer but that
> does not remember searches for the next Emacs session. Having
> rememberable customized searches for users would be useful.

Take a look at savehist-mode. Enabling it should save all the minibuffer
history by default. However, the history of your agenda searches will be
mixed with global minibuffer history. If you do not like this behaviour,
feel free to open feature request to make org-agenda keep history
separately. Then, savehist can be configured to save that across Emacs
sessions.

> Other issue with the Agenda window is that I cannot move from the
> minibuffer to other window, as if I wish to enter TODO I may wish in
> the same time to open some fiels and look for references while in the
> same time I am working with the Agenda options. It is hard for me to
> understand why it was made that way, could it be because of read-char
> approach? 

See my other reply. When you are actually entering TODO search, you can
switch from minibuffer to other windows as usual.

> - if text file is internally related to Joe Doe, then by clicking on
>   the text file such as Org file, I could automatically get various
>   hyperlinks to anything related to Joe Doe: Joe's emails list, Joe's
>   SMS list, Joe's contact information, I could click and initiate a
>   call with my mobile phone and just write notes without thinking on a
>   phone number, I could click in Org file and send SMS to Joe that
>   will be saved in computer without thinking on Joe's phone number, I
>   could see relatives of Joe and find his sister and again have all
>   the hyperlinks and relations to various other pieces of information
>   related to Joe.
>
> - and if I am in an Org file that has relation to other objects I
>   would not need to construct hyperlinks by hand, they would be or
>   could be constructed semi-automatically because the relation is
>   already known.

What you are describing appears to be easy to achieve in org files if
one wishes to:

some_file.org:

#+begin_src org
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec
hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam nisl,
tincidunt et, mattis eget, convallis nec, purus. Cum sociis natoque
# clicking on the link with bring you to Joe Doe's heading in Joe Doe.org
[[id:joe-id][Joe Doe]]
penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nulla
posuere. Donec vitae dolor. Nullam tristique diam non turpis. Cras
placerat accumsan nulla. Nullam rutrum. Nam vestibulum accumsan nisl.
#+end_src

Joe Doe.org:

#+begin_src org
# C-c C-o at the heading will show all the links and allow "clicking"
# one of them
# C-c C-j will allow free-hand selection of any sub-heading
# C-s will allow free-hand search across the file
,* Joe Doe :person:
:PROPERTIES:
:ID: joe-id
:END:

Contact information:
100 Street, City, Country
# Clicking the following link would start the phone/skype call
Tel: [[call:11111111111][call to 11111111111]]
[[sms:111111111][send sms to 111111111]]

,** SMS messages
,*** [[id:message1-id][Message 1]]
,*** [[id:message2-id][Message 2]]

,** Related
,*** [[id:antony-id][Antony Joe]]
,*** [[id:something][Something else]]
,*** [[id:yetmore][Yet another one]]
#+end_src

> When I work with the database and wish to edit something equivalent to
> a headline than the unique ID is generated automatically and I do not
> need to think of it. It is made by database design.

Note that not all users would want this by default. But you can simply
set org-id-link-to-org-use-id to 't and the unique ids will be created
every time you create a link to heading.

> Instead of customizing Emacs to insert IDs, customizing Org,
> customizing specific files,

It is an advantage for me. Not all the people need the specific workflow
you like, but it can thankfully be changed. Same as any other part of
Emacs.

> ... going over specific files to find which
> has unique ID which one does not have, having duplicates all over the
> place,

Why do you need to find it yourself? It is all handled by org.
Duplicates are rare and mostly happen in archives/trash according to my
experience.

> ... having pretty ugly and not meaningfull unique ID always shown
> on screen and more or less to a degree disturbing,

org-custom-properties ;) 

> ... instead of having
> them easily editable and changeable and error prone,

Agree. This is the price of keeping everything in plain text.

> ... instead of many
> actions related to that unique ID,

Sorry, I do not understand which actions you refer to.

> ... I have the above one line that does
> it for me as database does the work. I need not think any more and
> since I created that table I did not think until today about the
> unique IDs because they are very reliable, stable, forever, database
> is thinking for me, computer is taking job from me, and I am not
> working for my computer.

So, database clearly works better for your specific workflow. I
personally, do not mind text-based IDs all that much.

> - last USER who ever modified the heading, note, task, URL, anything
>   related to that ID, I can find that last user. Hyperlink could be
>   automatically generated button that points to on the fly generated
>   Org buffer showing me such modification.

I do not understand how you determine the user editing something
in the database. Or do I misunderstand?

> - There is DATE in the hlinks table, so it is possible to have date as
>   hyperlink button from where I can click to find other same date
>   related entries, or I could invoke list to find nearby dates.

FYI. Clicking on timestamps in org automatically invokes agenda view
listing all the headings containing timestamps from the same day.

>  That is my button. I never create those hyperlinks again. This
>  relates only to the tags, but hyperlinks can be for any other type
>  of relation.

FYI. When you have multiple tags in your heading, clicking on the tags
will automatically show agenda view listing all the headings with
matching tags.

> - the heading of meta Org can have a status defined by user anyhow and
>   I do not mean TODO/DONE but could be anything that changes later
>   actions of the user, or automatically generates hyperlinks.

The keywords in org are not limited to TODO/DONE. One can create
arbitrary set of keywords (representing the status) and even define them
locally in buffer (see "5.2.5 Setting up keywords for individual files"
in the manual).

> - possible EXPIRATION entry is there, it could be automatically
>   hyperlinked to other expired items

Generally, any database field can be represented in org using property
drawers (note that you can even set global property drawer at the top of
the org file before the first heading). For the expiration specifically,
there is even a package in org - org-expity ;)

> - HYPERLINK TYPE could be Message-ID to open up specific email
>   message, then I could get a hyperlink to open all Message-IDs by
>   that attribute

Similarly, you can hyperlink anything from org-mode. Emails are no
exception.

>  Discussion here is only there to give ideas to me and others to
>  lessen repetitive actions and help us in creating more useful
>  features.

I am not sure if it is going to be useful for creating features.
However, it indeed generated many insights how one can deal with
personal information management using org-mode.

Some things may not be very clear for an arbitrary reader though. For
example, it took me quite a lot of time to wrap my head around the idea
of using databases - I was thinking too much in terms of org-mode files.
Would you consider making a blog post showing your workflows in more
consistent way with examples and possibly gif demonstrations?

> What if hyperlink points to specific PDF file on the system? Why
> should I hard code in the sparse disconnected Org file a hyperlink to
> specific file on the file system? Maybe this file changes its
> position, then my hyperlink in Org file will not work, what if same
> hyperlink has been used 10, 20 or 50 times in other Org files?

I personally approach this by keeping my files as attachments to org
headings. Then, the files can be references simply by referencing the
relevant heading (equivalent of your record in the database).

> - open Dired
> - think where you wish to file
> - press key to choose what you thought like "LISP"
> - press enter

Have you ever been in scenario when you want to file something to
multiple locations?

> c a - I am editing author's name in free text. If author is in the
>       database I would choose author. Author's name can be hyperlinked to
>       find other entries under same author. No need to type it by hand.

Do you need to set the link to author every single time you create a new
entry authored/related by/to that author? Or do you somehow create the
link to the author automatically?

> T - I am editing tags freely, I can enter: emacs lisp todo review; and
>     those words would become tags. After ENTER I can immediately see
>     hyperlinks to those tags.

Are your tags also uniquely defined using relational database? Say, you
want to change some tag name for some reason. Will changing the name
automatically update all the tags in the entries marked with that tag?

> If the task is assigned to Communication Officer or senior who has to
> advise Joe how to do it, then on the next key press I could get
> various hyperlinks because there is CID-1 that relates to Joe Doe:
> 
> * Joe to purchase ticket in Kahama and travel on Saturday to Dar es Salaam  :CID-1:
> 
>   [Joe's files] [Initiate call] [SMS to Joe] [Send this task to Joe] [Plain email to Joe]

This is an interesting idea. You mentioned it in the past, but this
example made it much more clear.

Something similar is implemented in org-ref
(https://github.com/jkitchin/org-ref). Instead of adding links like
[Joe's files] directly into the text, org-ref shows various
possibilities when one clicks on the link itself - there is a completion
dialogue suggesting actions related to the link. Since org-ref is
specifically designed for referencing scientific articles, it implements
only a single set of suggestions like: (1) open pdf of the article; (2)
show notes; (3) email article to someone; (4) open url page of the
article, ...

> Because specific paragraph referencing is now not easily possible I am
> using database approach of editing chunks of the Org file where then
> any piece of Org can become referential.

It is actually possible to reference arbitrary chunks of text in org:

"4.2 Internal Links" section of the manual:

     1. one item
     2. <<target>>another item
     Here we refer to item [[target]].

Or using #+NAME: keyword

     #+NAME: My Target
     | a  | table      |
     |----+------------|
     | of | four cells |

Unfortunately, it only works inside a single file. Though I imagine that
org-id can be modified to support global referencing.

You can send a feature request about this if you are interested.

> Heading A can be one node, edited by user one time. It need not be
> duplicated for other file, rather only a pointer to Heading A can be
> included and the Heading then appears in a new Org file.

That would be a great feature indeed. This idea is actually getting a
lot of attention recently:
https://github.com/alphapapa/transclusion-in-emacs

Best,
Ihor




  reply	other threads:[~2020-11-29  7:17 UTC|newest]

Thread overview: 151+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-21  0:33 One vs many directories Texas Cyberthal
2020-11-21  5:13 ` Ihor Radchenko
2020-11-21  7:56   ` Jean Louis
2020-11-21  8:31     ` Texas Cyberthal
2020-11-21  9:29       ` Marvin ‘quintus’ Gülker
2020-11-21 10:21       ` Jean Louis
2020-11-21 15:00         ` Texas Cyberthal
2020-11-21 16:08           ` Jean Louis
2020-11-21 15:03     ` Dr. Arne Babenhauserheide
2020-11-21 15:45       ` Texas Cyberthal
2020-11-21 17:12         ` Jean Louis
2020-11-21 18:01           ` Texas Cyberthal
2020-11-21 18:57             ` Jean Louis
2020-11-22  6:36           ` Ihor Radchenko
2020-11-22  7:20             ` Jean Louis
2020-11-22  8:32               ` Ihor Radchenko
2020-11-22  8:56                 ` Jean Louis
2020-11-21 22:36         ` Dr. Arne Babenhauserheide
     [not found]           ` <CAMUm491Psp0u5JKyGROP6M=UfAcvOLTtOKAD1rOearV+KxgYdQ@mail.gmail.com>
     [not found]             ` <87r1olfvh4.fsf@web.de>
2020-11-23  9:50               ` Texas Cyberthal
2020-11-23 13:17                 ` Jean Louis
2020-11-23 14:16                   ` Ihor Radchenko
2020-11-23 18:08                     ` Is Org really so simple? Jean Louis
2020-11-23 20:41                       ` Tom Gillespie
2020-11-24  5:06                         ` Jean Louis
2020-11-26  3:08                       ` Ihor Radchenko
2020-11-26  8:57                         ` Jean Louis
2020-11-29  7:20                           ` Ihor Radchenko [this message]
2020-11-29 16:22                             ` Jean Louis
2020-11-26 18:07                         ` Dr. Arne Babenhauserheide
2020-11-26 23:09                       ` David Rogers
2020-11-27  0:43                         ` Tim Cross
2020-11-27  2:56                         ` Jean Louis
2020-11-23 16:07                   ` One vs many directories Texas Cyberthal
2020-11-23 19:20                     ` Jean Louis
2020-11-24  7:55                       ` Ihor Radchenko
2020-11-28 16:16                         ` Jean Louis
2020-11-28 16:33                           ` Christopher Dimech
2020-11-25  6:57                       ` Texas Cyberthal
2020-11-25  9:51                         ` Jean Louis
2020-11-25 10:39                           ` Texas Cyberthal
2020-11-25 11:02                             ` Jean Louis
2020-11-26 16:04                               ` Texas Cyberthal
2020-11-26 17:31                                 ` Jean Louis
2020-11-27  9:00                                   ` Texas Cyberthal
2020-11-27 10:45                                     ` Jean Louis
2020-11-28  8:18                                       ` Texas Cyberthal
2020-11-28 10:09                                         ` Jean Louis
2020-11-29  6:18                                           ` Texas Cyberthal
2020-11-29  6:53                                             ` Jean Louis
2020-11-30  7:35                                               ` Texas Cyberthal
2020-11-30  7:50                                                 ` Ihor Radchenko
2020-11-30 10:25                                                   ` Texas Cyberthal
2020-11-30 10:57                                                 ` Jean Louis
2020-11-30 12:27                                                   ` Ihor Radchenko
2020-11-30 12:28                                                   ` Ihor Radchenko
2020-11-30 19:00                                                     ` Jean Louis
2020-12-02  2:56                                                       ` Ihor Radchenko
2020-12-02  6:14                                                         ` Jean Louis
2020-12-02  7:23                                                           ` Ihor Radchenko
2020-11-21 16:55       ` Jean Louis
2020-11-21 22:48         ` Dr. Arne Babenhauserheide
2020-11-22  0:48           ` Jean Louis
2020-11-22  2:47             ` briangpowell
2020-11-22 17:55               ` Jean Louis
2020-11-21  6:12 ` Palak Mathur
2020-11-21  9:04   ` Jean Louis
2020-11-21  6:36 ` Jean Louis
2020-11-21  7:17   ` Texas Cyberthal
2020-11-21  9:53     ` Jean Louis
2020-11-21 10:15       ` Tim Cross
2020-11-21 11:18         ` Jean Louis
2020-11-21 14:44       ` Texas Cyberthal
2020-11-21 15:45         ` Jean Louis
2020-11-23  5:40     ` Ihor Radchenko
2020-11-24  9:00       ` Jean Louis
2020-11-24  9:45         ` Eric S Fraga
2020-11-24  9:51           ` Jean Louis
2020-11-24 11:42             ` Eric S Fraga
2020-11-24 13:13               ` Diego Zamboni
2020-11-24 13:49                 ` Jean Louis
2020-11-24 17:02                 ` Jean Louis
2020-11-24 18:50                   ` Dr. Arne Babenhauserheide
2020-11-24 18:58                     ` Jean Louis
2020-11-25  6:39                       ` Tim Cross
2020-11-25 12:38                         ` Local variables insecurities - " Jean Louis
2020-11-25 13:05                           ` Eric S Fraga
2020-11-25 13:13                             ` Jean Louis
2020-11-25 13:58                               ` Eric S Fraga
2020-11-25 14:07                                 ` Jean Louis
2020-11-25 20:54                                   ` Tim Cross
2020-11-25 22:09                                     ` Jean Louis
2020-11-26  2:06                                       ` Tom Gillespie
2020-11-26  5:06                                         ` Jean Louis
2020-11-26  5:31                                         ` Jean Louis
2020-11-26  6:18                                           ` Tom Gillespie
2020-11-26  9:10                                             ` Jean Louis
2020-11-26 11:44                                           ` Detlef Steuer
2020-11-26 12:06                                             ` Jean Louis
2020-11-26  5:34                                         ` Greg Minshall
2020-11-26  5:49                                           ` Jean Louis
2020-11-26  8:39                             ` Christian Moe
2020-11-25  8:10                       ` Dr. Arne Babenhauserheide
2020-11-25  8:36                         ` Local variables liberties Jean Louis
2020-11-24 20:11                     ` One vs many directories Tom Gillespie
2020-11-24 20:39                       ` Tim Cross
2020-11-25  4:54                         ` Jean Louis
2020-11-25  5:54                           ` Tim Cross
2020-11-25  7:01                             ` Local variables issue - " Jean Louis
2020-11-25  5:06                         ` Jean Louis
2020-11-25  7:00                           ` Tim Cross
2020-11-25  8:23                             ` Security issues in Emacs packages Jean Louis
2020-11-25  9:07                               ` tomas
2020-11-25  9:26                                 ` Jean Louis
2020-11-25 10:41                                   ` tomas
2020-11-25 22:46                               ` Tim Cross
2020-11-25 23:07                                 ` Jean Louis
2020-11-25 23:39                                   ` Tim Cross
2020-11-26  5:24                                     ` Jean Louis
2020-11-26  6:46                                       ` Tim Cross
2020-11-26  5:29                                 ` Greg Minshall
2020-11-26  5:53                                   ` Jean Louis
2020-11-26  6:35                                   ` Tim Cross
2020-11-26 12:27                                     ` Greg Minshall
2020-11-26 22:20                                       ` Tim Cross
2020-11-27  2:19                                         ` Jean Louis
2020-11-27  4:42                                         ` Greg Minshall
2020-11-25  4:44                       ` One vs many directories Jean Louis
2020-11-25 10:19           ` org-sbe to automate some source block executions Jean Louis
2020-11-25 11:39             ` Ihor Radchenko
2020-11-25 15:06               ` Jean Louis
2020-11-25 11:46           ` One vs many directories Jean Louis
2020-11-25 13:07             ` Eric S Fraga
2020-11-25 13:14               ` Jean Louis
2020-11-25 13:12             ` Ihor Radchenko
2020-11-25 13:32               ` Jean Louis
2020-11-24 18:47         ` Dr. Arne Babenhauserheide
2020-11-24 18:54           ` Jean Louis
2020-11-25  8:14             ` Dr. Arne Babenhauserheide
2020-11-25  8:46               ` Jean Louis
2020-11-25 11:46                 ` Ihor Radchenko
2020-11-26 12:47                   ` Jean Louis
2020-11-26 13:27                     ` Ihor Radchenko
2020-12-02 10:12                       ` Jean Louis
2020-12-02  9:49                   ` Jean Louis
2020-11-26  3:47           ` Ihor Radchenko
2020-11-26  3:32         ` Ihor Radchenko
2020-11-26 11:58           ` Jean Louis
2020-11-29  7:56             ` Ihor Radchenko
2020-11-29 17:57               ` Jean Louis
2020-11-21 13:41 ` Jonathan McHugh
2020-11-21 14:04   ` Jean Louis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1oc634j.fsf@localhost \
    --to=yantar92@gmail.com \
    --cc=arne_bab@web.de \
    --cc=bugs@gnu.support \
    --cc=emacs-orgmode@gnu.org \
    --cc=texas.cyberthal@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).