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

]link.add name←value #202

Closed
abrudz opened this issue Jan 14, 2021 · 1 comment
Closed

]link.add name←value #202

abrudz opened this issue Jan 14, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@abrudz
Copy link
Contributor

abrudz commented Jan 14, 2021

Is your feature request related to a problem? Please describe.
I'm always frustrated when I work in the session, making variable and one-liner dfn assignments only to forget to ]add my new stuff.

Describe the solution you'd like
I'd like to combine the steps of assignment and adding things. ]add name←value would make sense. Maybe there also needs to be a way to effect this for multi-line input.

Describe alternatives you've considered
I've considered a trigger, but that would pick up on too much and slow everything down.

@abrudz abrudz added the enhancement New feature or request label Jan 14, 2021
@nicolas-dyalog
Copy link
Contributor

You can achieve this exact effect with (ns name ⎕SE.Link.Fix source).
It will fix it AND add it to the link, all at once.
Note that ⎕SE.Link.Add simply call ⎕SE.Link.Fix with empty source.
Nic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants