Grid Sage Forums

Cogmind => Bugs => Fixed Bugs & Non-Bugs => Topic started by: flatmap on April 01, 2024, 05:45:29 PM

Title: [Beta 13] No way to rebind examine direction keys
Post by: flatmap on April 01, 2024, 05:45:29 PM
I'm trying to remap Vi's HJKL keys to IJKL.
It works for moves (CMD_BS_DEFAULT_MAPJUMP_N and others), but I don't see mappings for move directions during examination.
Remapping normal moves does not affect examination move keys.
I guess it is hardcoded?
Title: Re: [Beta 13] No way to rebind examine direction keys
Post by: Kyzrati on April 01, 2024, 10:38:57 PM
It's not hard-coded, they're all in there. You can find the examine mode cursor-moving keys in the targeting domain (since it's used for both targeting and examination), thus CMD_BS_TARGETING_SHIFT_N and so on. You can see there are already vi-keys assigned there, but you're switching to a different layout so yeah you can adjust those.

Note: CMD_BS_DEFAULT_MAPJUMP_N is actually for shifting the map view (like recentering it to see a different area), not movement. Movement is CMD_BS_DEFAULT_MOVE_N etc.
Title: Re: [Beta 13] No way to rebind examine direction keys
Post by: flatmap on April 02, 2024, 07:00:51 AM
You're right. Sorry, I was querying commands.cfg by HJKL and "examine" word.
Thanks!
Title: Re: [Beta 13] No way to rebind examine direction keys
Post by: Kyzrati on April 02, 2024, 08:42:39 AM
No problem! Makes sense, wouldn't necessarily assume that examining and targeting are basically the same command set :)