Org-capture %K "Link to the currently clocked task" link with id?

2021-05-24 Thread Nathaniel W Griswold
> 
> On May 19, 2021, at 8:26 AM, Nathaniel W Griswold  
> wrote:
> 
> Looking at the source (org-capture.el), it appears org-capture doesn't allow 
> you to make a permalink for "Link to the currently clocked task", or %K in 
> your template.
> 
> I use (org-id-link-to-org-use-id t) because i like to be able to still follow 
> links after i archive stuff. I want that behavior here so i want the link to 
> an `id:` link instead of a `file:/path/to/file` link.


Would a patch for this be welcome? Does anyone have any suggestions or ideas? I 
was thinking it should just respect current value of 
`org-id-link-to-org-use-id` but maybe there should be something more specific?

Thanks!

Nate


Quick help when pressing '?' in an agenda view?

2021-05-24 Thread Nathaniel W Griswold
I noticed that org-agenda-mode stands out in that '?' is not bound to open some 
kind of help by default. Org agenda is unique in this, it is the first out of 
many views i have used that did not have '?' bound to open some kind of help. 
Seems to be convention in pretty much anything builtin to emacs or added by 
third party that takes over a buffer and interacts with the user. Some examples 
of builtin are dired, list-buffers, ibuffer, list-bookmarks.

'?' is currently default `org-agenda-show-the-flagging-note`, i haven't used 
that quite yet.

There hasn't been much discussion on the list about this, There was brief 
discussion on the list about 'h' here: 
https://orgmode.org/list/87v9b6qn23@gmail.com/. Maybe most people don't 
really care about this. Do other people ever use '?' or was that just me 
because i came from the vim world? It was something that stood out to me when i 
first started using org-mode, so i thought i would present it to the list as 
feedback data.

I didn't realize for a while that "C-h m" opens describe-mode by default, and 
describe-mode is kinda what i wanted for my problems. I had been opening the 
org info manual, taking a couple steps to navigate to 'Agenda Commands', and 
referencing that. I then bookmarked it because i was doing it so much. Maybe i 
was being stupid but i was new to stuff and i think the '?' is intended for 
people who are getting started and it would have helped me out there.

Anyway, just some thoughts.

Thank you, everyone. Great work on the software.

Nate


Re: Org-capture %K "Link to the currently clocked task" link with id?

2021-05-19 Thread Nathaniel W Griswold
Rereading my message, i realized it might not be clear what i mean here.

I use (org-id-link-to-org-use-id t) because i like to be able to still follow 
links after i archive stuff. I want that behavior here so i want the link to an 
`id:` link instead of a `file:/path/to/file` link.

Nate

> On May 19, 2021, at 8:26 AM, Nathaniel W Griswold  
> wrote:
> 
> Looking at the source (org-capture.el), it appears org-capture doesn't allow 
> you to make a permalink for "Link to the currently clocked task", or %K in 
> your template.
> 
> `org-capture-fill-template` looks like this:
> 
> ...
>(v-K (if (marker-buffer org-clock-marker)
> (org-link-make-string
>  (format "%s::*%s"
>  (buffer-file-name (marker-buffer org-clock-marker))
>  v-k)
>  v-k)
>   ""))
> ... 
> 
> So i guess it's hardcoded to just make a bracket link.
> 
> I guess i can hack something, but can you guys make a nice change to the 
> source so that i can have a permalink to my clocked in task? Or is there 
> something i'm missing and i can actually do it already?
> 
> Thank you
> 
> Nate




Org-capture %K "Link to the currently clocked task" link with id?

2021-05-19 Thread Nathaniel W Griswold
Looking at the source (org-capture.el), it appears org-capture doesn't allow 
you to make a permalink for "Link to the currently clocked task", or %K in your 
template.

`org-capture-fill-template` looks like this:

...
 (v-K (if (marker-buffer org-clock-marker)
  (org-link-make-string
   (format "%s::*%s"
   (buffer-file-name (marker-buffer org-clock-marker))
   v-k)
   v-k)
""))
... 

So i guess it's hardcoded to just make a bracket link.

I guess i can hack something, but can you guys make a nice change to the source 
so that i can have a permalink to my clocked in task? Or is there something i'm 
missing and i can actually do it already?

Thank you

Nate


Re: begin_src Indentation in org 9.4.4, 9.4.5

2021-05-15 Thread Nathaniel W Griswold
!!!

Great!

> On May 15, 2021, at 6:50 AM, Bastien  wrote:
> 
> Hi Nathaniel,
> 
> Ihor Radchenko  writes:
> 
>> Nathaniel W Griswold  writes:
>>> The formatting i get looks strange:
>>> 
>>> #+begin_src sh
>>>echo hi
>>>  echo hi
>>> #+end_src
>> 
>> Confirmed on master.
> 
> Fixed in the maint branch, thanks.
> 
> -- 
> Bastien




Re: begin_src Indentation in org 9.4.4, 9.4.5

2021-05-07 Thread Nathaniel W Griswold
Sorry i think i scared my email client. I looked at my raw message and some 
wacky stuff got inserted. I'm rewriting the original message here:

I am wondering if other people experience odd formatting when doing the 
following in org 9.4.4 and org 9.4.5:

# emacs -Q /tmp/blah.org

M-x org-insert-structure-templatesshecho hiecho hi



The formatting i get looks strange:

#+begin_src sh
echo hi
  echo hi
#+end_src


Thank you


> On May 7, 2021, at 4:03 PM, Nathaniel W Griswold  wrote:
> 
> I messed up the paste, it's supposed to be:
> 
> --
> #+begin_src sh
>echo hi
>  echo hi
> 
> #+end_src
> --
> 




Re: begin_src Indentation in org 9.4.4, 9.4.5

2021-05-07 Thread Nathaniel W Griswold
I messed up the paste, it's supposed to be:

--
#+begin_src sh
echo hi
  echo hi

#+end_src
--

> On May 7, 2021, at 4:01 PM, Nathaniel W Griswold  wrote:
> 
> If i launch emacs with emacs -Q /tmp/blah.org
> 
> M-x org-insert-structure-templatesshecho hiecho hi
> 
> It looks like this:
> 
> omw
> 
> --
> #+begin_src sh
> 
>echo hi
>   
>  echo hi  
>   
> 
> #+end_src 
> --
>
> 
> Is this supposed to be the default behavior or am i doing something wrong?
> 
> Nate




begin_src Indentation in org 9.4.4, 9.4.5

2021-05-07 Thread Nathaniel W Griswold
If i launch emacs with emacs -Q /tmp/blah.org

M-x org-insert-structure-templatesshecho hiecho hi

It looks like this:

omw

--
#+begin_src sh  
  
echo hi 
 
  echo hi   
 

 
#+end_src 
--  
 

Is this supposed to be the default behavior or am i doing something wrong?

Nate