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

Reconsider "smart characters" preferences #44

Open
LinqLover opened this issue Jan 1, 2022 · 5 comments
Open

Reconsider "smart characters" preferences #44

LinqLover opened this issue Jan 1, 2022 · 5 comments

Comments

@LinqLover
Copy link
Contributor

While investigating recent issues with the auto enclose functionality in Squeak 6.0Alpha Trunk1, @j4yk identified some overlapping preferences of Autocompletion related to the term "smart characters". Without having analyzed their functionality and behavior in-depth, I just wanted to note this down here and propose to revise these preferences to address the following concerns:

  • Do they add any value in present Squeak that is not available via the default preferences?
  • Should they maybe be removed, deprecated, or at least disabled by default to avoid confusing behavior when a user changes the different settings and does not aim the desired goal?

HNY :-)

Footnotes

  1. http://lists.squeakfoundation.org/pipermail/squeak-dev/2021-December/217304.html

@LeonMatthes
Copy link
Owner

I believe eCompletion (which Autocompletion is a fork of) added smart characters (adding a closing brace when typing an opening one) before they were available in Squeak by default.

They shouldn't really conflict with the built-in ones as long as both aren't active. Not sure if there's a good point in removing them, as they should still be able to act as a backup to the built-in ones.

@LinqLover
Copy link
Contributor Author

Alright, so this decision should be addressed in eCompletion instead.

@LinqLover
Copy link
Contributor Author

Turns out that smartCharacters is still something that is only supported by Autocompletion/eCompletion. We might want to merge this into the Trunk at some day, but before that, deleting this feature from Autocompletion/eCompletion would not make sense. (Btw, eCompletion seems not to be maintained actively, last version on SqueakSource seems to be from 2010.)

@LeonMatthes
Copy link
Owner

The auto enclose brackets settings is the Squeak default implementation of this I think, together with Enclose selection with brackets.

That should be part of the default image.
These settings don't seem to conflict with eCompletion (speak: Autocompletion, as it's a fork of eCompltion) smart characters. I have both enabled and no issues.

@LinqLover
Copy link
Contributor Author

I think there is at least one conflict indeed: In plain trunk, pressing " while selecting a inside "a" removes the surrounding quotes. With Autocompletion's smart characters, the expression is converted to ""a"" instead ...

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