emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alexei Gilev <gerardomoro37@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Pasting an image with org-download in org-capture buffer
Date: Thu, 8 Dec 2022 17:12:22 +0200	[thread overview]
Message-ID: <CAF4Fj9hz46FkbswbVm0tYMsWYEQoNf55EGQT-sJgyUsaKWYZsA@mail.gmail.com> (raw)

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

<https://emacs.stackexchange.com/posts/14684/timeline>

Hi,

I'm pretty sure somebody must have come with a solution for this basic task.

I want to paste a screenshot while in org-capture buffer.

However, org-download takes saves the screenshot image in a (already
existing otherwise created) folder with the same name as the buffer the
org-capture will save the text into.

However, org-capture buffers are indirect buffers, so the buffer-file-name
is nil, so it fails.

How is it possible to tell Emacs to get this info from the org-capture
buffer rule itself? How to get this path and save the images while in the
org-capture indirect buffer?

The other solution is just to capture, and then open it and paste the
image, but that defeats the purpose of the org-capture buffer itself.

Thanks so much in advance,

A.

[-- Attachment #2: Type: text/html, Size: 8000 bytes --]

             reply	other threads:[~2022-12-08 15:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-08 15:12 Alexei Gilev [this message]
2022-12-08 16:08 ` Pasting an image with org-download in org-capture buffer Max Nikulin
2022-12-10 10:08   ` Ihor Radchenko
2022-12-10 12:27     ` Max Nikulin

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=CAF4Fj9hz46FkbswbVm0tYMsWYEQoNf55EGQT-sJgyUsaKWYZsA@mail.gmail.com \
    --to=gerardomoro37@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).