This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Add new command to jump to chunks instead of just words #10015
Labels
C-enhancement
Category: Improvements
For context, this feature request is related to #510 and the implementation in #8875.
Currently the way the amp-like jump command works is by filtering by words. This is the best choice for the default command, however, I would like to propose a second command which works on what I would like to call "chunks". There are times where instead of jumping and selecting a whole word, selecting part of a word is desired. An example would be changing
OnceCell
toOnceLock
, instead of jumping to the beginning of the word and selecting the whole thing, jumping to the second part of the word,Cell
would allow a replacement to be done in 1 keystroke.Current implementation:
![image](https://private-user-images.githubusercontent.com/1034539/317102347-607904a7-ab29-4e38-8647-53a20070985e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzMwMzIsIm5iZiI6MTczOTY3MjczMiwicGF0aCI6Ii8xMDM0NTM5LzMxNzEwMjM0Ny02MDc5MDRhNy1hYjI5LTRlMzgtODY0Ny01M2EyMDA3MDk4NWUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDIyNTMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Y2U3NDBlOTUzYjM4NjU0ZjU3MDNjNDM1Y2M4NjRjMjYyMGRmYTY1MzVhMGEzNDYxNmFjYWEyODdjZDY1NzYxOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.GfTpmLonqzoRTP8wCDVKF8Ws1U7calIxrXMk8Th_l3o)
New command:
![image](https://private-user-images.githubusercontent.com/1034539/317102438-03d2a05e-e0be-4ea2-a0a5-a5f7f214cb6c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzMwMzIsIm5iZiI6MTczOTY3MjczMiwicGF0aCI6Ii8xMDM0NTM5LzMxNzEwMjQzOC0wM2QyYTA1ZS1lMGJlLTRlYTItYTBhNS1hNWY3ZjIxNGNiNmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDIyNTMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDJiODQzN2QyZTgwMDY4NzA3ZWE5NjU5N2E2NTUwYzYzZDgyYWMyODhkN2EzN2EwZWIzMGE1ODRhNDBhMzFmYiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.9_2ka3WaUnZi5GYxoYzqtxw4OCUEMnRl0jICRMRC0vc)
it would also add a new jump command:
![image](https://private-user-images.githubusercontent.com/1034539/317102509-5cc11422-e9d7-483a-8b3f-49b88e772f31.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NzMwMzIsIm5iZiI6MTczOTY3MjczMiwicGF0aCI6Ii8xMDM0NTM5LzMxNzEwMjUwOS01Y2MxMTQyMi1lOWQ3LTQ4M2EtOGIzZi00OWI4OGU3NzJmMzEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTZUMDIyNTMyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NWNmZThkZTA2OGNlYzJhZWMzZWIyMWYwYTRlY2MyYTNlMGFkZjM1MjFjMjk4ZTQ2MzVkN2VmZmZmOGU0OGUyYSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.28sPyqdGZydMQOKaRFVsEzIHLXgsKsbx857jYNSWSJw)
I've got a proof of concept here for how it would work, I'll rebase it to 24.03 and create a PR once that version is released.
Some open questions to answer:
_
back in, so I'm not sure if this is the right approachThe text was updated successfully, but these errors were encountered: