Live data from Hacker News

Elevator.js – A “back to top” button that behaves like a real elevator

tholman.com

291–300 of 336 posts

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#291

Earlier quoted context omitted.

On tangent, it's strange that our keyboards mostly stayed the same while the screens got around x20 better. I often need to make bigger and smaller jumps with keyboard. In Sublime I use a plug-in that can jump 10 lines up and down but I also need that functionality across the rest of OS. For navigating menus, scrolling through content, moving around spreadsheet. Page up/down is too large jump with the amount of conte…

Yeah, 10 line jumps are awesome when coding. In emacs I bind this behaviour to the ctrl-up and ctrl-down like so: (global-set-key [C-down] '(lambda () (interactive) (next-line 10) )) (global-set-key [C-up] '(lambda () (interactive) (previous-line 10) ))

That's exactly it. Before that I tried AceJump, but it demanded attention while this method becomes like a second nature.

I probably need a scriptable keyboard to make it work across all programs. Some keyboards support Lua, but I think it's only for LED patterns which is pretty retarded.

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#292
post #79
post #68

The "back to top" functionality is so useful in web pages. I wish they would make a dedicated button on keyboards that just takes you to the top of the page. Better yet, it can work in other apps too! It could, for example, take you to the beginning of a line when you're writing text. Edit: Wow, I thought I was going the extra mile to make the joke obvious by saying the key should also take you to the beginning of a…

Hacker News attracts a lot of smart readers, so I'm kind of surprised that your comment actually 'fooled' people. It was very obvious sarcasm.

> Hacker News attracts a lot of smart readers

Ahh, I see you're also trying your hand at sarcasm!

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#294
post #193

Earlier quoted context omitted.

Vimum plugin gg - go to top G - go to bottom You can also go anywhere on page (litterary) with single key (homework). Much better then home/end as you usually need to hunt for those keys, or even use them with Fn modifier.

The problem with plugins is that they give full control over your browsing to whoever controls the plugin. I sometimes install plugins myself if the code is open source and it is small enough for me to vet it. I would love vimium, but the code is way too big to vet it myself. I wish there was some party that is trustworthy, vets codebases like these and publish hashes of trusted versions. An alternative would be more…

I think you are being overly paranoid.

If you want to fight for security on that level, your computer life must be miserable. You are also missing out a lot of great tools and are way less effective then folks that use them (and thus less competitive).

I am all up for great security in OS, emails, browsers, messangers etc, but it has to stop somewhere. Also, this kind of stuff like vimium is so widely used that somebody would probably notice if something funky is going on (everything leaves some traces, you dont really need to look at the code to notice it most of the time).

Your proposed way to solve this issue is way worse - now, instead of having one monolitic but still simple and well rounded app you have thousands of little scripts that combined are also hessle to review, belong to way more humans with different agendas (instead of single or couple) and would be horror to initialize (really sounds like nodejs ecosystem).

Just get the damn thing and relax a bit. Anything malicious that could be done by some developer is already done by big evil corps anyway (and more) and you cant really escape those.

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#295
post #68

The "back to top" functionality is so useful in web pages. I wish they would make a dedicated button on keyboards that just takes you to the top of the page. Better yet, it can work in other apps too! It could, for example, take you to the beginning of a line when you're writing text. Edit: Wow, I thought I was going the extra mile to make the joke obvious by saying the key should also take you to the beginning of a…

Vimum plugin gg - go to top G - go to bottom You can also go anywhere on page (litterary) with single key (homework). Much better then home/end as you usually need to hunt for those keys, or even use them with Fn modifier.

Came here to say this. Vimium is excellent! I've been using it for the last number of years and when I switch to a new computer without it, I still fire off the `gg` and wonder why the browser isn't picking it up. It's essential to me at this point.

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#296
post #202

Earlier quoted context omitted.

For Apple 101-key keyboard users, who don’t have a “Home” key: try Cmd+Up (and Cmd+Down.) Bonus: also try Ctrl+E (and Ctrl+A) in text fields, or on the command-line. (Both of these carry over to iOS, if you’re curious. I just tested them with the iPad keyboard-folio thing.)

Lack of a working home/end function is literally the biggest reason I dislike working on a Mac. I don't understand what would be so hard about just having them work like they do on a PC.

Apple sells keyboards with Home/End keys, and they do what you'd expect (e.g. https://www.apple.com/shop/product/MQ052LL/A/magic-keyboard-...). iMacs and Mac Pros come with that type of keyboard.

You can also plug in arbitrary USB keyboards, or pair arbitrary Bluetooth keyboards, to a Mac, and the Home/End keys on those will also do what you'd expect.

Apple just doesn't bother to put Home/End/PgUp/PgDn keys on their laptops — presumably because they find that people don't need them very often; and that, when the keyboard's size is already constrained, people get more value out of fewer, larger keys (while requiring key-chords for some things) vs. more, smaller keys.

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#297

Earlier quoted context omitted.

First if all, fuck webpages that play sound unexpectedly. Secondly, what percentage of elevators even play music these days?

Secondly, what percentage of elevators even play music these days? Pretty much every elevator I've been in for the last ten years. I note it mentally because spirit of the music is always at odds with the messages on the display screens. I think the only elevators where I haven't heard music recently are in residential buildings.

Maybe it's regional, as I've never heard music in an elevator before.

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#298
post #68

The "back to top" functionality is so useful in web pages. I wish they would make a dedicated button on keyboards that just takes you to the top of the page. Better yet, it can work in other apps too! It could, for example, take you to the beginning of a line when you're writing text. Edit: Wow, I thought I was going the extra mile to make the joke obvious by saying the key should also take you to the beginning of a…

I'll be honest, even though I use the home and end keys on a daily basis while programming, I don't think it's ever occurred to me that I could use them to move around a webpage. I feel both dumb and enlightened!

Re: Elevator.js – A “back to top” button that behaves like a real elevator

#299

Earlier quoted context omitted.

Is that one of the A1048 [1] "crumb tray" keyboards with the clear rim around the edge? I recently switched to one of those from an original iMac keyboard (finally got fed up with not having a forward delete key) and the key edges and the action both feel crisper. Could just be that I've been using the other one for a decade or so though. [1]: https://en.wikipedia.org/wiki/Apple_Keyboard#Apple_Keyboard_...

Almost. It's the Apple Pro Keyboard (M7803) https://en.wikipedia.org/wiki/File:Apple_Pro_Keyboard_black.... I have to get a USB⇄USB-C dongle so I can use it on my Windows machine.

Ooh, I need to get my hands on one of those. The best of both worlds!
Post reply on HN