• 0 Posts
  • 95 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle
  • No, it’s a shell feature. Terminal emulators don’t even know what shell are running typically, and I haven’t heard of them adding shell features. That would require the terminal emulator knowing you’re using bash, knowing how to interrogate history etc…

    From man bash:

           yank-last-arg (M-., M-_)
                  Insert  the last argument to the previous command (the last word
                  of the previous history entry).  With a numeric argument, behave
                  exactly  like  yank-nth-arg.   Successive calls to yank-last-arg
                  move back through the history list, inserting the last word  (or
                  the  word  specified  by the argument to the first call) of each
                  line in turn.  Any numeric argument supplied to these successive
                  calls  determines  the direction to move through the history.  A
                  negative argument switches the  direction  through  the  history
                  (back or forward).  The history expansion facilities are used to
                  extract the last word, as if the "!$" history expansion had been
                  specified.
    






  • Sorry it’s not a very direct answer but this is one of the many things that make Emacs such a comfortable environment once you’re used to it, which takes … a while.

    There is a man command and then of course it’s just more text displayed so you can search and narrow and highlight etc. in the same way you do with any other text. Plus of course there are a few trivial bonuses like links to other man pages being clickable.

    It’s all text and Emacs is a text manipulation framework (that naturally includes some editors).








  • sping@lemmy.sdf.orgtoProgramming@programming.devWhy is Go syntax so messy
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    4
    ·
    2 months ago

    I’m not triggered by any of this. I’m not sure why my thinking the question is inane would count as “being triggered”.

    Upvotes does not necessarily mean people agree with OP’s stance.

    It should mean they think it’s a useful/interesting question and I think it very much is not. It’s just someone whining that it doesn’t look like something they’re used to and a bunch of very patient people generously leading them through the very basics of the language that’s well covered in many introductory tutorials - as such it makes it all a waste of time and worthy of being buried.


  • sping@lemmy.sdf.orgtoProgramming@programming.devWhy is Go syntax so messy
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    14
    ·
    2 months ago

    The more time I spend on Lemmy the more depressed I am about its potential.

    Stupid, wrong-headed comments get solid upvotes if they also hint at some popular sentiment. I even see comments that are literally unreadable nonsense get solidly upvoted, either by bots or by people who just like the vibe they feel from scanning it and don’t care that it’s gobbledygook. Some content makes me wonder if half of Lemmy is just LLMs barfing back and forth at each other.

    Then this post is heavily upvoted, even though it’s nothing more than “the syntax isn’t the same as the other language(s) I have seen, waaaaa!”. Is it just people like to see Go criticized? Because there are actual real issues that could be discussed.