Re: $EDITOR and “guix edit”

2024-01-12 Thread Simon Tournier
On Fri, 12 Jan 2024 at 20:46, Liliana Marie Prikler wrote: > PS: I should probably just write the patch myself at this point, but I > feel like it'll be misunderstood either way. Sorry but I do not understand how your proposal would work in tandem with the current "guix edit". So yes, please

Re: $EDITOR and “guix edit”

2024-01-12 Thread Liliana Marie Prikler
Am Freitag, dem 12.01.2024 um 19:49 +0100 schrieb Simon Tournier: > Hi, > > On Fri, 12 Jan 2024 at 18:39, Liliana Marie Prikler > wrote: > > > > Well, I see how to write specific Scheme wrapper around $EDITOR; > > > as I did in [1]. > > > > > > Or, I see how to tweak guix/scripts/edit.scm for

Re: $EDITOR and “guix edit”

2024-01-12 Thread Simon Tournier
Hi, On Fri, 12 Jan 2024 at 18:39, Liliana Marie Prikler wrote: > > Well, I see how to write specific Scheme wrapper around $EDITOR; as I > > did in [1]. > > > > Or, I see how to tweak guix/scripts/edit.scm for running specific > > launcher depending on $EDITOR. > > > > Liliana, could you

Re: $EDITOR and “guix edit”

2024-01-12 Thread Liliana Marie Prikler
Am Freitag, dem 12.01.2024 um 10:35 +0100 schrieb Simon Tournier: > Hi, > > On Mon, 20 Nov 2023 at 20:33, Liliana Marie Prikler > wrote: > > > >  2. Do we put this code in some etc/vscode-wrapper that user can > > >  install?  (or that we could automatically installl) Or maybe > > > revamp it 

Re: $EDITOR and “guix edit”

2024-01-12 Thread Simon Tournier
Hi, On Mon, 20 Nov 2023 at 20:33, Liliana Marie Prikler wrote: >>  2. Do we put this code in some etc/vscode-wrapper that user can >>  install?  (or that we could automatically installl) Or maybe revamp >> it >>  for calling this code via some shell function? > > With VSCode et al. not being

Re: $EDITOR and “guix edit”

2023-12-09 Thread Liliana Marie Prikler
Am Samstag, dem 09.12.2023 um 10:24 +0100 schrieb Ludovic Courtès: > Hi Liliana, > > Liliana Marie Prikler skribis: > > > > > Maybe we can check for a guix_editor shell function and invoke > > > > that > > > > rather than EDITOR if defined? > > > > > > ‘guix edit’ cannot “invoke” a shell

Re: $EDITOR and “guix edit”

2023-12-09 Thread Ludovic Courtès
Hi Liliana, Liliana Marie Prikler skribis: >> > Maybe we can check for a guix_editor shell function and invoke that >> > rather than EDITOR if defined? >> >> ‘guix edit’ cannot “invoke” a shell function though. >> >> I was thinking of something more gross, like checking whether the >>

Re: $EDITOR and “guix edit”

2023-11-22 Thread Liliana Marie Prikler
Am Mittwoch, dem 22.11.2023 um 19:21 +0100 schrieb Ludovic Courtès: > Hello, > > Liliana Marie Prikler skribis: > > > Am Donnerstag, dem 16.11.2023 um 16:25 +0100 schrieb Ludovic > > Courtès: > > [...] > > > > It’d be nice to support these as well.  However, how do we know > > > we’re > > >

Re: $EDITOR and “guix edit”

2023-11-22 Thread Ludovic Courtès
Hello, Liliana Marie Prikler skribis: > Am Donnerstag, dem 16.11.2023 um 16:25 +0100 schrieb Ludovic Courtès: [...] >> It’d be nice to support these as well.  However, how do we know we’re >> dealing with kate or VSCode?  By checking the basename of $EDITOR? >> Kinda ugly and brittle, but

Re: $EDITOR and “guix edit”

2023-11-20 Thread Liliana Marie Prikler
Am Montag, dem 20.11.2023 um 10:40 +0100 schrieb Simon Tournier: > Hi, > > On Thu, 16 Nov 2023 at 17:04, Liliana Marie Prikler > wrote: > > > > It’d be nice to support these as well.  However, how do we know > > > we’re dealing with kate or VSCode?  By checking the basename of > > > $EDITOR?

Re: $EDITOR and “guix edit”

2023-11-20 Thread Simon Tournier
Hi, On Thu, 16 Nov 2023 at 17:04, Liliana Marie Prikler wrote: >> It’d be nice to support these as well.  However, how do we know we’re >> dealing with kate or VSCode?  By checking the basename of $EDITOR? >> Kinda ugly and brittle, but probably better than nothing. > > Maybe we can check for

Re: $EDITOR and “guix edit”

2023-11-16 Thread Liliana Marie Prikler
Am Donnerstag, dem 16.11.2023 um 16:25 +0100 schrieb Ludovic Courtès: > Liliana Marie Prikler skribis: > > > Am Donnerstag, dem 02.11.2023 um 10:43 +0100 schrieb Simon > > Tournier: > > > Hi, > > > > > > The command “guix edit” returns “+N path/to/file” that is then > > > passed to $EDITOR. 

Re: $EDITOR and “guix edit”

2023-11-16 Thread Ludovic Courtès
Liliana Marie Prikler skribis: > Am Donnerstag, dem 02.11.2023 um 10:43 +0100 schrieb Simon Tournier: >> Hi, >> >> The command “guix edit” returns “+N path/to/file” that is then passed >> to $EDITOR.  Therefore $EDITOR needs the command line: >> >>     $ $EDITOR +N /path/to/file >> >> Well,

Re: $EDITOR and “guix edit”

2023-11-02 Thread Liliana Marie Prikler
Am Donnerstag, dem 02.11.2023 um 10:43 +0100 schrieb Simon Tournier: > Hi, > > The command “guix edit” returns “+N path/to/file” that is then passed > to $EDITOR.  Therefore $EDITOR needs the command line: > >     $ $EDITOR +N /path/to/file > > Well, that is accepted by many $EDITOR, to my