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
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/
> 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
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/