30km issue

30km issue - dimension autocomplete bug - Сообщения

#1 Опубликовано: 22.05.2021 06:02:01
ur_naz

ur_naz

0 сообщений из 15 понравились пользователям.

Группа: User

This is very old issue and i guiss its enough 1 row of code to fix it
the issue is following
For example,
i type "30" then type "км", get dropped listbox, then push enter. so i got км - неопределено
Then
i type "30" then type "км", get dropped listbox, then push arrowdown, then push arrowup, then push enter. so i got normal blue kilometers
#2 Опубликовано: 22.05.2021 13:53:56
Andrey Ivashov

Andrey Ivashov

2270 сообщений из 3734 понравились пользователям.

Группа: Super Administrator

This is by design.
By default Enter means "leave focus from region". But when you starting to work with suggestions list explicitly meaning of the Enter button changed to help you make a selection.

Best regards.
#3 Опубликовано: 22.05.2021 15:48:56
ur_naz

ur_naz

0 сообщений из 15 понравились пользователям.

Группа: User

Then list_box is dropped, zero item is seems to be selected. so if i leave entering enter, i expect my choice should been applied.

Anyway, what is the difference between "км" and "км" as dimension?

And why various items of list_box requires various actions: double-click on zero item and push arrow buttons for the rest items (much more comfortable, because i have not grab the mouse and double-click on item already chosen)
#4 Опубликовано: 22.05.2021 16:47:28
Andrey Ivashov

Andrey Ivashov

2270 сообщений из 3734 понравились пользователям.

Группа: Super Administrator

To use selected item you just need to press Tab. Enter is to leave a focus from Region.
#5 Опубликовано: 22.05.2021 19:19:06
ur_naz

ur_naz

0 сообщений из 15 понравились пользователям.

Группа: User

it is very inconvenient when buttons are redefined in an unusual way because muscle memory is shaped according to patterns used in other more traditional applications, which are used much more often. Therefore, a desire automatically arises to press Enter, despite the prompt to press Tab. Moreover, the Tab button is much smaller and is located on the left, that is, on the side of the weak hand. For me, for example, it is much easier, more convenient and faster to press the down arrow, up arrow and Enter than to look for the tab button on the keyboard.

Finally, if you type 30km, then down arrow right arrow, what should happen? I think nothing should happen, but there is a loss of focus and an undefined value of km. What if I just type "30 km ="? I get km - undefined. Why do I have to choose from the list every time I enter a dimension ???

In general, to be honest, because of this small oversight, all my impression of the program as a whole is blurred.

By the way, I took 4 random IDEs that support auto-completion. In two of them the tab button did not work at all, in two it worked the same way as Enter. For example, in SharpDevelop, the tab button works like Esc, because the zero element is not selected. but if you select any item, then it works like an Enter. Because the Enter button is usually used to execute the default function and not to "leave focus from region". Just the Tab button shifts the focus to another control.
#6 Опубликовано: 22.05.2021 19:40:39
overlord

overlord

554 сообщений из 1333 понравились пользователям.

Группа: Moderator

Wrote

it is very inconvenient when buttons are redefined in an unusual way because muscle memory is shaped according to patterns used in other more traditional applications, which are used much more often.


Excuse me but now you are saying we should give up our 10 year muscle memory in SMath.
This is not an IDE first of all. A free calculation tool similar to mathcad if not exceeding it in some ways.
Auto-completion in SMath is similar to mathcad if I remember correct. And it is a 35 year old product.
SMath started its way mimicking mathcad v15 at some aspects, nothing was wrong here because it was de-facto tool for many years.
Long word short, it is understandable you have struggled with auto-completion.
But will be absurd for us to change the auto-completion way who use mathcad or SMath for many years.

Regards

2 пользователям понравился этот пост
churichuro 22.05.2021 20:24:00, Laurent Fournier 23.05.2021 04:19:00
#7 Опубликовано: 23.05.2021 00:21:01
Alvaro Diaz Falconi

Alvaro Diaz Falconi

992 сообщений из 1675 понравились пользователям.

Группа: User

Wrote

... What if I just type "30 km ="? I get km - undefined. Why do I have to choose from the list every time I enter a dimension ???



Just because you want. You can choose to directly type "30'km="

(Notice the ' character)

Best regards.
Alvaro.
#8 Опубликовано: 23.05.2021 04:09:53
Andrey Ivashov

Andrey Ivashov

2270 сообщений из 3734 понравились пользователям.

Группа: Super Administrator

Wrote

Wrote

it is very inconvenient when buttons are redefined in an unusual way because muscle memory is shaped according to patterns used in other more traditional applications, which are used much more often.


Auto-completion in SMath is similar to mathcad if I remember correct.


To say truth I didn't know Mathcad had autocomplition functionality ever. What version did you use?

Thanks.
#9 Опубликовано: 23.05.2021 05:59:50
overlord

overlord

554 сообщений из 1333 понравились пользователям.

Группа: Moderator

Wrote

To say truth I didn't know Mathcad had autocomplition functionality ever. What version did you use?

Thanks.


You are right, autocomplete is not even a thing for Mathcad which is a bigger bummer.
I haven't use it since I first see SMath, more than 10 years I guess.
Well, I remember it wrong. Or maybe mistaken with another software.

Regards
1 пользователям понравился этот пост
Andrey Ivashov 23.05.2021 07:25:00
#10 Опубликовано: 23.05.2021 12:48:49
overlord

overlord

554 сообщений из 1333 понравились пользователям.

Группа: Moderator

I have been using command-line completion with tab near two decades with linux.
Tab completion, which smath design has choosed, is way much older than any other auto-completion.
To be not mistaken again I have looked and found out its first examples appeared in 1966.
Actually all other programs which use enter or space as auto-completion had used the unusual way.
They were inconvenient for peoples who used computers for decades, eventually people get use to everything.

Regards
#11 Опубликовано: 23.05.2021 18:40:21
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

This is very old issue


Sorry, no recollection of that issue.
Can you have other issue than 30.123456789876543210 km ?
#12 Опубликовано: 23.05.2021 19:48:23
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

This is very old issue and i guiss its enough 1 row of code to fix it


Has been exposed many times ...

OneLineCode.PNG
#13 Опубликовано: 13.06.2021 10:17:46
ur_naz

ur_naz

0 сообщений из 15 понравились пользователям.

Группа: User

I just want to type

V:=30km[arrow_right]/10min= # ignore popup

or

Скорость:=30км[arrow_right]/10мин= # ignore popup

or (with selecting item of popup by k/b )

V:=30km[Enter][arrow_right]/10min= #problem is no 'km' in smath, but should be?????

or (with selecting item of popup by k/b )

Скорость:=30км[Enter][arrow_right]/10мин= #fist item seems to be already selected, but in fact not

30km.png

and get the result but not the error message of undefined type 'km' оr 'км', which should be defined

30km.png

I want to get the result w/o using mouse or any other pointer. just keyboard

Seems like km disappeared from smath =(

I guiss all extensions should be English. all localized extensions should be pseudos of english names.

It should be setting of displaying only english, only localized or both extensions




#14 Опубликовано: 13.06.2021 11:29:11
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

I want to get the result w/o using mouse or any other pointer. just keyboard


No mouse action, but you have to use pointer to enter units.

Speed.PNG
#15 Опубликовано: 14.06.2021 10:12:13
Ruben Sidranski

Ruben Sidranski

17 сообщений из 463 понравились пользователям.

Группа: User

Wrote

Wrote

Wrote

it is very inconvenient when buttons are redefined in an unusual way because muscle memory is shaped according to patterns used in other more traditional applications, which are used much more often.


Auto-completion in SMath is similar to mathcad if I remember correct.


To say truth I didn't know Mathcad had autocomplition functionality ever. What version did you use?

Thanks.



It started with PRIME 1.0
Regards
#16 Опубликовано: 14.06.2021 17:46:43
Andrey Ivashov

Andrey Ivashov

2270 сообщений из 3734 понравились пользователям.

Группа: Super Administrator

Wrote

Скорость:=30км[Enter][arrow_right]/10мин= #fist item seems to be already selected, but in fact not

30km.png



Interesting thought actually. It seems I need either to:
  1. show selection only if written text is exactly the same as shown in the list;
  2. replace written text with the one selected in the list as soon as list is closed (even if no Tab or Enter pressed).


Seems reasonable, I will handle it soon.
Thank you!
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений