-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Add _
as an alias for ans
#159
Comments
Interesting idea, thank you for the feedback. I'm slightly afraid that this might cause confusion if somebody really made an error and forgot to put something to the left of an operator. I think I'd like every user input to be a valid mathematical expression. I've been thinking about adding
What do you think? |
Yeah, I think that would help. What about something like |
Tab is already reserved for normal tab completion (Tab-Tab shows all possible commands, variables, etc. - for example). By the way, often you can also use |
I have another idea. What about adding a shortcut (maybe
|
I guess that would work. It wouldn't be the same type of efficiency I have in mind, though (I rarely find myself using alt + .) - the underscore method would probably work better. Maybe some sort of setting that allows "experienced" users to implicitly add ans? That might help |
I have just begun to use insect, and was a bit disappointed to find that this implicit I understand the concern around the implicit behavior. My first preference would be some sort of flag that I could use to start insect in a way that would support the the implicit answer ( The
But if it gave me the whole chain it might be neat:
Obviously this is a contrived example, and in the real world the full chain would often be much longer, likely spanning multiple lines. I think I would still want a |
I'd rather not add different modes. Let's add |
I want to work on this, but I'm wondering about a couple things:
|
Yes, that sounds like a good idea.
👍
Hm. I think it might confuse users if we do so? |
Fair point. |
_
as an alias for ans
Here's an example:
It is more natural (at least, for me) to type an operation after an expression as if the previous result is prepended to it. This is how normal calculators function. It's just an idea of something that could improve the efficiency of the calculator.
The text was updated successfully, but these errors were encountered: