emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* oeg-agenda-entry-text-mode
@ 2023-01-24 21:28 David Masterson
  2023-01-25  2:15 ` oeg-agenda-entry-text-mode David Masterson
  0 siblings, 1 reply; 5+ messages in thread
From: David Masterson @ 2023-01-24 21:28 UTC (permalink / raw)
  To: emacs-orgmode

I've just discovered the E key in Agenda Commands and I'd like to use
it.  The drawback is that it shows Log entries (I don't use a Drawer for
Logs -- yet).  This means that the original description can be hidden if
the logs use up more than org-agenda-entry-text-maxlines.

Is there someway to toggle logs in org-agenda-entry-text-mode?  Also, if
I create a drawer for logs, is there someway to move current logs to the
drawer?

-- 
David Masterson


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

* Re: oeg-agenda-entry-text-mode
  2023-01-24 21:28 oeg-agenda-entry-text-mode David Masterson
@ 2023-01-25  2:15 ` David Masterson
  2023-01-25 13:24   ` oeg-agenda-entry-text-mode Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: David Masterson @ 2023-01-25  2:15 UTC (permalink / raw)
  To: emacs-orgmode

David Masterson <dsmasterson@gmail.com> writes:

> I've just discovered the E key in Agenda Commands and I'd like to use
> it.  The drawback is that it shows Log entries (I don't use a Drawer for
> Logs -- yet).  This means that the original description can be hidden if
> the logs use up more than org-agenda-entry-text-maxlines.
>
> Is there someway to toggle logs in org-agenda-entry-text-mode?  Also, if
> I create a drawer for logs, is there someway to move current logs to the
> drawer?

Ooh!  Found org-agenda-entry-text-exclude-regexp!  It's so close to what
I want.  With it, I can delete everything on a line that I don't want to
be displayed with org-agenda-entry-text-mode.  But I can't get rid of
the line, so I wind up with blank lines where the log would've been.

Any other options?  Or a secret to the regexp for getting rid of blank
lines?  Or embedding a newline in the regexp to exclude the line?

-- 
David Masterson


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

* Re: oeg-agenda-entry-text-mode
  2023-01-25  2:15 ` oeg-agenda-entry-text-mode David Masterson
@ 2023-01-25 13:24   ` Ihor Radchenko
  2023-01-25 13:56     ` oeg-agenda-entry-text-mode tomas
  0 siblings, 1 reply; 5+ messages in thread
From: Ihor Radchenko @ 2023-01-25 13:24 UTC (permalink / raw)
  To: David Masterson; +Cc: emacs-orgmode

David Masterson <dsmasterson@gmail.com> writes:

> Ooh!  Found org-agenda-entry-text-exclude-regexp!  It's so close to what
> I want.  With it, I can delete everything on a line that I don't want to
> be displayed with org-agenda-entry-text-mode.  But I can't get rid of
> the line, so I wind up with blank lines where the log would've been.

You can. Just include newline into your regexp.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


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

* Re: oeg-agenda-entry-text-mode
  2023-01-25 13:24   ` oeg-agenda-entry-text-mode Ihor Radchenko
@ 2023-01-25 13:56     ` tomas
  2023-01-26  4:56       ` org-agenda-entry-text-mode David Masterson
  0 siblings, 1 reply; 5+ messages in thread
From: tomas @ 2023-01-25 13:56 UTC (permalink / raw)
  To: emacs-orgmode

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

On Wed, Jan 25, 2023 at 01:24:56PM +0000, Ihor Radchenko wrote:
> David Masterson <dsmasterson@gmail.com> writes:
> 
> > Ooh!  Found org-agenda-entry-text-exclude-regexp!  It's so close to what
> > I want.  With it, I can delete everything on a line that I don't want to
> > be displayed with org-agenda-entry-text-mode.  But I can't get rid of
> > the line, so I wind up with blank lines where the log would've been.
> 
> You can. Just include newline into your regexp.

If you are entering it interactively into the minibuffer, that's
CTRL-J (in a terminal you might have to do CTRL-Q CTRL-J).

Cheers
-- 
t

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

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

* Re: org-agenda-entry-text-mode
  2023-01-25 13:56     ` oeg-agenda-entry-text-mode tomas
@ 2023-01-26  4:56       ` David Masterson
  0 siblings, 0 replies; 5+ messages in thread
From: David Masterson @ 2023-01-26  4:56 UTC (permalink / raw)
  To: tomas; +Cc: emacs-orgmode

<tomas@tuxteam.de> writes:

> On Wed, Jan 25, 2023 at 01:24:56PM +0000, Ihor Radchenko wrote:
>> David Masterson <dsmasterson@gmail.com> writes:
>> 
>> > Ooh!  Found org-agenda-entry-text-exclude-regexp!  It's so close to what
>> > I want.  With it, I can delete everything on a line that I don't want to
>> > be displayed with org-agenda-entry-text-mode.  But I can't get rid of
>> > the line, so I wind up with blank lines where the log would've been.
>> 
>> You can. Just include newline into your regexp.
>
> If you are entering it interactively into the minibuffer, that's
> CTRL-J (in a terminal you might have to do CTRL-Q CTRL-J).

How do you represent that in Elisp? I can't quite get it from the Elisp
Manual, but I think it's "\n" (CMIIAW)
-- 
David Masterson


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

end of thread, other threads:[~2023-01-26  5:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-24 21:28 oeg-agenda-entry-text-mode David Masterson
2023-01-25  2:15 ` oeg-agenda-entry-text-mode David Masterson
2023-01-25 13:24   ` oeg-agenda-entry-text-mode Ihor Radchenko
2023-01-25 13:56     ` oeg-agenda-entry-text-mode tomas
2023-01-26  4:56       ` org-agenda-entry-text-mode David Masterson

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).