Dyalog / Dyalog/link

Allow -text=plain on specific variables

Open
#743 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement MID
Dominant language
APL
Stars
26
Forks
11
Avg merge
1d 18h
Merged PRs (30d)
1

Description

Something I ran into today was trying to adjust one of my variables on disk from -text=aplan to -text=plain. There does not seem to be an easy way to do this. I propose that the -text= option be added to ]Link.Add so that specific variables can be encoded that way without having to store every variable in the workspace the same way.

If I've already got a variable in aplan format (as I did in this case), ]Link.Add would also need to detect the existence of a current file matching that name and rename the existing file (with new content) instead of just adding another file with a conflicting name.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the ]Link.Add entry point and trace how it chooses the file representation and handles an existing variable file. The change is complete when a per-variable -text=plain option is supported and an existing aplan file is replaced or renamed without leaving a conflicting duplicate.

Written by the indexing model from the issue text.

Assessment

Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.