New editing features

New editing features - Сообщения

#1 Опубликовано: 24.02.2010 09:14:43
henry crun

henry crun

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

Группа: User

These were things I wanted on mathcad years ago:

1) A shortcut for entering exponents of 10 eg I type 10.3E-5 which is displayed as 10.3*10^5. I enter numbers with exponents all the time and fine entering it as "*10^" is a pain

2) A short cut to make a display expression immediately after I have entered and assignment expression. After many assignment expressions, I will have a display expression so I can see what the result was.

So lets say the shortcut is ctrlD
I type: AVERYLONGVARIABLENAME:=2+3
then I normally have to type: AVERYLONGVARIABLENAME= to see the result
Instead I would like to type: AVERYLONGVARIABLENAME:=2+3 ctrlD
and the ctrlD would autogenerate a display expression from the last assigned variable.

Note that I am not suggesting ctrlD - I havn't really thought about a good shortcut


#2 Опубликовано: 24.02.2010 15:14:27
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Hello crun,
Wrote

2) A short cut to make a display expression immediately after I have entered and assignment expression. After many assignment expressions, I will have a display expression so I can see what the result was.

So lets say the shortcut is ctrlD
I type: AVERYLONGVARIABLENAME:=2+3
then I normally have to type: AVERYLONGVARIABLENAME= to see the result
Instead I would like to type: AVERYLONGVARIABLENAME:=2+3 ctrlD
and the ctrlD would autogenerate a display expression from the last assigned variable.

Note that I am not suggesting ctrlD - I havn't really thought about a good shortcut


I think you do not need this. After inserting a variable, put a mouse over it and you will see its value. You already have something much better in v0.87 - "Dynamic assistance". Make an assignmnet with := . After that just start typing. After typing a letter or two you will have a list. Just choose the appropriate variable (even the variable value is shown) from the list and that's it.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Опубликовано: 26.02.2010 19:16:03
crun2

crun2

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

Группа: User

Dynamic Assistance wasn't working for me, but now I have found that the magic key is "TAB" (most IDE's I used expect ENTER to select the chosen drop down), so it works now.

This is done so often that I think a shortcut would still be a good idea.

What I thought is that if the user types just "=" (without a variable name before it), smath automatically precedes it with the last variable name. That way no special keystroke is needed.

So I type:
AVERYLONGVARIABLENAME:=2+3 =

and Smath completes to

AVERYLONGVARIABLENAME:=2+3
AVERYLONGVARIABLENAME=5
#4 Опубликовано: 26.02.2010 21:58:29
Andrey Ivashov

Andrey Ivashov

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

Группа: Super Administrator

Hello.
Wrote

Dynamic Assistance technology implemented (Ctrl+space to manually activate; Ctrl+space (if menu is shown), Tab, Ctrl+Enter, Shift+Enter, DoubleClick or *+Enter for Smartphones to accept current menu item). Option can be turned off using "Dynamic assistance" item of "View" menu


ENTER couldn't be used for completion, because this key is used to go out from the current control. Logic like "if completion list is visible, then ENTER is to choose an item of this list" also cannot be used because it will cause problems when working with undefined variables. To understand what I'm talking about just try to write [MATH]a:m[/MATH] and you will see, that after you fill in "m" completion list is shown, but this is the end of expression... so ENTER in that case can be wrongly understood by the SMath Studio.

Actually, that's why I've made many of available shortcuts to accept selected item from the Dynamic Assistance list (if we're about Desktop version):
  • Tab
  • Ctrl+space
  • Ctrl+Enter
  • Shift+Enter
  • DoubleClick on the item
#5 Опубликовано: 27.02.2010 01:13:45
crun2

crun2

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

Группа: User

The keys are fine once you know what they are. I updated the wiki https://smath.com/wiki/Keyboard%20shortcuts.ashx

Anyway, I think it would be good to just enter "=" after an assignment to create a display expression
#6 Опубликовано: 27.02.2010 07:06:56
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

Wrote

The keys are fine once you know what they are. I updated the wiki https://smath.com/wiki/Keyboard%20shortcuts.ashx


Thank you for that. Just feel free to add new pages.
Wrote


Anyway, I think it would be good to just enter "=" after an assignment to create a display expression


If you thought of:

var:=7+5=13

It depends on the Andray's concept. If yo do not mind, I think this might be redundant (this way is implemented in Mathcad) because you have here a better way - just put the mouse on the expresion and you will see its value like a tooltip. Although, this feature might be useful when printing the worksheet.

Regards,
Radovan

When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#7 Опубликовано: 28.02.2010 00:13:52
Greg Locock

Greg Locock

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

Группа: User

I think it would be very useful.
#8 Опубликовано: 03.03.2010 00:05:56
henry crun

henry crun

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

Группа: User

We want this for the static display case eg printout.

It would not particularly matter to me whether the display was done as a single line (option 1)
A:=2+3 =5

or as two expressions.(option 2)

A:=2+3
A=5

Option 1 would be my preference as I think it is neater, but it might require something changed in the file format.
Whereas Option 2 is just an editor action to automatically generate the display expression. The file/data format remains unchanged, making it the easier option
So an implementation detail for Andrey.
#9 Опубликовано: 03.03.2014 04:13:11
crun2

crun2

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

Группа: User

Item 2 implemented now I see, thanks Andrey, its great.
(a bit more space between the definition and the equals sign would enhance readability
ie "B:=1.5*m=1.5*m", would look better as "B:=1.5*m =1.5*m" )

Off to make a donation!
Keep up the good work

Feel free to implement item 1: easy exponent entry and exponent display
http://en.smath.info/forum/yaf_postsm12309_Engineering-format-for-displaying-results.aspx#post12309
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений