hi
I tried using Gram to edit my Rust code. I got Clippy yelling at me after copying some JSON from some commented-out default configuration, and rustc telling me about unused variables. great. all good so far.
I'm in Vim mode. version: app-editors/gram-2.2.0::gram
Problem one (renaming is broken)
I tried to rename FrameOrColor to just Frame:
enum FrameOrBg{Color(u32),DisplayList(Vec<Option<(u16,Object,Option<swf::Matrix>)>>),}in my first attempt, I right-clicked it, then the menu had a button "Rename Symbol", suggesting that the keycombo was "grn". Either clicking the button or performing the keycombo, a textfield pops below FrameOrBg, which allows me to edit it to Frame. however, I find myself unable to press Enter to confirm the change, and Esc and Tab also does nothing. the only thing possible is to click outside, which does not finish the renaming action
Problem two (giving up on code action menu)
I learned that the keycombo "g." open a menu with code actions, for example, when I have an unused variable let foo = 1;, it will pop a menu with four options: rename, add explicit type i32, "Promote local to constant" and prefix with underscore. great. I can use arrow keys to select one option, press Enter, and it will change things accordingly.
my problem is: if I look at the options, and I'm no longer interested in them, I'd like to leave the menu. I can't press ESC, so my only alternatives are to click with the mouse somewhere, or alt-tab twice.
Problem three (code completion)
I learned to configure code completion to pop-up when I type zero or more characters. however, the list of suggestions is non-sensical, it seems to follow alphabetical order. when I'm typing if let Some(b) = b, I hope it suggest in first place background which is of type Option and makes sense there, but rather, it suggests B which only appears inside string literals, BROKEN which appears in a comment, Bitmap and BufReader which are types (so far four items that don't even respect my choice of lowercase/uppercase letter), baby which is inside a string of a commented-out print statement, and THEN it suggests background.
anyway. after using arrows keys to select the correct option, it does complete after pressing Enter, but does not if I press Tab. I tried to enable the Supertab on keymap.jsonc, but it didn't budge.