From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ANohLI4XV1+IBgAA0tVLHw (envelope-from ) for ; Tue, 08 Sep 2020 05:33:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SMQRKI4XV19ODQAAB5/wlQ (envelope-from ) for ; Tue, 08 Sep 2020 05:33:02 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CED619404C5 for ; Tue, 8 Sep 2020 05:33:01 +0000 (UTC) Received: from localhost ([::1]:59530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFWFX-0004zM-5z for larch@yhetil.org; Tue, 08 Sep 2020 01:32:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFW4Q-0007Tn-29 for emacs-orgmode@gnu.org; Tue, 08 Sep 2020 01:21:30 -0400 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:38561) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kFW4O-0006Ai-7n for emacs-orgmode@gnu.org; Tue, 08 Sep 2020 01:21:29 -0400 Received: by mail-pj1-x1034.google.com with SMTP id u3so4184043pjr.3 for ; Mon, 07 Sep 2020 22:21:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:message-id :date:mime-version; bh=pO+KqODj4GEL0g0/AYi/xWqjLqeB6+Xq8+EgSJV9EGE=; b=R6QMUOXsz6AdGZzbLHzHyykGXCPfunHuuCdB4NdYKiEizuswdPM8NTJ0jDd/SmZJ+Q oLlyPUc+UFokISmYWJOj4PqddP9RdvO22AxZW7yYxIZlEDYSYXn6+VSEuxSmXWBlus94 kecjj6lDNUHcz2dG1S7jvfvpkDLLrisdSYGGhDrwm5/8hLatuNVmILuFok71KVeFGhl6 LUHTimFvHg3J3iTj4m5bApDuo5xzOxi9Bh/o1pKELzFuwtvb7T2G0EhHbCEDk87CQCwv iUZFH4JCUN6ahai2+Df753URk/dTcdS2PZYiu2OtPvnBjc0wYa0U9GCSpbUJJ35o3AuO IWtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:message-id:date:mime-version; bh=pO+KqODj4GEL0g0/AYi/xWqjLqeB6+Xq8+EgSJV9EGE=; b=aFBcXfHTASZz0YOFx0iblufVTNWHABHCkek5G47r54fGN4SwBkL5J5nm2nOd7KtBAF yfm2zGAqG6kGkhHelUBZFljJRegxitWFkl0L9EgerqBjAOHEBsSqBzbcieePhMgy5oj9 MO3dQV9GQ4zd2HWezabh2hdiB0JNdFpsPphtELIm3MbdXF5QkgFKe+rhDD269f7TKKd2 c/EQr/lBM7TsBT3tuM3dhQMGNF5f64fZY9S0Qr95w0RHLOmaXhVfiM11wjQRdhlT4MUh yhiO/eIRhONCYSG1ZW+1D0lEQfZ+khpk88/TdDWxy9zGquRzH/1ZJ/A1KYUUbMv5PjjH 6XRg== X-Gm-Message-State: AOAM531B7nviEpx3R21/xXYeMDUNJ9E41KP2wjP2bwBy/SI318DyNdA/ IA1AOq7AtLPHX6SjAsd8FltS6nW8nJ4= X-Google-Smtp-Source: ABdhPJzPsL0mWu79tBj3a1Wx6wEGxWfHO4gQhiDJpBhDQYo3fUZ56QETfvbYfXKGFkVCQ1IdT8GMbQ== X-Received: by 2002:a17:90a:dc13:: with SMTP id i19mr2468313pjv.18.1599542486452; Mon, 07 Sep 2020 22:21:26 -0700 (PDT) Received: from tim-desktop (220-235-17-161.dyn.iinet.net.au. [220.235.17.161]) by smtp.gmail.com with ESMTPSA id v21sm13787220pjn.4.2020.09.07.22.21.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 22:21:25 -0700 (PDT) References: <87sgbsq2t5.fsf@gmail.com> User-agent: mu4e 1.5.5; emacs 28.0.50 From: Tim Cross To: Samuel Wales Subject: Re: idea for capture anywhere in x In-reply-to: Message-ID: <87pn6wq1wt.fsf@gmail.com> Date: Tue, 08 Sep 2020 15:21:22 +1000 MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x1034.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=R6QMUOXs; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: vCnxnJjWWVvZ Samuel Wales writes: > well for a non-emacs application, i want to select text and capture > using wm menu. > > same thing for emacs, although it is roundabout. i just don't know > the code to set up context menus for every type of buffer is all. so > figured would just use the roundabout thing i would use for any > non-emacs application. this is for when keyboard cannot be used. > > On 9/7/20, Tim Cross wrote: >> >> Samuel Wales writes: >> >>> dunno if this is sensible, but istr you can capture using emacsclient? >>> >>> i really like hte org capture extension in firefox and want it for >>> everything in x [which means emacs itself using mouse and what little >>> else i run]. >>> >>> my idea was, to emacsclient to call org protocol to a defined capture >>> template just like the firefox extension. this would be alled from >>> the wm menu. >>> >>> is something like this possible? >> >> I don't really understand what it is your trying to do. I don't >> understand why you would want org protocol from inside emacsclient when >> you already have full access to capture in any emacs buffer, including >> emacsclient? You can already start emacscleint and tell it to run a >> command (like org-capture) and you could easily bind that to a window >> manager shortcut or menu. >> -- >> Tim Cross >> >> You don't need org protocol for that. All you need to do is call emacsclient with the -e or --eval argument, passing it the expression (org-capture). This will open (on GUI) an emacs frame with the initial org-capture buffer where you can select the template you want. Then, you just past (yank) in whatever you have copied with the mouse. How you add this to a window manager menu or key binding will depend on your window manager, but essentially, you just calling emacscleint with the argument -e (org-capture). You may need to quote the command to prevent shell interpolation of the command and you may need to add other arguments, such as -n or --no-wait etc. Once added to a menu or wm hot key, you then just need to select the menu item or trigger the hotkey to bring up emacscleint and the initial capture buffer. -- Tim Cross