* Remembrance Agents @ 2020-11-28 16:59 Gerardo Moro 2020-11-28 17:08 ` George Mauer 2020-11-28 18:26 ` Jean Louis 0 siblings, 2 replies; 33+ messages in thread From: Gerardo Moro @ 2020-11-28 16:59 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 101 bytes --] Is there currently any (good) implementation of the idea of the Remembrance Agents in Emacs? Thanks! [-- Attachment #2: Type: text/html, Size: 132 bytes --] ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-28 16:59 Remembrance Agents Gerardo Moro @ 2020-11-28 17:08 ` George Mauer 2020-11-28 18:26 ` Jean Louis 1 sibling, 0 replies; 33+ messages in thread From: George Mauer @ 2020-11-28 17:08 UTC (permalink / raw) To: Gerardo Moro; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 477 bytes --] As far as I know the only thing remotely like that is the org-roam buffer when you are in a file managed by org-roam. This would be simply a linkable list of other roam notes which reference the currently viewed note So not exactly what you're looking for I suspect but a similarish concept On Sat, Nov 28, 2020, 11:01 Gerardo Moro <gerardomoro37@gmail.com> wrote: > Is there currently any (good) implementation of the idea of the > Remembrance Agents in Emacs? > Thanks! > [-- Attachment #2: Type: text/html, Size: 816 bytes --] ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-28 16:59 Remembrance Agents Gerardo Moro 2020-11-28 17:08 ` George Mauer @ 2020-11-28 18:26 ` Jean Louis 2020-11-29 13:07 ` Gerardo Moro 1 sibling, 1 reply; 33+ messages in thread From: Jean Louis @ 2020-11-28 18:26 UTC (permalink / raw) To: Gerardo Moro; +Cc: emacs-orgmode * Gerardo Moro <gerardomoro37@gmail.com> [2020-11-28 20:02]: > Is there currently any (good) implementation of the idea of the Remembrance > Agents in Emacs? According to this document: Hyperlink: https://alumni.media.mit.edu/~rhodes/Papers/remembrance.html the implementation was running already in Emacs! There is more to it: https://www.emacswiki.org/emacs/RemembranceAgents And picture: https://alumni.media.mit.edu/~rhodes/Papers/ra.small.gif As I am developing HyperScope that is to augment the knowledge, at least for those objects displayed within HyperScope but also in other context or modes I could invoke something similar as Speedbar on the side or in separate window that would show all relations to specific object. It could also look from time to time into what text is user writing and search relevant terms or tags to display such as hyperlinks that are accessible on the side. The more information user enters into the database and the more tags and relations have been created the better the relevance. In the context of web applications providing CRM Customer Relationship Management there are always various related objects hyperlinked on the same page. Same is valid for ERM or Enterprise Resource Management and similar systems as they are already based on the relational databases. Automatic hypertexting is another good feature that may be implemented within Emacs for any relevant terms. ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-28 18:26 ` Jean Louis @ 2020-11-29 13:07 ` Gerardo Moro 2020-11-29 13:52 ` Eric S Fraga 2020-11-29 17:15 ` Jean Louis 0 siblings, 2 replies; 33+ messages in thread From: Gerardo Moro @ 2020-11-29 13:07 UTC (permalink / raw) To: Jean Louis; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1996 bytes --] Thanks, I had seen those pages. Seems an old project and I haven't used it. The Github page is here https://github.com/emacsmirror/remem Has somebody installed it and tried it? It would be great to have a screen recording demo. So as I see, it basically shows in the minibuffer documents that are related to what you write. Correct me if I'm wrong. Your project sounds intriguing! GM El sáb, 28 nov 2020 a las 20:29, Jean Louis (<bugs@gnu.support>) escribió: > * Gerardo Moro <gerardomoro37@gmail.com> [2020-11-28 20:02]: > > Is there currently any (good) implementation of the idea of the > Remembrance > > Agents in Emacs? > > According to this document: > > Hyperlink: https://alumni.media.mit.edu/~rhodes/Papers/remembrance.html > > the implementation was running already in Emacs! > > There is more to it: > > https://www.emacswiki.org/emacs/RemembranceAgents > > And picture: https://alumni.media.mit.edu/~rhodes/Papers/ra.small.gif > > As I am developing HyperScope that is to augment the knowledge, at > least for those objects displayed within HyperScope but also in other > context or modes I could invoke something similar as Speedbar on the > side or in separate window that would show all relations to specific > object. It could also look from time to time into what text is user > writing and search relevant terms or tags to display such as > hyperlinks that are accessible on the side. The more information user > enters into the database and the more tags and relations have been > created the better the relevance. > > In the context of web applications providing CRM Customer Relationship > Management there are always various related objects hyperlinked on the > same page. Same is valid for ERM or Enterprise Resource Management and > similar systems as they are already based on the relational databases. > > Automatic hypertexting is another good feature that may be implemented > within Emacs for any relevant terms. > [-- Attachment #2: Type: text/html, Size: 2795 bytes --] ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-29 13:07 ` Gerardo Moro @ 2020-11-29 13:52 ` Eric S Fraga 2020-11-29 17:29 ` Jean Louis 2020-11-30 6:48 ` Remembrance Agents Gerardo Moro 2020-11-29 17:15 ` Jean Louis 1 sibling, 2 replies; 33+ messages in thread From: Eric S Fraga @ 2020-11-29 13:52 UTC (permalink / raw) To: Gerardo Moro; +Cc: emacs-orgmode, Jean Louis On Sunday, 29 Nov 2020 at 15:07, Gerardo Moro wrote: > Has somebody installed it and tried it? It would be great to have a > screen recording demo. I've used it on and off in the past, within the past 2 years most recently. I populate the database it uses with both emails and org files. While writing, it shows lines from documents that match in a separate window (whose size can be customized). It does work but I find that I tend to forget about the remembrance window most of the time so eventually I turn it off. I never seem to have enough screen real estate to justify its use (despite having 38" and 27" monitors side by side on my desk ;-)). There was a blog post early this year on this topic [1] which you might find interesting. It talks mostly about recoll [2] which is not so much a remembrance agent but a search tool HTH, eric Footnotes: [1] https://blog.jethro.dev/posts/remembrance_agents/ [2] https://www.lesbonscomptes.com/recoll/ -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4-143-g9a1549 ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-29 13:52 ` Eric S Fraga @ 2020-11-29 17:29 ` Jean Louis 2020-11-29 17:47 ` Eric S Fraga 2020-11-30 6:48 ` Remembrance Agents Gerardo Moro 1 sibling, 1 reply; 33+ messages in thread From: Jean Louis @ 2020-11-29 17:29 UTC (permalink / raw) To: Gerardo Moro, emacs-orgmode * Eric S Fraga <e.fraga@ucl.ac.uk> [2020-11-29 16:52]: > On Sunday, 29 Nov 2020 at 15:07, Gerardo Moro wrote: > > Has somebody installed it and tried it? It would be great to have a > > screen recording demo. > > I've used it on and off in the past, within the past 2 years most > recently. I populate the database it uses with both emails and org > files. While writing, it shows lines from documents that match in a > separate window (whose size can be customized). > > It does work but I find that I tend to forget about the remembrance > window most of the time so eventually I turn it off. I never seem to > have enough screen real estate to justify its use (despite having 38" > and 27" monitors side by side on my desk ;-)). Sadly there are some errors today. depmode=gcc3 /bin/sh ../depcomp \ gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../savutil -I../savutil/parsedate -I../template -I../plugins -I\/usr/include/pcre -I\/sw/include -g -O2 -c `test -f 'gbuf.c' || echo './'`gbuf.c gbuf.c:43:8: error: conflicting types for ‘strnlen’ size_t strnlen (char *s, size_t n) ^~~~~~~ In file included from ../savant.h:50:0, from gbuf.c:39: /usr/include/string.h:401:15: note: previous declaration of ‘strnlen’ was here extern size_t strnlen (const char *__string, size_t __maxlen) ^~~~~~~ make[2]: *** [Makefile:191: gbuf.o] Error 1 make[2]: Leaving directory '/home/data1/protected/.emacs.d/remem/savutil' make[1]: *** [Makefile:394: ../savutil/libsavutil.a] Error 2 make[1]: Leaving directory '/home/data1/protected/.emacs.d/remem/main' make: *** [Makefile:428: main/ra-index] Error 2 ~/.emacs.d/remem $ ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-29 17:29 ` Jean Louis @ 2020-11-29 17:47 ` Eric S Fraga 2020-11-30 11:15 ` Jean Louis 0 siblings, 1 reply; 33+ messages in thread From: Eric S Fraga @ 2020-11-29 17:47 UTC (permalink / raw) To: Jean Louis; +Cc: Gerardo Moro, emacs-orgmode On Sunday, 29 Nov 2020 at 20:29, Jean Louis wrote: > Sadly there are some errors today. On Debian, at least, there is a remembrance-agent package which has the binaries and the Emacs package. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4-143-g9a1549 ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-29 17:47 ` Eric S Fraga @ 2020-11-30 11:15 ` Jean Louis 2021-01-06 6:41 ` Possibility to copy text outside EMACS and send it to orgmode document Gerardo Moro 0 siblings, 1 reply; 33+ messages in thread From: Jean Louis @ 2020-11-30 11:15 UTC (permalink / raw) To: Gerardo Moro, emacs-orgmode * Eric S Fraga <e.fraga@ucl.ac.uk> [2020-11-29 20:48]: > On Sunday, 29 Nov 2020 at 20:29, Jean Louis wrote: > > Sadly there are some errors today. > > On Debian, at least, there is a remembrance-agent package which has the > binaries and the Emacs package. PostgreSQL supports relevance search with its built-in functions: https://www.postgresql.org/docs/current/textsearch-intro.html Emacs package emacs-libpq is soon coming to GNU ELPA. emacs-libpq @ Github https://github.com/anse1/emacs-libpq Using Emacs Lisp functions to store documents for indexing and to get relevant results is then integration that may be useful. I may use this functions for semantic locating functions in Hyperscope. Think of something, put some words and get it, without me putting great effort to parse words, format them, juggle with terms, lists and so on. PostgreSQL database support is provided in general for any language and there is support for specific languages: database=# \dF List of text search configurations Schema | Name | Description ------------+------------+--------------------------------------- pg_catalog | arabic | configuration for arabic language pg_catalog | danish | configuration for danish language pg_catalog | dutch | configuration for dutch language pg_catalog | english | configuration for english language pg_catalog | finnish | configuration for finnish language pg_catalog | french | configuration for french language pg_catalog | german | configuration for german language pg_catalog | greek | configuration for greek language pg_catalog | hungarian | configuration for hungarian language pg_catalog | indonesian | configuration for indonesian language pg_catalog | irish | configuration for irish language pg_catalog | italian | configuration for italian language pg_catalog | lithuanian | configuration for lithuanian language pg_catalog | nepali | configuration for nepali language pg_catalog | norwegian | configuration for norwegian language pg_catalog | portuguese | configuration for portuguese language pg_catalog | romanian | configuration for romanian language pg_catalog | russian | configuration for russian language pg_catalog | simple | simple configuration pg_catalog | spanish | configuration for spanish language pg_catalog | swedish | configuration for swedish language pg_catalog | tamil | configuration for tamil language pg_catalog | turkish | configuration for turkish language (23 rows) ^ permalink raw reply [flat|nested] 33+ messages in thread
* Possibility to copy text outside EMACS and send it to orgmode document 2020-11-30 11:15 ` Jean Louis @ 2021-01-06 6:41 ` Gerardo Moro 2021-01-06 6:48 ` Samuel Wales ` (4 more replies) 0 siblings, 5 replies; 33+ messages in thread From: Gerardo Moro @ 2021-01-06 6:41 UTC (permalink / raw) To: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 246 bytes --] Basically that: as I copy (Control-C) text from the browser (Chrome), I would like those copied sentences to be sent to a ordered list in an OrgMode document: - copied text 1 - copied text 2 - etc. Any ideas? This would be very useful. Thanks! [-- Attachment #2: Type: text/html, Size: 326 bytes --] ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-06 6:41 ` Possibility to copy text outside EMACS and send it to orgmode document Gerardo Moro @ 2021-01-06 6:48 ` Samuel Wales 2021-01-06 6:49 ` Tom Gillespie ` (3 subsequent siblings) 4 siblings, 0 replies; 33+ messages in thread From: Samuel Wales @ 2021-01-06 6:48 UTC (permalink / raw) To: Gerardo Moro; +Cc: emacs-orgmode there is a tricky org-protocol thing you can do with emacsclient and a capture template, but i suspect that chrome has an extension just like firefox does called org-capture that does some of that in the browser itself. in firefox-esr, i select text and click the unicorn icon. you will have to read about capture templates to create your own to match the one that the org-capture extension uses [a single letter]. On 1/5/21, Gerardo Moro <gerardomoro37@gmail.com> wrote: > Basically that: as I copy (Control-C) text from the browser (Chrome), I > would like those copied sentences to be sent to a ordered list in an > OrgMode document: > > - copied text 1 > - copied text 2 > - etc. > > Any ideas? This would be very useful. > Thanks! > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-06 6:41 ` Possibility to copy text outside EMACS and send it to orgmode document Gerardo Moro 2021-01-06 6:48 ` Samuel Wales @ 2021-01-06 6:49 ` Tom Gillespie 2021-01-06 6:58 ` Gerardo Moro 2021-01-06 15:56 ` Tim Visher ` (2 subsequent siblings) 4 siblings, 1 reply; 33+ messages in thread From: Tom Gillespie @ 2021-01-06 6:49 UTC (permalink / raw) To: Gerardo Moro; +Cc: emacs-orgmode You can achieve something a bit like this using org-protocol-capture-html https://github.com/alphapapa/org-protocol-capture-html. I'm not entirely sure whether you can bind the equivalent of a hook in javascript to run every time you C-c, but if you can, then it should be possible to match this exactly. You might also be able to wire up org-protocol to the X clipboard (if you are on linux). Best, Tom ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-06 6:49 ` Tom Gillespie @ 2021-01-06 6:58 ` Gerardo Moro 2021-01-07 5:14 ` Ihor Radchenko 0 siblings, 1 reply; 33+ messages in thread From: Gerardo Moro @ 2021-01-06 6:58 UTC (permalink / raw) To: Tom Gillespie, Samologist; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 760 bytes --] Thanks, guys. I'll have a look. I understand that using org-protocol in combo with org-capture I would have to visit the Emacs window for capturing the copied text or not? Because this is crucial, as I aim to avoid this step. Thanks! El mié, 6 ene 2021 a las 8:49, Tom Gillespie (<tgbugs@gmail.com>) escribió: > You can achieve something a bit like this using > org-protocol-capture-html > https://github.com/alphapapa/org-protocol-capture-html. I'm not > entirely sure whether you can bind the equivalent of a hook in > javascript to run every time you C-c, but if you can, then it should > be possible to match this exactly. You might also be able to wire up > org-protocol to the X clipboard (if you are on linux). > > Best, > Tom > [-- Attachment #2: Type: text/html, Size: 1195 bytes --] ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-06 6:58 ` Gerardo Moro @ 2021-01-07 5:14 ` Ihor Radchenko 2021-01-07 5:36 ` Gerardo Moro 0 siblings, 1 reply; 33+ messages in thread From: Ihor Radchenko @ 2021-01-07 5:14 UTC (permalink / raw) To: Gerardo Moro, Tom Gillespie, Samologist; +Cc: emacs-orgmode Gerardo Moro <gerardomoro37@gmail.com> writes: > Thanks, guys. > I'll have a look. > I understand that using org-protocol in combo with org-capture I would have > to visit the Emacs window for capturing the copied text or not? > Because this is crucial, as I aim to avoid this step. > Thanks! If your capture template has :immediate-finish setting set to t, the capture is done in background without raising Emacs frame. See <F1> v org-capture-templates <RET> for more details. Best, Ihor ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-07 5:14 ` Ihor Radchenko @ 2021-01-07 5:36 ` Gerardo Moro 2021-01-07 6:17 ` Tom Gillespie 0 siblings, 1 reply; 33+ messages in thread From: Gerardo Moro @ 2021-01-07 5:36 UTC (permalink / raw) To: Ihor Radchenko; +Cc: Tom Gillespie, emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 813 bytes --] Thanks. I have been trying to set org-protocol up, but... I can't find where this package is (silly, innit?). Where is the official org-protocol page where to download it? Thanks! El jue, 7 ene 2021 a las 7:10, Ihor Radchenko (<yantar92@gmail.com>) escribió: > Gerardo Moro <gerardomoro37@gmail.com> writes: > > > Thanks, guys. > > I'll have a look. > > I understand that using org-protocol in combo with org-capture I would > have > > to visit the Emacs window for capturing the copied text or not? > > Because this is crucial, as I aim to avoid this step. > > Thanks! > > If your capture template has :immediate-finish setting set to t, the > capture is done in background without raising Emacs frame. > See <F1> v org-capture-templates <RET> for more details. > > Best, > Ihor > > [-- Attachment #2: Type: text/html, Size: 1238 bytes --] ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-07 5:36 ` Gerardo Moro @ 2021-01-07 6:17 ` Tom Gillespie 2021-01-07 6:29 ` Gerardo Moro 0 siblings, 1 reply; 33+ messages in thread From: Tom Gillespie @ 2021-01-07 6:17 UTC (permalink / raw) To: Gerardo Moro; +Cc: emacs-orgmode, Ihor Radchenko It is built into the core org distribution. ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-07 6:17 ` Tom Gillespie @ 2021-01-07 6:29 ` Gerardo Moro 2021-01-07 7:54 ` Ihor Radchenko 2021-01-09 17:32 ` TRS-80 0 siblings, 2 replies; 33+ messages in thread From: Gerardo Moro @ 2021-01-07 6:29 UTC (permalink / raw) To: Tom Gillespie; +Cc: emacs-orgmode, Ihor Radchenko [-- Attachment #1: Type: text/plain, Size: 444 bytes --] Thanks. Then why is in https://orgmode.org/worg/org-contrib/org-protocol.html#installation this confusing bit? Installation - To load org-protocol.el add the following to your .emacs: (server-start) (add-to-list 'load-path "~/path/to/org/protocol/") (require 'org-protocol) El jue, 7 ene 2021 a las 8:17, Tom Gillespie (<tgbugs@gmail.com>) escribió: > It is built into the core org distribution. > [-- Attachment #2: Type: text/html, Size: 1834 bytes --] ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-07 6:29 ` Gerardo Moro @ 2021-01-07 7:54 ` Ihor Radchenko 2021-01-09 17:32 ` TRS-80 1 sibling, 0 replies; 33+ messages in thread From: Ihor Radchenko @ 2021-01-07 7:54 UTC (permalink / raw) To: Gerardo Moro, Tom Gillespie; +Cc: emacs-orgmode Gerardo Moro <gerardomoro37@gmail.com> writes: > Thanks. Then why is in > https://orgmode.org/worg/org-contrib/org-protocol.html#installation this > confusing bit? Here is more detailed instruction: https://github.com/alphapapa/org-protocol-capture-html#org-protocol-instructions ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-07 6:29 ` Gerardo Moro 2021-01-07 7:54 ` Ihor Radchenko @ 2021-01-09 17:32 ` TRS-80 1 sibling, 0 replies; 33+ messages in thread From: TRS-80 @ 2021-01-09 17:32 UTC (permalink / raw) To: emacs-orgmode On 2021-01-07 01:29, Gerardo Moro wrote: > Thanks. Then why is in > https://orgmode.org/worg/org-contrib/org-protocol.html#installation > this confusing bit? > > INSTALLATION > > * > > To load org-protocol.el add the following to your .emacs: > > (server-start) > (add-to-list 'load-path "~/path/to/org/protocol/") > (require 'org-protocol) > > El jue, 7 ene 2021 a las 8:17, Tom Gillespie (<tgbugs@gmail.com>) > escribió: > >> It is built into the core org distribution. Perhaps documentation should be updated? Cheers, TRS-80 ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-06 6:41 ` Possibility to copy text outside EMACS and send it to orgmode document Gerardo Moro 2021-01-06 6:48 ` Samuel Wales 2021-01-06 6:49 ` Tom Gillespie @ 2021-01-06 15:56 ` Tim Visher 2021-01-06 17:42 ` Bob Newell 2021-01-06 20:46 ` Gerardo Moro 2021-01-06 16:14 ` Maxim Nikulin 2021-01-06 16:31 ` Juan Manuel Macías 4 siblings, 2 replies; 33+ messages in thread From: Tim Visher @ 2021-01-06 15:56 UTC (permalink / raw) To: Gerardo Moro; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 2176 bytes --] On Wed, Jan 6, 2021 at 1:43 AM Gerardo Moro <gerardomoro37@gmail.com> wrote: > Basically that: as I copy (Control-C) text from the browser (Chrome), I > would like those copied sentences to be sent to a ordered list in an > OrgMode document: > > - copied text 1 > - copied text 2 > - etc. > > Any ideas? This would be very useful. > On macOS I've done _similar_ things to this (albeit not exactly what you're asking) by simply generating org text for me to paste in. For instance I have an applescript `org-current-tab`: ``` … on org_current_tab() tell application "Google Chrome" set the_title to title of active tab of front window set the_title to my replace_chars(the_title, "[", " ") set the_title to my replace_chars(the_title, "]", " ") return "[[" & URL of active tab of front window & "][" & the_title & "]]" as text end tell end org_current_tab ``` Then from anywhere I can activate this applescript and all I need to do is whack `C-y` in emacs and I get the link pasted in. It's not hard then to extend this directly into emacs via the `osascript` executable: ``` (defun org-current-tab () (interactive) (unless (eq major-mode 'org-mode) (user-error "This command must be triggered in an org buffer.")) (let* ((output (with-temp-buffer (call-process "osascript" nil t nil "-e" "tell application \"Finder\" to set current_tab_handlers to (load script file \"current_tab_handlers.scpt\" of folder \"Dropbox\" of home as alias)" "-e" "tell current_tab_handlers to org_current_tab()") (substring-no-properties (thing-at-point 'line t) 0 -1)))) (insert output))) ``` I'm not sure what environment you're in so you may not have access to a system's scripting tool like Applescript but depending on the scripting facilities of whatever you're targeting maybe you can get most of the way there. At the worst you could add whatever text you want to your clipboard and then write some elisp that processes it before writing it to your org buffer. [-- Attachment #2: Type: text/html, Size: 3046 bytes --] ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-06 15:56 ` Tim Visher @ 2021-01-06 17:42 ` Bob Newell 2021-01-06 20:46 ` Gerardo Moro 1 sibling, 0 replies; 33+ messages in thread From: Bob Newell @ 2021-01-06 17:42 UTC (permalink / raw) To: emacs-orgmode I've done similar sorts of things in Linux with xdotool and xclip. These are very useful tools although a bit fiddly in their usage. -- Bob Newell Honolulu, Hawai`i - Via GNU/Linux/Emacs/Gnus/BBDB ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-06 15:56 ` Tim Visher 2021-01-06 17:42 ` Bob Newell @ 2021-01-06 20:46 ` Gerardo Moro 1 sibling, 0 replies; 33+ messages in thread From: Gerardo Moro @ 2021-01-06 20:46 UTC (permalink / raw) To: Tim Visher; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 2618 bytes --] This is very cool, thanks, and I very much use Automator. I will have a look later, but it seems that you have to move focus to Emacs, so it does not directly send something to a orgmode document straight from the copy action in the browser. El mié, 6 ene 2021 a las 17:56, Tim Visher (<tim.visher@gmail.com>) escribió: > On Wed, Jan 6, 2021 at 1:43 AM Gerardo Moro <gerardomoro37@gmail.com> > wrote: > >> Basically that: as I copy (Control-C) text from the browser (Chrome), I >> would like those copied sentences to be sent to a ordered list in an >> OrgMode document: >> >> - copied text 1 >> - copied text 2 >> - etc. >> >> Any ideas? This would be very useful. >> > > On macOS I've done _similar_ things to this (albeit not exactly what > you're asking) by simply generating org text for me to paste in. > > For instance I have an applescript `org-current-tab`: > > ``` > … > on org_current_tab() > tell application "Google Chrome" > set the_title to title of active tab of front window > set the_title to my replace_chars(the_title, "[", " ") > set the_title to my replace_chars(the_title, "]", " ") > return "[[" & URL of active tab of front window & "][" & the_title > & "]]" as text > end tell > end org_current_tab > ``` > > Then from anywhere I can activate this applescript and all I need to do is > whack `C-y` in emacs and I get the link pasted in. > > It's not hard then to extend this directly into emacs via the `osascript` > executable: > > ``` > (defun org-current-tab > () > (interactive) > (unless (eq major-mode 'org-mode) > (user-error "This command must be triggered in an org buffer.")) > (let* ((output (with-temp-buffer > (call-process > "osascript" nil t nil > "-e" "tell application \"Finder\" to set > current_tab_handlers to (load script file \"current_tab_handlers.scpt\" of > folder \"Dropbox\" of home as alias)" > "-e" "tell current_tab_handlers to org_current_tab()") > (substring-no-properties (thing-at-point 'line t) 0 > -1)))) > (insert output))) > ``` > > I'm not sure what environment you're in so you may not have access to a > system's scripting tool like Applescript but depending on the scripting > facilities of whatever you're targeting maybe you can get most of the way > there. At the worst you could add whatever text you want to your clipboard > and then write some elisp that processes it before writing it to your org > buffer. > [-- Attachment #2: Type: text/html, Size: 3676 bytes --] ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-06 6:41 ` Possibility to copy text outside EMACS and send it to orgmode document Gerardo Moro ` (2 preceding siblings ...) 2021-01-06 15:56 ` Tim Visher @ 2021-01-06 16:14 ` Maxim Nikulin 2021-01-06 16:31 ` Juan Manuel Macías 4 siblings, 0 replies; 33+ messages in thread From: Maxim Nikulin @ 2021-01-06 16:14 UTC (permalink / raw) To: emacs-orgmode On 06/01/2021 13:41, Gerardo Moro wrote: > Basically that: as I copy (Control-C) text from the browser (Chrome), I > would like those copied sentences to be sent to a ordered list in an > OrgMode document: > > - copied text 1 > - copied text 2 > - etc. > > Any ideas? This would be very useful. To add to emacs a key binding that runs a script calling pandoc, something like (untested, you are asking for ideas), and inserting new text from clipboard in_file=`mktemp --tmpdir convert.XXXXXX.html` out_file=`mktemp --tmpdir convert.XXXXXX.org` xclip -out -target text/html >"$in_file" pandoc --output="$out_file" "$in_file" xclip -in <"$out_file" No need to setup org-protocol. Maybe it is possible to avoid temporary files. TODO: - Temporary files should be removed - Unsure if pandoc is safe in respect to peculiar HTML formatting, maybe it has some special options for conversion of non-trusted files. ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Possibility to copy text outside EMACS and send it to orgmode document 2021-01-06 6:41 ` Possibility to copy text outside EMACS and send it to orgmode document Gerardo Moro ` (3 preceding siblings ...) 2021-01-06 16:14 ` Maxim Nikulin @ 2021-01-06 16:31 ` Juan Manuel Macías 4 siblings, 0 replies; 33+ messages in thread From: Juan Manuel Macías @ 2021-01-06 16:31 UTC (permalink / raw) To: Gerardo Moro; +Cc: orgmode Gerardo Moro <gerardomoro37@gmail.com> writes: > Basically that: as I copy (Control-C) text from the browser (Chrome), > I would like those copied sentences to be sent to a ordered list in an > OrgMode document: > > - copied text 1 > - copied text 2 > - etc. > > Any ideas? This would be very useful. > Thanks! I don't know if it is exactly what you are looking for, but maybe you might be interested in this extension for chrome and firefox that uses org-protocol: https://github.com/sprig/org-capture-extension Regards, Juan Manuel ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-29 13:52 ` Eric S Fraga 2020-11-29 17:29 ` Jean Louis @ 2020-11-30 6:48 ` Gerardo Moro 2020-11-30 9:31 ` Eric S Fraga 2020-11-30 10:16 ` Jean Louis 1 sibling, 2 replies; 33+ messages in thread From: Gerardo Moro @ 2020-11-30 6:48 UTC (permalink / raw) To: Gerardo Moro, Jean Louis, emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 1507 bytes --] Thanks! I get an idea. Will try to use soon and let you know. Thanks for the links, very helpful. Question: when you say it uses emails, can it read any email database (I have old ones from Microsoft outlook both Mac and Windows)? What if you only use webmail, in which format shall you feed the RA? Thanks El dom, 29 nov 2020 a las 15:52, Eric S Fraga (<e.fraga@ucl.ac.uk>) escribió: > On Sunday, 29 Nov 2020 at 15:07, Gerardo Moro wrote: > > Has somebody installed it and tried it? It would be great to have a > > screen recording demo. > > I've used it on and off in the past, within the past 2 years most > recently. I populate the database it uses with both emails and org > files. While writing, it shows lines from documents that match in a > separate window (whose size can be customized). > > It does work but I find that I tend to forget about the remembrance > window most of the time so eventually I turn it off. I never seem to > have enough screen real estate to justify its use (despite having 38" > and 27" monitors side by side on my desk ;-)). > > There was a blog post early this year on this topic [1] which you might > find interesting. It talks mostly about recoll [2] which is not so much > a remembrance agent but a search tool > > HTH, > eric > > Footnotes: > [1] https://blog.jethro.dev/posts/remembrance_agents/ > > [2] https://www.lesbonscomptes.com/recoll/ > > -- > : Eric S Fraga via Emacs 28.0.50, Org release_9.4-143-g9a1549 > [-- Attachment #2: Type: text/html, Size: 2075 bytes --] ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-30 6:48 ` Remembrance Agents Gerardo Moro @ 2020-11-30 9:31 ` Eric S Fraga 2020-11-30 9:37 ` Gerardo Moro 2020-11-30 10:18 ` Jean Louis 2020-11-30 10:16 ` Jean Louis 1 sibling, 2 replies; 33+ messages in thread From: Eric S Fraga @ 2020-11-30 9:31 UTC (permalink / raw) To: Gerardo Moro; +Cc: emacs-orgmode, Jean Louis On Monday, 30 Nov 2020 at 08:48, Gerardo Moro wrote: > Question: when you say it uses emails, can it read any email database (I > have old ones from Microsoft outlook both Mac and Windows)? What if you > only use webmail, in which format shall you feed the RA? No, I don't think the remembrance agent can access webmail of any sort. It is file based. In my case, all of my emails are stored locally (I use gnus nnml groups and POP3 to retrieve my emails from the mail host). -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4-143-g9a1549 ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-30 9:31 ` Eric S Fraga @ 2020-11-30 9:37 ` Gerardo Moro 2020-11-30 10:09 ` Eric S Fraga 2020-11-30 10:18 ` Jean Louis 1 sibling, 1 reply; 33+ messages in thread From: Gerardo Moro @ 2020-11-30 9:37 UTC (permalink / raw) To: Gerardo Moro, Jean Louis, emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 809 bytes --] Ok, thanks. How do you specify the location and is the formatting ok when showing you the relevance pieces of text from the local databases? El lun, 30 nov 2020 a las 11:31, Eric S Fraga (<e.fraga@ucl.ac.uk>) escribió: > On Monday, 30 Nov 2020 at 08:48, Gerardo Moro wrote: > > Question: when you say it uses emails, can it read any email database (I > > have old ones from Microsoft outlook both Mac and Windows)? What if you > > only use webmail, in which format shall you feed the RA? > > No, I don't think the remembrance agent can access webmail of any > sort. It is file based. In my case, all of my emails are stored > locally (I use gnus nnml groups and POP3 to retrieve my emails from the > mail host). > > -- > : Eric S Fraga via Emacs 28.0.50, Org release_9.4-143-g9a1549 > [-- Attachment #2: Type: text/html, Size: 1124 bytes --] ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-30 9:37 ` Gerardo Moro @ 2020-11-30 10:09 ` Eric S Fraga 2020-11-30 10:35 ` Jean Louis 0 siblings, 1 reply; 33+ messages in thread From: Eric S Fraga @ 2020-11-30 10:09 UTC (permalink / raw) To: Gerardo Moro; +Cc: emacs-orgmode, Jean Louis On Monday, 30 Nov 2020 at 11:37, Gerardo Moro wrote: > Ok, thanks. How do you specify the location and is the formatting ok when > showing you the relevance pieces of text from the local databases? The agent needs to be told which files to index (check the man page for ra-index) and, in my case, I point it to all .org files and all text files under ~/Mail. The formatting is okay as far as I am concerned but this is a subjective aspect that will differ for everybody! -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4-143-g9a1549 ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-30 10:09 ` Eric S Fraga @ 2020-11-30 10:35 ` Jean Louis 0 siblings, 0 replies; 33+ messages in thread From: Jean Louis @ 2020-11-30 10:35 UTC (permalink / raw) To: Gerardo Moro, emacs-orgmode * Eric S Fraga <e.fraga@ucl.ac.uk> [2020-11-30 13:11]: > On Monday, 30 Nov 2020 at 11:37, Gerardo Moro wrote: > > Ok, thanks. How do you specify the location and is the formatting ok when > > showing you the relevance pieces of text from the local databases? > > The agent needs to be told which files to index (check the man page for > ra-index) and, in my case, I point it to all .org files and all text > files under ~/Mail. The formatting is okay as far as I am concerned but > this is a subjective aspect that will differ for everybody! SMART (String Matching Algorithm Research Tool) https://github.com/smart-tool/smart Does it use this algorithm? I am cloning that one to see how useful it could be in relevance searches. ,---- | However, I can also see that the PostgreSQL database has already | built-in features for relevance searches: | | https://www.postgresql.org/docs/current/textsearch-intro.html `---- This makes then many external software pieces redundant, it becomes again trivial to work with a database as underlying algorithm and functions have already been programmed. Making a new remembrance agent based on various structured information is making few higher level functions that integrate the underlying capability of PostgreSQL database and Emacs users' editing environment: 0. Create appropriate table in the database. 1. Make automatic or semi-automatic list of Org files or other files. 2. Make simple Emacs Lisp function to index all those files in the database. This is probably few lines function. 3. Make few Emacs Lisp functions that observes what users is doing and display to user relevant results with the possibility to construct hyperlinks from the result buffer straight to Org buffer, or possibility to open up those relevant files for more references. Jean ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-30 9:31 ` Eric S Fraga 2020-11-30 9:37 ` Gerardo Moro @ 2020-11-30 10:18 ` Jean Louis 1 sibling, 0 replies; 33+ messages in thread From: Jean Louis @ 2020-11-30 10:18 UTC (permalink / raw) To: Gerardo Moro, emacs-orgmode * Eric S Fraga <e.fraga@ucl.ac.uk> [2020-11-30 12:31]: > On Monday, 30 Nov 2020 at 08:48, Gerardo Moro wrote: > > Question: when you say it uses emails, can it read any email database (I > > have old ones from Microsoft outlook both Mac and Windows)? What if you > > only use webmail, in which format shall you feed the RA? > > No, I don't think the remembrance agent can access webmail of any > sort. It is file based. In my case, all of my emails are stored > locally (I use gnus nnml groups and POP3 to retrieve my emails from the > mail host). recoll and other indexers could be glued into something similar as remembrance agents. While user is typing some words in a paragraph could quickly be accessed and relevant documents with those words could appear on the side of the buffer. ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-30 6:48 ` Remembrance Agents Gerardo Moro 2020-11-30 9:31 ` Eric S Fraga @ 2020-11-30 10:16 ` Jean Louis 2020-11-30 11:16 ` Gerardo Moro 1 sibling, 1 reply; 33+ messages in thread From: Jean Louis @ 2020-11-30 10:16 UTC (permalink / raw) To: Gerardo Moro; +Cc: emacs-orgmode * Gerardo Moro <gerardomoro37@gmail.com> [2020-11-30 09:49]: > Thanks! I get an idea. Will try to use soon and let you know. > Thanks for the links, very helpful. > Question: when you say it uses emails, can it read any email database (I > have old ones from Microsoft outlook both Mac and Windows)? What if you > only use webmail, in which format shall you feed the RA? I think that all those formats can be converted to something you could be using centrally on your computer. I am recommending Maildir format. But that would depend of your email client that you use. I am using Maildir since years as each message is its own file and concurrency is there and I never lose messages. I was using mbox and mh and various email formats, nothing was ever so stable as Maildir. Putting each person's conversation in separate folder: ~/Maildir/name@example.com then allows me to easily access all previous conversation to that person. This implies that saving messages must be configured to save into such specific maildir automatically. recoll is not remembrance agent. It is a desktop search tool that supports various formats. There are other desktop search tools on GNU/Linux as free software: Beagle - Quickly find the stuff you care about. http://beagle-project.org/ Recoll is a desktop full-text search tool. https://www.lesbonscomptes.com/recoll/ Tracker is a filesystem indexer, metadata storage system and search tool https://wiki.gnome.org/Projects/Tracker NEPOMUK - The Social Semantic Desktop https://nepomuk.semanticdesktop.org/ Terrier is a highly flexible, efficient, and effective open source search engine http://www.terrier.org/ In general as Emacs user you may need to choose one that works on command line. I am not sure if all of those work on command line. Command line output can then be customized to appear in Emacs. Then hyperlink may be constructed in Org file as well for various relevant semantic searches. For Hyperscope dynamic knowledge repository since we talked about remembrance I have at least implemented the table column hlinks_rank that increases its rank by usage. Maybe I should call it different. Org mode does not track every specific node and is not multi-user: - when was the specific node edited? - which person edited specific node? - what is previous version of that node? - which hyperlink was accessed how many times? Would it track that information without disturbance, then users would have list of most used nodes, most accessed or frequently edited nodes, groupware based nodes. In that specific sense of tracking which URL have been accessed how many times, this gives a list that helps to remember what could be more relevant in context user is working in. As the rank increases, the hyperdocument has its own tags, title, information, and those words mostly used can be indexed and while user is typing those words could appear on the side to give more popular references. Then access could be tracked on files as PDF, images, videos, directories within Dired, then last of most accessed files could be in front of us. Recentf does similar function in Emacs. But Emacs bookmarks are not tracked and sorted by their access. I will try downloading Remembrance from Debian, as maybe they have patches that work. Jean ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-30 10:16 ` Jean Louis @ 2020-11-30 11:16 ` Gerardo Moro 2020-11-30 11:25 ` Jean Louis 0 siblings, 1 reply; 33+ messages in thread From: Gerardo Moro @ 2020-11-30 11:16 UTC (permalink / raw) To: Jean Louis; +Cc: emacs-orgmode [-- Attachment #1: Type: text/plain, Size: 896 bytes --] > * Gerardo Moro <gerardomoro37@gmail.com> [2020-11-30 09:49]: > > Thanks! I get an idea. Will try to use soon and let you know. > > Thanks for the links, very helpful. > > Question: when you say it uses emails, can it read any email database (I > > have old ones from Microsoft outlook both Mac and Windows)? What if you > > only use webmail, in which format shall you feed the RA? > > I think that all those formats can be converted to something you could > be using centrally on your computer. > > I am recommending Maildir format. But that would depend of your email > client that you use. > My emails are in format .emlx which is only readable by MAIL. I also have used Windows' Microsoft Office which stores I think in PLIST format. Is it possible to convert them to Maildir format? I don't know how any search software could search within those files if they are not converted. Best, GM [-- Attachment #2: Type: text/html, Size: 1304 bytes --] ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-30 11:16 ` Gerardo Moro @ 2020-11-30 11:25 ` Jean Louis 0 siblings, 0 replies; 33+ messages in thread From: Jean Louis @ 2020-11-30 11:25 UTC (permalink / raw) To: Gerardo Moro; +Cc: emacs-orgmode * Gerardo Moro <gerardomoro37@gmail.com> [2020-11-30 14:17]: > > * Gerardo Moro <gerardomoro37@gmail.com> [2020-11-30 09:49]: > > > Thanks! I get an idea. Will try to use soon and let you know. > > > Thanks for the links, very helpful. > > > Question: when you say it uses emails, can it read any email database (I > > > have old ones from Microsoft outlook both Mac and Windows)? What if you > > > only use webmail, in which format shall you feed the RA? > > > > I think that all those formats can be converted to something you could > > be using centrally on your computer. > > > > I am recommending Maildir format. But that would depend of your email > > client that you use. > > > > My emails are in format .emlx which is only readable by MAIL. I also have > used Windows' Microsoft Office which stores I think in PLIST format. > Is it possible to convert them to Maildir format? I don't know how any > search software could search within those files if they are not converted. emlx2maildir convert emlx format to maildir http://mike.laiosa.org/software/emlx2maildir/ There must be PLIST converters too. Life will become easy with maildir, but I do not know which email software you use. I am using mutt, not Emacs. mu4e package supports Maildir and database search. ^ permalink raw reply [flat|nested] 33+ messages in thread
* Re: Remembrance Agents 2020-11-29 13:07 ` Gerardo Moro 2020-11-29 13:52 ` Eric S Fraga @ 2020-11-29 17:15 ` Jean Louis 1 sibling, 0 replies; 33+ messages in thread From: Jean Louis @ 2020-11-29 17:15 UTC (permalink / raw) To: Gerardo Moro; +Cc: emacs-orgmode * Gerardo Moro <gerardomoro37@gmail.com> [2020-11-29 16:08]: > Thanks, I had seen those pages. Seems an old project and I haven't used it. > The Github page is here https://github.com/emacsmirror/remem That is great, I am much interested in that. I was thinking it is not available any more. I will test it. ^ permalink raw reply [flat|nested] 33+ messages in thread
end of thread, other threads:[~2021-01-09 17:33 UTC | newest] Thread overview: 33+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-11-28 16:59 Remembrance Agents Gerardo Moro 2020-11-28 17:08 ` George Mauer 2020-11-28 18:26 ` Jean Louis 2020-11-29 13:07 ` Gerardo Moro 2020-11-29 13:52 ` Eric S Fraga 2020-11-29 17:29 ` Jean Louis 2020-11-29 17:47 ` Eric S Fraga 2020-11-30 11:15 ` Jean Louis 2021-01-06 6:41 ` Possibility to copy text outside EMACS and send it to orgmode document Gerardo Moro 2021-01-06 6:48 ` Samuel Wales 2021-01-06 6:49 ` Tom Gillespie 2021-01-06 6:58 ` Gerardo Moro 2021-01-07 5:14 ` Ihor Radchenko 2021-01-07 5:36 ` Gerardo Moro 2021-01-07 6:17 ` Tom Gillespie 2021-01-07 6:29 ` Gerardo Moro 2021-01-07 7:54 ` Ihor Radchenko 2021-01-09 17:32 ` TRS-80 2021-01-06 15:56 ` Tim Visher 2021-01-06 17:42 ` Bob Newell 2021-01-06 20:46 ` Gerardo Moro 2021-01-06 16:14 ` Maxim Nikulin 2021-01-06 16:31 ` Juan Manuel Macías 2020-11-30 6:48 ` Remembrance Agents Gerardo Moro 2020-11-30 9:31 ` Eric S Fraga 2020-11-30 9:37 ` Gerardo Moro 2020-11-30 10:09 ` Eric S Fraga 2020-11-30 10:35 ` Jean Louis 2020-11-30 10:18 ` Jean Louis 2020-11-30 10:16 ` Jean Louis 2020-11-30 11:16 ` Gerardo Moro 2020-11-30 11:25 ` Jean Louis 2020-11-29 17:15 ` Jean Louis
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).