Comment by 🦎 bluesman

Re: "Finally getting some time to test out Alhena. So far so..."
In: u/gritty

@Lucas I just saw this thread. I've been working on a game to test out the cgi in my gemini server. There are shortcut keys but perhaps not documented.

Navigate back: ctrl + [

Navigate forward: ctrl + ]

Refresh: ctrl + r

Link Shortcuts: ctrl + shift (displays shortcuts)

Titan Editor: ctrl + alt + e

Font Chooser: ctrl + alt + f

(Replace ctrl with command on MacOS). There are also menu shortcuts. On non-mac, you'll see an underline in the top-level menu so press alt + underlined character to open the menu. You can then traverse the menus with the arrow keys. Mac has a cool equivalent I discovered by accident: control + option + (say, F for File menu).

Arrow keys do scroll up and down but it's the standard Java mechanism at the moment. If the text area has focus (you'll see a highlight border), hold down one of the arrows. For some reason, you have to hold it a few moments before scrolling starts.

I agree though that shortcuts are needed. Let me know and I'll get on it.

🦎 bluesman

Apr 24 · 8 months ago

13 Later Comments ↓

🦎 bluesman · 2025-04-24 at 14:36:

@gritty Good suggestions. I'll see what I can do. I pointed out a few shortcut keys in another reply that may help in the interim.

I agree on the default font size. I usually use 20 for both proportional and monospaced. It's been saved in my prefs so long, I hardly ever see the defaults (15, I think). My eyesight is not the greatest so I'm not sure how I landed on that.

Just to add, I'm also not the biggest fan of the default proportional font but it's the only one guaranteed to be on all systems. I prefer the "light" sans serif fonts. Luckily, it's easy enough to change. Sometimes I'll select something unusual to spice things up. Ha.

Please keep the suggestions coming. I appreciate it.

🦎 bluesman · 2025-04-24 at 17:25:

@gritty I bumped up the default font size, made the address bar select all text on focus and added a shortcut key to go to root (ctrl + shift + up).

These changes and a few other fixes will be in release 5.0.6 in the next day or two (or now if you build from source). Thank you. Further suggestions welcome.

🍀 gritty [OP] · 2025-04-24 at 19:14:

@bluesman awesome, that was fast thanks. As mentioned below I think a shortcut key configuration menu would be helpful. Some folks prefer the keyboard. I think the default for scrolling up or down could be vim-style with the directional keys as well. Other ideas: a key to open a search or jump to the address bar (space?). I like the shortcut key highlighter. "?" for help, etc.

Smooth scrolling with the arrow keys would be nice as well (without a key delay if possible)

🚀 lucas · 2025-04-24 at 20:09:

@bluesman Gave it another go and yeah the arrow keys do scroll with a 1 second delay. I pressed PgUp, PgDown earlier and it was instant so I assumed no arrow key support.

Like @gritty said, Vim-keys for navigating would be amazing. Ctrl+shift+number is quite an awkward chord to press for something as common as following a link. Aside from that, great work. I like it.

🦎 bluesman · 2025-04-24 at 20:31:

@gritty Good ideas. There is ctrl + f for search (if that's what you meant). A key to go to the address bar sounds useful.

I have given some thought to user defined shortcuts but there are a few headaches. Most notably, MacOS "dead keys". I wrote a gemlog about it.

— Dead Keys

I would either have to find a way to work around the dead key issue and the built-in Swing menu mnemonics or limit what keys the user can use as shortcuts modifiers. I'll definitely keep it on the list though. There's usually a way.

🦎 bluesman · 2025-04-24 at 20:46:

@Lucas Ha. Don't get me started on the link shortcut keys. MacOS and (to a lesser extent) Swing's menu mneumonics disrupted my plan to just use the "alt" key. I wrote about it in a gemlog I referenced in my response to gritty. This probably needs more thought.

It sounds like I also need to investigate Vim.

EDIT TO ADD: I'm not sure if there's a way to change the delay when using the up and down arrows but I'll look into it.

🚀 me · 2025-04-24 at 21:07:

thanks for reminding me to update, was happy stuck on version 3.x 

🦎 bluesman · 2025-04-24 at 22:09:

I removed the "delay" on the up/down arrows. It actually wasn't a delay but the time it took for the invisible caret to traverse the screen before reaching the top or bottom.

Also, the content pane now requests focus after page load so you can immediately start navigating with page up/down and arrow keys.

🍀 gritty [OP] · 2025-04-25 at 02:04:

@bluesman How do I use an existing cert on an app that won't let you in until you pick a cert? My only options are to create a new one. For instance, on Spellbinding (link below), I want to use the cert from my other devices so I can play the same game.

— Spellbinding
🍀 gritty [OP] · 2025-04-25 at 02:32:

Also it looks like querystrings are breaking, at least on my game farkle (see link). If you click "Select" the resulting address should just be app?<the selected dice> instead of app?select?<selected dice>

— Farkle
🦎 bluesman · 2025-04-25 at 03:51:

@gritty For Spellbinding you can just go to the parent link:

gemini://tilde.team/~stack/

Import a PEM there and then you can get into the game link.

That Farkle thing sure sounds like something I fixed in the last few days having to do with type 10 with query. It's not in a release just yet - only when building from source. It's possible it's fixed but I'll know for sure after I have a closer look.

🦎 bluesman · 2025-04-25 at 04:19:

@gritty The commit I pushed earlier today fixes Farkle. Crazy coincidence. Look for a new release soon.

🦎 bluesman · 2025-04-25 at 05:09:

Alhena 5.0.6 is out with the aforementioned enhancements and type 10 fix (for Farkle). Oddly enough, I found that bug yesterday while testing a game I'm working on. It's quite the coincidence that @gritty found it today. Anyway, thanks for all the feedback.

Now I need to learn how to play Farkle.

Original Post

🍀 gritty

Finally getting some time to test out Alhena. So far so good @bluesman, thanks for all your work on this.

💬 18 comments · 1 like · Apr 23 · 8 months ago