Re: guix open
On Mon, Nov 21, 2022 at 08:43 AM, jgart wrote: > On Mon, 21 Nov 2022 12:07:32 +0100 Ludovic Courtès wrote: >> ‘guix show’ prints the home page URL, which is clickable in recent >> terminal emulators. Do we need something more? > > Hi Ludo, what terminal emulator are using, kitty or alakitty? I am not Ludo (last I checked), but I use kitty and can click on links to open them in a browser. Even the "location" field will work, opening it from the store. I'm not sure what is set by default, perhaps ctrl+left click as that's what I have on one computer. While another I definitely changed it so it is just a regular left click.
Re: guix open
On Mon, 21 Nov 2022 12:07:32 +0100 Ludovic Courtès wrote: > ‘guix show’ prints the home page URL, which is clickable in recent > terminal emulators. Do we need something more? Hi Ludo, what terminal emulator are using, kitty or alakitty?
Re: guix open
Tobias Geerinckx-Rice skribis: > jgart 写道: >> what do you think of having a `guix open` command that opens the >> projects >> home-page in your $BROWSER? > > […] > >> bloat? > > Yes — as ‘guix open’ — but it would make a nice addition to ‘guix > show’. ‘guix show’ prints the home page URL, which is clickable in recent terminal emulators. Do we need something more? Ludo’.
Re: guix open
Hi, On Fri, 18 Nov 2022 at 13:49, jgart wrote: > what do you think of having a `guix open` command that opens the projects > home-page in your $BROWSER? It is already possible, thanks Unix composability. :-) $BROWSER $(guix show hello | recsel -P homepage) Well, ’recsel’ from the package recutils is unusual and appears a bit weird at first but it is very powerful once RTFM. :-) Cheers, simon
Re: guix open
Hi, On Fri, 18 Nov 2022 at 20:25, "(" wrote: > On Fri Nov 18, 2022 at 8:22 PM GMT, Tobias Geerinckx-Rice wrote: >> Yes — as ‘guix open’ — but it would make a nice addition to ‘guix >> show’. > > How would that interact with ``guix package --show''? Perhaps it might > be better to add a ``guix package --open'' option? Currently “guix show” is an alias of “guix package --show=” and we could start to do the contrary, “guix package --show=” would be using “guix show”. Mainly for maintaining backward compatibility. But “guix show” could evolve this own way supporting options that would not be supported by legacy “guix package --show=”. WDYT? It would avoid some headache. ;-) Cheers, simon
Re: guix open
On Sun, 20 Nov 2022 07:45:31 + Mekeor Melire wrote: > what's the advantage over this one-liner? > > guix show recutils | recsel -P homepage | xargs xdg-open too many characters to type but I think I will turn that one-liner into a script, add it to my dots, and consider this feature completed ;() Thanks for sharing!
Re: guix open
2022-11-18 / 13:49 / jg...@dismail.de: > what do you think of having a `guix open` command that opens the projects > home-page in your $BROWSER? > > For example, in case you want to specify the browser and override the default > $BROWSER (e.g. icecat): > > guix open nnn --browser=chromium > > bloat? what's the advantage over this one-liner? guix show recutils | recsel -P homepage | xargs xdg-open
Re: guix open
On Sat, 19 Nov 2022 08:54:42 + "(" wrote: > What would that even do? :) Run `M-x doctor` in GNU Emacs > > bloat? Ya
Re: guix open
On Sat Nov 19, 2022 at 12:40 AM GMT, jgart wrote: > Not sure, but maybe we should also add a guix package --bike-shed-alarm, > similar M-x doctor in GNU Emacs... What would that even do? :) > bloat? Yeah :) -- (
Re: guix open
On Fri, 18 Nov 2022 21:47:26 +0100 Tobias Geerinckx-Rice wrote: > (My bike shed alarm is now positively howling, but I feel like my > unconditional support for the actual feature makes that almost > OK?) Not sure, but maybe we should also add a guix package --bike-shed-alarm, similar M-x doctor in GNU Emacs... bloat?
Re: guix open
( 写道: How would that interact with ``guix package --show''? Perhaps it might be better to add a ``guix package --open'' option? Ah, damn, yes. I didn't think of that. (Actually, I think this nicely illustrates the folly of adding cute subcommands that should be options. It illustrates this, er, ~somehow!~, but it does.) Yes, ‘guix package --open-home-page’, ‘--open-browser’, whatever, but again be a bit more descriptive. (My bike shed alarm is now positively howling, but I feel like my unconditional support for the actual feature makes that almost OK?) Kind regards, T G-R signature.asc Description: PGP signature
Re: guix open
On Fri Nov 18, 2022 at 8:22 PM GMT, Tobias Geerinckx-Rice wrote: > Yes — as ‘guix open’ — but it would make a nice addition to ‘guix > show’. How would that interact with ``guix package --show''? Perhaps it might be better to add a ``guix package --open'' option? -- (
Re: guix open
jgart 写道: what do you think of having a `guix open` command that opens the projects home-page in your $BROWSER? […] bloat? Yes — as ‘guix open’ — but it would make a nice addition to ‘guix show’. Kind regards, T G-R signature.asc Description: PGP signature
Re: guix open
Heya, On Fri Nov 18, 2022 at 7:58 PM GMT, jgart wrote: > How would I do the above with recsel instead of awk? guix show git-open | recsel -P homepage -- (
Re: guix open
On Fri, 18 Nov 2022 19:51:33 + "(" wrote: > this instead for the command, though: > > guix home-page hello hi, thanks! I was just thinking of guix open like git open: $ guix show git-open | awk 'FNR == 8 {print}' homepage: https://github.com/paulirish/git-open How would I do the above with recsel instead of awk?
Re: guix open
On Fri Nov 18, 2022 at 7:49 PM GMT, jgart wrote: > guix open nnn --browser=chromium I actually quite like this idea! I think maybe we could use something like this instead for the command, though: guix home-page hello -- (
guix open
hi guixers, what do you think of having a `guix open` command that opens the projects home-page in your $BROWSER? For example, in case you want to specify the browser and override the default $BROWSER (e.g. icecat): guix open nnn --browser=chromium bloat? ;()