Hacker Newsnew | past | comments | ask | show | jobs | submit | afefers's commentslogin

Can you explain how you achieve this?


Shells that use readline (such as bash) may have a history search feature built-in and on by default. Try pressing Ctrl-r or Cmd-r and see if a prompt pops up.

You can build your own workflow by hand by doing something like:

1. Turn on your shell’s feature to record command history.

2. Look into its feature set to control things such as how many entries it remembers, whether it remembers duplicate entries, and whether it timestamps each entry. (Don’t forget to restart each instance of your shell, if needed, for changes to take effect.)

3. Install a tool such as fzf that allows interactive filtering of arbitrary text. (Via Homebrew it’s `brew install fzf`. It’s likely something similar for other package managers.) These tools usually: read lines of input, prompt the user to optionally filter but eventually select a line, then just print that line.

4. Write the necessary shell script(s) / functions / aliases to do things like:

+ invoke the fuzzy-finder on the shell’s history file or a modified version of that file (for example, a modified version that excludes bash’s timestamp lines, or that joins them - perhaps in a human-readable format - with the command it timestamps.)

+ process the output of the fuzzy-finder tool (for example, to copy the command to the clipboard, paste it into the shell, or execute it immediately - which will necessitate things like removing any timestamps or additional notation added in the previous step.)

Step 4 can be easy as something approximating (I’m on mobile right now):

   fzf “$HOME/.bash_history” | copy-to-clipboard


Fzf installs hooks automatically for ctrl+r and a bunch of other stuff

Search for `fzf --bash`. Note that the version in the ubuntu repos is too old to have this feature (I think)


Not op but you need fzf and you need to increase the history size of your bash/ssh whatever

https://github.com/junegunn/fzf


Huh! All this time I thought the "super" was just for branding/differentiation.


Alignment was the original term, but has been largely coopted to mean a vaguely similar looking concept of public safety around the capabilities of current models.


That was definitely part of it.


Not Apple... At least as far as I known.


But Apple now seemed to enter some kind of agreement with OpenAI, not sure if Ilya or OpenAI would want to work together even via proxy.


Firefox doesn't have support for AppleScript and this is crucial to my browser habits/workflow. Both Safari and Chrome/Chromium-based browsers have it. Once/if Firefox adopts it, which I doubt but hope so, I'll consider using it.

Here is the 22 years old ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=125419


There are probably hundreds of macOS specific bugs that Mozilla will never fix.

Firefox is probably the worst browser in the terms of feeling native to macOS.

These aren’t minor, cosmetic issues but glaring omissions in functionality.

Here’s one on the missing support for the macOS password autofill api. https://bugzilla.mozilla.org/show_bug.cgi?id=1650212

Safari and Orion are much better options.


> Add AppleScript support and capabilities to Mozilla on Mac OS 9 and X.

That was 3 whole CPU architectures ago, damn.


The irony is using a JavaScript-based static site generator to make the site: https://www.11ty.dev


Not so ironic now - as there aren't really good alternatives to a build step with a static site. But my opinion is that that may change now with the adoption of HTMX for static sites. There doesn't have to be a build step since you don't have to build full pages from their constituting parts.


You do realize that HTMX is a Javascript library?


Of course I do


Nothing ironic here. It's a different domain problem and they're using a different domain solution for it. The generator might simplify an otherwise much more complex problem down to its essence.


The killer feature for me is not being an Electron app.


Neither is kate.

Nor vim nor emacs for that matter.


Yup. I use Emacs since 2002 and am pretty happy with it. Never used an Electron-based app and probably never will.


I don't know anybody who uses Signal and isn't a programmer (on the cryptography/security side) or journalist that needs it in order to work. Anybody else uses Telegram, WhatsApp, or both. SMS if you're in the USA.


My family all use signal as to an compromise of one that I refuse to use WhatsApp.

Add WhatsApp to the list.


As someone who's new to programming and doesn't know Ruby at all, can you (or someone) please explain how it works, what it does, and how would someone use it?

I find it beautiful, tho :)


    -rcvs
Load the (built-in) CSV module in Ruby.

    -e
Eval the following string as Ruby code.

    CSV($<)
Create CSV parser with standard input `$<` as the source.

    .each 
Run the code in the block that follows for each row (automatically skips the CSV header):

    { |r| puts r[0] }
For a row, print the first/0th element. Can be simplified in recent Ruby:

    { puts _1[0] }


Thank you so much! This got me looking at the Ruby documentation about blocks. Very cool feature!


What is MLS?


Messaging Layer Security: https://en.wikipedia.org/wiki/Messaging_Layer_Security -- basically TLS for messaging apps


I would love to see this money ($30M) being given to Andreas Kling and others behind Ladybird (the browser from SerenityOS). I'm pretty sure in 1-2 years they would have a better browser than the current Firefox.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: