Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Keybindings in Discussion2

CmdrTaco (1) writes | more than 6 years ago

User Journal 21

Since this is not yet documented, I figured I would mention this here now... we are experimenting with some very rudimentary keystroke navigation in the discussion2 system. We support both FPS style WASD keybindings, as well as the standard vi layout of HJKL. Down/Up will cycle you through next/previous comment chronologically... left/right will cycle you through next/previous in thread order. Holding SHIFT down while you press the navigation key will collapse the previous comment. And whenSince this is not yet documented, I figured I would mention this here now... we are experimenting with some very rudimentary keystroke navigation in the discussion2 system. We support both FPS style WASD keybindings, as well as the standard vi layout of HJKL. Down/Up will cycle you through next/previous comment chronologically... left/right will cycle you through next/previous in thread order. Holding SHIFT down while you press the navigation key will collapse the previous comment. And when you get to the end, pressing down or right will attempt to retrieve more comments if you want them.

What this means is that you can now use D2 to simulate most of the most popular viewing modes of the original discussion system. By dragging both the abbreviate & display sliders right next to each other you effectively remove abbreviated comments which simulates nested mode. By toggling comment retrieval order to 'Oldest First' and using up down, you can effectivel read the discussion from oldest to newest. And of course the default settings gives you the best comments first, providing a nice default view of discussions for most anonymous users (who rarely participate and we want to really show only the best comments).

You can also disable D2 in the comment prefs (the word 'prefs' in the floating dialog box) if you are logged in. Right now we're testing D2 for a large percentage of anonymous readers. As soon as we finish IE7 support we'll roll out D2 for the rest of the ACs.

cancel ×

21 comments

liking it but retrieval order oddity (1)

tf23 (27474) | more than 6 years ago | (#21295311)

So far I'm liking all the d2 changes very much. However, when I click on prefs in the left "HUD" that controls the slider et all, I only see "date/score" in the "Comment Retrieval Order" pulldown here on Slashdot. You mention 'Oldest First' being there. Maybe you were referring to /my/comments preferences page? But having it be there and not in the D2 prefs pop-up would seem silly. Maybe it's in the code and it's just not live yet. Dunno, haven't had much free time to delve into latest code lately.

Re:liking it but retrieval order oddity (2)

CmdrTaco (1) | more than 6 years ago | (#21295729)

Yeah the wording on those boxes was supposed to be changed for this code refresh but apparently that didn't make the cut... the retrieval order is either 'highest score first' or 'oldest comment first'.

vi navigation is cool (2, Insightful)

jomas1 (696853) | more than 6 years ago | (#21295381)

Vi navigation is cool but j seems to select the previous comment and k selects the next comment. Shouldn't this be reversed?

Re:vi navigation is cool (2)

CmdrTaco (1) | more than 6 years ago | (#21295885)

I musta brain farted. We'll get it switched around soon. The functionality on left/right is sketchy too, but we're just waiting for people to try it out a bit... we've never tried any of this and have no idea what makes the most sense... also note that when you retrieve new comments, the old ones gray out a little to indicate that they are more stale...

Re:vi navigation is cool (1)

jomas1 (696853) | more than 6 years ago | (#21297069)

Don't know if you've seen what google has put together for keyboard based navigation http://www.google.com/experimental/ [google.com]

I think slashdot could benefit from some of the functionality they've worked in. I'd love to navigate to an article or comment using j or k and expand it by hitting enter.

How do I disable the keybindings? (1)

spiralx (97066) | more than 6 years ago | (#21296149)

They're quite annoying for those of us who tend to randomly tap their keyboards while reading an article... :(

Re:How do I disable the keybindings? (4, Informative)

CmdrTaco (1) | more than 6 years ago | (#21296605)

Switch to decaf!

Re:How do I disable the keybindings? (1)

jdavidb (449077) | more than 6 years ago | (#21299867)

I'm glad I'm not the only one who does that. I've mostly gotten cured from all the magical effects that OSes keep adding for when you hit certain keys 5+ times, though. Nowadays I'm a compulsive random highlighter with the mouse. Drives my wife insane when she tries to read over my shoulder.

Re:How do I disable the keybindings? (1)

spiralx (97066) | more than 6 years ago | (#21321591)

Oh I do that as well, and triple clicking... depends on what's in my hands while I'm reading lol.

Re:How do I disable the keybindings? (1)

jdavidb (449077) | more than 6 years ago | (#21328085)

Wow. I'm so happy to hear I'm not alone!

Maybe we need a support group or something...

Re:How do I disable the keybindings? (1)

spiralx (97066) | more than 6 years ago | (#21335813)

A Greasemonkey script to disable the keybindings will probably do when it annoys me enough :)

This Is A Good Iteration (1)

Real World Stuff (561780) | more than 6 years ago | (#21296671)

Keep up the work.

Editable in preferences? (1)

Raphael (18701) | more than 6 years ago | (#21297809)

Keybindings are a very good idea!

What about making all these keys configurable, especially for those who do not use US keyboards? That would be the extra icing on the cake...

Re:Editable in preferences? (2)

CmdrTaco (1) | more than 6 years ago | (#21299061)

Quite frankly with all of my design changes in the last few years, I've aimed to *remove* the more under utilized configuration options on Slashdot. For a few years we added every feature we thought would be interesting, and after a decade we've learned that the vast majority of you don't use any of these options. So while I can see that customizable keybindings would be neat, only a few hundred out of a few hundred thousand of you would ever change the defaults, so its not worth the engineering time and UI clutter to do it. You can just put it in yourself with a greasemonkey script anyway.

Again :) (1)

spiralx (97066) | more than 6 years ago | (#21409703)

Is this getting only X comments at a time thing permanent? If so is there any way to get all comments in one go? If I read an article I'll either want to read only a couple of comments or all of them at once rather than having to keep clicking on more comments...

Re:Again :) (2)

CmdrTaco (1) | more than 6 years ago | (#21409833)

Logged in users can up the default number in the preferences, and subscribers have an 'All' button. I'm evaluating the effectiveness of this decision- I know it's annoying to some people, but under the old system you had to click page 2... page 3... page 4... etc to read the whole discussion, and this is no different. The problem is that for slower computers and larger discussions, parsing that much XML and downloading that much data is a real performance hit... many seconds of beachballing... My current plan is to evaluate how the system is performing once we roll out D2 to everyone, and then see how large we can make these pages without bogging down our servers or users to much...

If you use the keybindings, when you get to the end, it gets more automatically, so the issue might not be that big of a deal... dunno... everything is open for discussion atm.

Re:Again :) (1)

spiralx (97066) | more than 6 years ago | (#21418939)

Up until a couple of days ago it was loading every comment whenever I went to an article under the new system, so it was definitely possible.

Re:Again :) (1)

spiralx (97066) | more than 6 years ago | (#21418965)

The new code hoses the CPU while it's downloading as well, Firefox is taking 99.99% and is totally unresponsive. I know a lot of that is due to it's crappy Javascript threading, but it's now taking as long to download 50 comments as it was to download 500 and locking the browser at the same time.

Re:Again :) (2)

CmdrTaco (1) | more than 6 years ago | (#21419267)

I'd question your 50=500 comment, but I definitely agree that performance is lacking. Thats part of why the size is small... on a slower computer, 200-300 comments is unusable (note that on my laptop, performance is quite comfortable even on several hundred comments). Parsing that much XML and running that much javascript isn't cheap. Our current "Solution" isn't ideal, but it'll work while we finish off other more pressing bugs. Time permitting we'll go back. Else maybe someone else will look at our open source code committed into a public CVS repository, and help. Like THAT ever happens :(

Re:Again :) (1)

spiralx (97066) | more than 6 years ago | (#21420545)

Doesn't the Prototype library (which it looks like you're using for AJAX) use JSON by default rather than XML? But either way I agree there's no easy solution to Firefox's crappy JS implementation :(

Last time I looked at Slashcode it was version 1.something... is it any less scary nowadays? :)

Re:Again :) (2)

CmdrTaco (1) | more than 6 years ago | (#21420959)

Oh if anything it's MORE scary ;)
Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...