Re: [dev] show line number *and* column number in a search

2022-07-02 Thread Marc Chantreux
NGTH}' > > [0] https://geoff.greer.fm/ag/ you don't need match twice so awk ' match($0, /er.*/) { print $_"\n"NR":"RSTART"-"RSTART+RLENGTH }' does the trick. regards -- Marc Chantreux Direction du numérique de l'Université de Strasbourg Pôle de Calcul et Services Avancés à la Recherche (CESAR) http://annuaire.unistra.fr/p/20200

Re: [dev] gunther

2020-04-14 Thread Marc Chantreux
hello, On Tue, Apr 14, 2020 at 03:14:53PM +0400, gaspar.vardanyan.mail...@gmail.com wrote: > what is this: https://gunther.suckless.org/ ? :D i wasn't aware of this link before but gunther was (is?) a very talented german singer ;) (https://www.youtube.com/watch?v=z13qnzUQwuI) i don't know

Re: [dev] [no js web]

2020-03-06 Thread Marc Chantreux
hello, > (a couple of years) broke the support of no js web browsers. just to be sure you're aware of the digital republic law https://www.legifrance.gouv.fr/affichTexte.do?cidTexte=JORFTEXT33202746=id any source code that runs a public service is a de facto public document so you can

Re: [dev] [no js web]

2020-03-05 Thread Marc Chantreux
hello, On Wed, Feb 19, 2020 at 09:56:50PM +, sylvain.bertr...@gmail.com wrote: > As some may already know I am sueing the french administration which recently > (a couple of years) broke the support of no js web browsers. i'm a public servant and i support your goals. however, experience

Re: [dev] Re: My take at a static site generator

2019-12-12 Thread Marc Chantreux
hello, On Wed, Dec 11, 2019 at 09:02:00PM +0200, Adrian Grigore wrote: > That was my issue, the need to implement things. Along my HTML code, I > also have to implement or include libraries for common functionality. > loop(‘i’,10,‘Counter is i’) > vs > i = 1 > while ... > #! well ... i can't

Re: [dev] Re: My take at a static site generator

2019-12-11 Thread Marc Chantreux
On Wed, Dec 11, 2019 at 01:39:38PM +0200, Adrian Grigore wrote: > Regarding m4(1) I remember I wasn't a big fan of the dnl macro, no > loops and also other goodies sh(1) has to offer. this paper is worth reading: http://www.cs.stir.ac.uk/~kjt/research/pdf/expl-m4.pdf it demonstrate how to:

(sl templates?) [dev] My take at a static site generator

2019-12-10 Thread Marc Chantreux
hello people, we probably should have a wiki or something to share those ideas. the template systems i use for the moment * m4: very lightweight and powerful but fragile and hell to debug. * zpp [1]: no dependency, easy to extend but i didn't benchmarked and suppose that isn't really fast.

Re: Tom Duff about parameter expansion (Re: [dev] switching to rc: filename expansion ?)

2019-11-26 Thread Marc Chantreux
hello Tom and many thanks for replying, > I haven't worked on this in 25 years. I do not remember what I was > thinking. If it doesn't work for you, I recommend not using it. sure i was more interested by a designer perspective but yes ... 25 years: i wasn't even working in IT when you wrote rc.

Tom Duff about parameter expansion (Re: [dev] switching to rc: filename expansion ?)

2019-11-26 Thread Marc Chantreux
> I forgot, then remembered this old trick from the Rc paper, by Tom Duff [1]: > [1]: http://doc.cat-v.org/plan_9/4th_edition/papers/rc Thanks to this doc, i know who/why i have to blame for my love/hate relationship with rc: i read the code of werc something like a decade ago and really love

Re: [dev] switching to rc: filename expansion ?

2019-11-26 Thread Marc Chantreux
On Mon, Nov 25, 2019 at 10:04:11PM +, Teodoro Santoni wrote: > Hi marc! hi Teodoro! thanks for replying. > I forgot, then remembered this old trick from the Rc paper, by Tom Duff [1]: > [1]: http://doc.cat-v.org/plan_9/4th_edition/papers/rc shame on me: this page is actually open in my

[dev] switching to rc: filename expansion ?

2019-11-25 Thread Marc Chantreux
hello people, some of the things i really enjoy in zsh comes from rc (setopt rcquotes, the ^ expansion, the alternative syntax for constrol structures that are close to rc, ...) but both the codebase and the binary are very large. i'm experimenting replacing zsh by rc when the rc counterpart is

Re: [dev] Re: 9base mk doesn't work with subscripts?

2019-11-24 Thread Marc Chantreux
> recipes. The actual recipe executes how you would > expect it to. To see this, add an echo $prereq(1) > to your recipe and check the output. good to know :) > The relevant code is in mk/shprint.c. It only > handles simple variables. I thought I fixed this > years ago but I can't seem to find

Re: [dev] 9base mk doesn't work with subscripts?

2019-11-24 Thread Marc Chantreux
hello, On Sun, Nov 24, 2019 at 07:42:56PM -0500, Greg Reagle wrote: > On Sun, Nov 24, 2019, at 18:13, Marc Chantreux wrote: > > but when building index.html from index.md, i got > > mkpage index.md template(1) > $target > > instead of > > mkpage

[dev] 9base mk doesn't work with subscripts?

2019-11-24 Thread Marc Chantreux
hello suckless people, i try to remove my current tools by simpler ones when it's confortable enough. here is my make for a simple website: MKSHELL = rc sources = `{ echo *.md } pages = ${sources:%.md=pub/%.html} $pages: pub/%.html: %.md template mkpage $prereq(1) > $target but when

[dev] [ii] introduction of a config.h

2019-11-14 Thread Marc Chantreux
i don't really know if it's a good idea. the idea is: i want ii to behave the way i want by default. as dwm can be configured with a config.h, i feel ii should get the same feature. regards. marc * SET_PREFIX() macro --- config.h.sample | 1 + ii.c| 3 ++- 2 files changed, 3

Re: [dev] Re: Worse is better: Plan9 and Linux?

2019-10-31 Thread Marc Chantreux
hello, (i really thing this shouldn't happen in a dev list) > > So my question to you is: > > how do you put Linux and Plan9 into this scala? > > (I get the feeling you deliberately don't want to understand my > > question.) you are (deliberately?) elusive with your question so Laslo was