~lioploum/offpunk-users

3 2

[x@maillard.im: Feed offpunk outside the CLI]

Xavier Maillard <x@maillard.im>
Details
Message ID
<8086f2ed85d06aac43ff59fe9bf2477e@maillard.im>
Sender timestamp
1741415951
DKIM signature
pass
Download raw message
Hello,

sent this to the wrong list...

------- Start of forwarded message -------
Date: Fri, 07 Mar 2025 06:41:42 +0100
Message-ID: <0e61631b880f1c019342c8ce93b4a3a6.x@maillard.im>
Content-Type: text/plain; charset=Utf-8
From: Xavier Maillard <x@maillard.im>
To: help-gnu-emacs@gnu.org
Subject: Feed offpunk outside the CLI
Reply-To: x@maillard.im

Hello,

I mostly am living into GNU Emacs and doing everything from it.  Say I
have a mail buffer containing an URL I'd like to consult 'offline'.

What's the correct method to /feed/ offpunk ?

I see I can do offpunk --launch go URL but I also see there is a --fetch-later argument.

Whats is the recommended approach ?
- -- 
Xavier Maillard (https://www.maillard.im)
Partagez votre super pouvoir! (https://dondesang.efs.sante.fr/)

GPG: 84C7 EF28 760F 49A7 D7C0  BFD7 141B AF53 291E 888D
------- End of forwarded message -------



-- 
Xavier Maillard (https://www.maillard.im)
Partagez votre super pouvoir! (https://dondesang.efs.sante.fr/)

GPG: 84C7 EF28 760F 49A7 D7C0  BFD7 141B AF53 291E 888D
Details
Message ID
<174142512289.7.11293228096319036892.628429423@ploum.eu>
In-Reply-To
<8086f2ed85d06aac43ff59fe9bf2477e@maillard.im> (view parent)
Sender timestamp
1741425118
DKIM signature
pass
Download raw message
Le 25 mar 08 06:39, Xavier Maillard a écrit :
>
>What's the correct method to /feed/ offpunk ?
>
>I see I can do offpunk --launch go URL but I also see there is a --fetch-later argument.

--launch will open offpunk with that URL

--fetch-later will mark the URL as to be downloaded and put in tour 
during the next sync.


You want to use "--fetch-later"


I’ve the following function in my .zshrc:


toread(){
	~/dev/offpunk/offpunk.py --fetch-later `wl-paste -p`
}	


That function allows me to put any URL in my copy/paste buffer to be 
marked as "to_fetch".
-- 
Ploum - Lionel Dricot

Blog: https://www.ploum.net
Bikepunk: https://bikepunk.fr/
Xavier Maillard <x@maillard.im>
Details
Message ID
<3d7a9ce38253242911b8fff522c3650d@maillard.im>
In-Reply-To
<174142512289.7.11293228096319036892.628429423@ploum.eu> (view parent)
Sender timestamp
1741552677
DKIM signature
pass
Download raw message
> You want to use "--fetch-later"

Ok, got it.

> toread(){
> 	~/dev/offpunk/offpunk.py --fetch-later `wl-paste -p`
> }	

Nice one I will add it to my fish config.

-- 
Xavier Maillard (https://www.maillard.im)
Partagez votre super pouvoir! (https://dondesang.efs.sante.fr/)

GPG: 84C7 EF28 760F 49A7 D7C0  BFD7 141B AF53 291E 888D
Details
Message ID
<174155016587.7.13087989112082267249.629931370@ploum.eu>
In-Reply-To
<3d7a9ce38253242911b8fff522c3650d@maillard.im> (view parent)
Sender timestamp
1741550157
DKIM signature
pass
Download raw message
Le 25 mar 09 08:37, Xavier Maillard a écrit :
>> You want to use "--fetch-later"
>
>Ok, got it.
>
>> toread(){
>> 	~/dev/offpunk/offpunk.py --fetch-later `wl-paste -p`
>> }
>
>Nice one I will add it to my fish config.

In fish, I created .config/fish/functions/toread.fish which contains:


function toread
	set buf1 $(wl-paste -p)
	set buf2 $(wl-paste)
	if $buf1
		~/dev/offpunk/offpunk.py --fetch-later $buf1
	end
	if $buf2
		~/dev/offpunk/offpunk.py --fetch-later $buf2
	end
end


(this allows to work with both the "select" and "ctrl+c" buffers in 
wayland)
-- 
Ploum - Lionel Dricot

Blog: https://www.ploum.net
Bikepunk: https://bikepunk.fr/
Reply to thread Export thread (mbox)