Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tab completion of user names #249

Open
frivoal opened this issue Apr 3, 2024 · 3 comments
Open

tab completion of user names #249

frivoal opened this issue Apr 3, 2024 · 3 comments

Comments

@frivoal
Copy link

frivoal commented Apr 3, 2024

When in insert mode, it would be extremely convenient if pressing the Tab key autocompleted the current word as the name of some member of the room you're in.

I find this generally useful, but for me it raises to life saver in some contexts: when taking live minutes of a meeting in a chat room, typing people's name can be very time consuming without this, or trivial with it.

Some alternative key combination may be alright, but I already have so much muscle memory that it'd be really nice if it was Tab.

People actually wanting to want to type tabulations into a chat client is exceedingly rare (many clients don't even support it), so we wouldn't really lose anything.

@mordquist
Copy link
Contributor

mordquist commented Apr 7, 2024

As per the docs on Sending there already exists <C-N> and <C-P> for next/previous auto-completion of names/rooms/emoji. I tried binding <Tab> under macros in config.toml which seems to work great. Binding <S-Tab> did not however.

If you need to insert a tab character, you can type <C-V><Tab>.

config.toml:

[macros.insert]
"<Tab>" = "<C-N>"   # works
"<S-Tab>" = "<C-P>" # also works

EDIT: <S-Tab> works as of modalkit v.0.0.19

@frivoal
Copy link
Author

frivoal commented Apr 7, 2024

Thanks! I thought I has seen this somewhere, but couldn't remember where. The config.toml part is especially useful.

However, this autocompletes fully qualified matrix usernames like@someobody:matrix.org, but I would instead (or also) auto-completion of Display Names.

@mordquist
Copy link
Contributor

What is really needed for this is support for intentional mentions (MSC3952). There seems to be support for it in the rust matrix sdk but I haven't looked in to it properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants