• marswarrior@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      2 years ago


      This will allow you to ctrl+s to save. I tried to add this in a backtick code line/block but it removes part of the syntax.

      • calzone_gigante@lemmy.eco.br
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        I use quake style terminals, and often start writing a file and completely forget about it and turn off the computer, and only remember what i left behind when i find the random recovery files around, so :w a lot is quite useful for me.

          • calzone_gigante@lemmy.eco.br
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            Yes, on classic fps you could spaw a console that will drop down from the top os the screen, some terminal emulators allow you to do that.

            I like it because then i have the terminal always open that i just draw from the top of the screen with a keypress

            On KDE i do that with Yakuake, and on gnome with tilix

  • QuazarOmega@lemy.lol
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    We can optimize this further:

    unsatisfied = true
    while(unsatisfied) {
        key.dispatch(
            Keyboard::Ctrl,
            Keyboard::s
        )
    }
    

    …No, there is no instance where unsatisfied changes state