emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Mark-and-select an item in org-mode
@ 2018-06-14 18:58 Steve Quezadas
  2018-06-14 19:05 ` Nicolas Goaziou
  2018-06-14 19:22 ` Samuel Wales
  0 siblings, 2 replies; 3+ messages in thread
From: Steve Quezadas @ 2018-06-14 18:58 UTC (permalink / raw)
  To: emacs-orgmode

I'm not sure if there's something incredibly simple I'm missing here,
but is there a way to just select an org-mode item when a cursor is on
top of an org-mode item?

I checked google/org-mode documentation and I can't find anything. So
I went through the source code and noticed that procedure
"org-move-item-up" has a function, "point-at-bol", that return the
position of the line item that the cursor is standing on top of. I
would imagine it would be trivial to do a "select mark" command for
that item after that.

Two questions:
1) Is there already an org-mode function that select or delete an 
org-mode line item?
2) If not, is it possible to do a "set-mark-command" on an org-mode line 
item (possibly derived from the "point-at-bol" command)?

I am somewhat new to emacs-lisp, and I plan to "play around with it"
to get it to do what I want it to do, but I thought I'd through it on
the maillist to see if I am barking up the right tree. If it's not a
feature in org-mode, I'm sure I can write my own function for it and,
in the spirit of emacs, throw a patch to the project if wanted.

- Steve

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

* Re: Mark-and-select an item in org-mode
  2018-06-14 18:58 Mark-and-select an item in org-mode Steve Quezadas
@ 2018-06-14 19:05 ` Nicolas Goaziou
  2018-06-14 19:22 ` Samuel Wales
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2018-06-14 19:05 UTC (permalink / raw)
  To: Steve Quezadas; +Cc: emacs-orgmode

Hello,

Steve Quezadas <steve@thestever.net> writes:

> Two questions:
> 1) Is there already an org-mode function that select or delete an
> org-mode line item?
> 2) If not, is it possible to do a "set-mark-command" on an org-mode
> line item (possibly derived from the "point-at-bol" command)?

Could you describe more precisely what you want to do, possibly with an
example. I don't understand what is an "org-mode line item".

Regards,

-- 
Nicolas Goaziou

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

* Re: Mark-and-select an item in org-mode
  2018-06-14 18:58 Mark-and-select an item in org-mode Steve Quezadas
  2018-06-14 19:05 ` Nicolas Goaziou
@ 2018-06-14 19:22 ` Samuel Wales
  1 sibling, 0 replies; 3+ messages in thread
From: Samuel Wales @ 2018-06-14 19:22 UTC (permalink / raw)
  To: Steve Quezadas; +Cc: emacs-orgmode

you can select /agenda/ items with m.

you can select /outline/ entries with a tag, then operate in agenda on
items that have that tag.

would be interesting to have a command to collect [org-id links to all
entries that use a tag] and stick them in a central location.  dunno
if capture could do.


On 6/14/18, Steve Quezadas <steve@thestever.net> wrote:
> I'm not sure if there's something incredibly simple I'm missing here,
> but is there a way to just select an org-mode item when a cursor is on
> top of an org-mode item?
>
> I checked google/org-mode documentation and I can't find anything. So
> I went through the source code and noticed that procedure
> "org-move-item-up" has a function, "point-at-bol", that return the
> position of the line item that the cursor is standing on top of. I
> would imagine it would be trivial to do a "select mark" command for
> that item after that.
>
> Two questions:
> 1) Is there already an org-mode function that select or delete an
> org-mode line item?
> 2) If not, is it possible to do a "set-mark-command" on an org-mode line
> item (possibly derived from the "point-at-bol" command)?
>
> I am somewhat new to emacs-lisp, and I plan to "play around with it"
> to get it to do what I want it to do, but I thought I'd through it on
> the maillist to see if I am barking up the right tree. If it's not a
> feature in org-mode, I'm sure I can write my own function for it and,
> in the spirit of emacs, throw a patch to the project if wanted.
>
> - Steve
>
>


-- 
The Kafka Pandemic: <http://thekafkapandemic.blogspot.com>

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.

"You’ve really gotta quit this and get moving, because this is murder
by neglect." ---
<http://www.meaction.net/2017/02/03/pwme-people-with-me-are-being-murdered-by-neglect>.

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

end of thread, other threads:[~2018-06-14 19:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-14 18:58 Mark-and-select an item in org-mode Steve Quezadas
2018-06-14 19:05 ` Nicolas Goaziou
2018-06-14 19:22 ` Samuel Wales

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