1. 53
  1.  

  2. 19

    Neat! Thanks for not using #!/bin/bash <3!!

    1. 7

      Thanks back for taking the time to browse my code. :)

      1. 6

        Echoing @qbit: thank you for writing portably. Beautiful and easy to understand. Great job!

      2. 11

        This is very impressive and nicely delivered (the site and the no-bullshit video). I also like the fact that the implementation is so minimalistic. Kudos!

        1. 9

          Your comment makes me feel really good because I have thought in the past about making a youtube channel called “no bullshit tutorials” - that covers a wide variety of topics with minimal BS. No need to skip to the start, skip past mumbling, or play at faster playback.

          1. 3

            Go for it.

            By principle I don’t like tutorials - they tend to never get updated misleading people later on. That said, there is one that made positive impressions on me and that’s rails casts - short, to the point with a perfect transcript of the video content.

        2. 6

          Awesome! This is what makes emacs so useful for me, eshell, dired, ffap combined mean I use the same keypress for “find file” and it just goes wherever I’m pointed, including urls.

          Reminds me of plan9 by using the clipboard as your way of getting data from every application. I wonder what it would take to get the current cursor location & file descriptor, then you could launch things from a key press without having to highlight the right section.

          1. 2

            You could install plan9port and pass the $text to plumber.

            One advantage of using acme/plumber is that you don’t have to leave the mouse. You can use three different mouse buttons to select, and with mouse chords, you can perform six different actions with the selection (plus the previous selection).

            1. 1

              Yeah definitely, the only neat thing about using xclip is it is OS wide and doesn’t need a patch per application, but it could easily be forwarded to the real plumber.

            2. 2

              This is pretty neat.

              I’ll bet it won’t be long before someone makes a Hammerspoon plugin that can do this.

              1. 1

                I hope so, I don’t use mac, but I care about spreading ideas that make software better.

              2. 1

                Nice!

                I do something similar, but the other way around: I select a file (and optional line number) and then switch to my editor and hit a hotkey that parses the current selection to find the file and line and navigate there.

                1. 3

                  Before writing this I was awkwardly opening files by hand, which was slow error prone and awful, though I refused to install language specific, or even editor specific plugins just to add this sort of simple functionality.