ziglings/exercises
61
1.5k
Fork
You've already forked exercises
478

Replace ??? in examples with sequence of chars that is entirely selected when double clicking #159

Closed
opened 2024年09月07日 23:29:47 +02:00 by aryzing · 5 comments

When going through the examples, trying to double click the ??? characters to fix the examples isn't very practical, as they're not all selected with a double click. It would be a much better experience to have a sequence that is selected when double clicking. E.g., _fixme_, _fix_, FIX, or anything else that is selected when double clicking.

When going through the examples, trying to double click the `???` characters to fix the examples isn't very practical, as they're not all selected with a double click. It would be a much better experience to have a sequence that is selected when double clicking. E.g., `_fixme_`, `_fix_`, `FIX`, or anything else that is selected when double clicking.

I just started doing Ziglings today and I had similar experience with that. I use Neovim and whenever the ??? is followed by another special character (for example ???);), I cannot simply use cw as usual to replace the entire thing without rewriting the suffix characters. Very minor inconvenience, but it would still be cool to see this changed.

By the way, thanks to the authors for making Ziglings, very cool project and also great name!

I just started doing Ziglings today and I had similar experience with that. I use Neovim and whenever the `???` is followed by another special character (for example `???);`), I cannot simply use `cw` as usual to replace the entire thing without rewriting the suffix characters. Very minor inconvenience, but it would still be cool to see this changed. By the way, thanks to the authors for making Ziglings, very cool project and also great name!

I tried double clicking with mousepad and it mostly works. In Vim/Neovim you can always press 3cl when you are on the first question mark.

Changing the question marks through something like _fixme_ is not the same feeling/behavior, so I won't do that.

I tried double clicking with mousepad and it mostly works. In Vim/Neovim you can always press 3cl when you are on the first question mark. Changing the question marks through something like `_fixme_` is not the same feeling/behavior, so I won't do that.
Author
Copy link

Not sure what "mostly" means in this context. In most machines / apps / editors, the ? character is not part of the "word" character set, so it won't work for most people. Not a huge deal, I'm very grateful for these exercises, it's just one of those noticeable things that gets in the way when going through them.

Not sure what "mostly" means in this context. In most machines / apps / editors, the `?` character is not part of the "word" character set, so it won't work for most people. Not a huge deal, I'm very grateful for these exercises, it's just one of those noticeable things that gets in the way when going through them.

I tried double clicking with mousepad and it mostly works. In Vim/Neovim you can always press 3cl when you are on the first question mark.

Changing the question marks through something like _fixme_ is not the same feeling/behavior, so I won't do that.

Yeah, I do use 3cl/3xi but it is less convenient and usually requires first undoing after the drilled cw. As it's already said, it's very minor, but noticeable.

> I tried double clicking with mousepad and it mostly works. In Vim/Neovim you can always press 3cl when you are on the first question mark. > > Changing the question marks through something like `_fixme_` is not the same feeling/behavior, so I won't do that. Yeah, I do use `3cl`/`3xi` but it is less convenient and usually requires first undoing after the drilled `cw`. As it's already said, it's very minor, but noticeable.

For example, in exercise 006_strings on line 26, if you change the question marks to _fixme_, you won't get an editor error of zls expected type expression, found']'. You won't see anything. That's why we chose ??? because it's always an error.

For example, in exercise 006_strings on line 26, if you change the question marks to `_fixme_`, you won't get an editor error of zls `expected type expression, found']'`. You won't see anything. That's why we chose `???` because it's always an error.
Sign in to join this conversation.
No Branch/Tag specified
main
v0.16.0
v0.15.1
v0.14.0
v0.13.0
v0.12.0
v0.11.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ziglings/exercises#159
Reference in a new issue
ziglings/exercises
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?