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

Vimscript is extremely token efficient and very common in training data.

Dunno about constraining to a window, but vimscript itself could be a good way of sending editing commands.


Wow, this is so much easier than what i’ve been doing:

:call system('kill -9 ' . getpid())


Brilliant. When is the next International Obfuscated Vim Exit contest?

I misread that as "Intentional Obfuscated Vim Exit contest", which led me to wonder what the Unintentional version would bring.

Haha, my version of that is accidentally closing a split when I meant to drop a buffet, or vice versa, losing either my work or my layout.

`:!sudo shutdown`

Wow, for once it isn't US-East-1


IMO this isn’t the job of the emulator. You can do this all in `tmux` for example.

As for editing text, ghostty+tmux most definitely supports editing text with the mouse (even an in terminal right click menu!) although sounds like your intended use of select to delete isn’t common so you’ll need to do some customizations.


What makes you say that isn't the job the emulator? Sure it is. In fact, tmux itself is a terminal emulator that you just so happen to run inside of another terminal emulator that you want to multiplex.


I’ve been using scroll back search for 15+ years with Terminal.app and iTerm2, and there’s no way that’s not the job of the terminal. You don’t know how good that is until you use it.


Tmux does it better


What am I missing?


+1


Specifying a CSPRNG as an entropy source to avoid collision is incorrect.

CSPRNGs make prediction of the next number difficult (cracking-AES difficulty) but do not add entropy and must be seeded uniquely otherwise they will output the same numbers. Unless the author is proposing having the same machine generate a single universe-scale list in one run.

Also “banning” ids that are all 1s or 0s is silly; they are just as valid and unique as any other number if you’re generating them properly. Although I might suggest purchasing a lottery ticket if you get an UUID with all settable bits as 1.


Banning 0s might be to avoid conflicts of with testing? Kind of like how you’d want to block logins with emails that have a domain example.com. Idk I’m grasping at straws


It’s good to have some known invalid identifiers. They are times where you want to use one that can’t possibly be valid. Having them be easily memorable and obviously invalid is good too.

Imagine if example.com was freely available for anyone to register, think of all the email they could get.


Stealing this for error logging levels


The bristol stool scale also works well. Although that’s better for sprint planning maybe..


I live in south Bristol where the “Bristol stool scale” and the “pubs that need your help” overlap distressingly.


Thanks for pointing out the stool scale. I went from "hahaha I'm sure this some kind of 'how shitty stuff is'" to "let me see how it works" to "oh, it's actually a useful medical chart" lol


so...you got me. thinking it might have something to do with out worn the stools in your pub are. nope it's just, you know, stool.


s/Somehow/Possibly/g haha but I like that idea!


Looks similar to the iOS/macOS photos app

Might be neat for a service like Earthcam or Insecam, or packaged as an electron app to view folders of photos by EXIF location.


Is the full path guaranteed? For example homebrew, snap, and apt might put it all in different places. $PATH is a useful tool.


But not in this case where you have two executables with the same name.

You have to know where the tool was installed or else be certain no other sl is on your path.


Alt-tabbing (or cmd-Q if you’re done) back to your terminal window after running `subl` to edit a file is equivalent difficulty (as measured by keystrokes) to exiting nano or vim.


I'm on Linux and I just use one keystroke to switch (F2). I have F1 F2 F3 F4 keys binded to change to virtual desktops 1 2 3 4. 1 -> Console(s) 2 -> Editor (sublime) 3 -> Browser (Firefox) 4 -> Misc (File browser, other apps)


I've been using iterm for years mainly because it has a Quake style terminal window. I realise how I just can't get to grips with tabbing through screens on either macos and windows anymore, not with having multiple browser profiles (personal and work) and screens open. I should figure out a solution to that, but at the same time I decided that I should keep my various employers (I'm a contractor/consultant/temp/whatever) separated better, so, different browser profiles, password databases, etc.


Isn't that kind of where macOS features like Exposé and Mission Control come in handy?


I recall a few times accidentally opening GB-sized files and sublime having no perceptable performance impact. Sublime is stupendously performant.


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

Search: