Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Specifying additional characters as argument separators #31

Open
korsbo opened this issue Aug 26, 2022 · 0 comments
Open

Specifying additional characters as argument separators #31

korsbo opened this issue Aug 26, 2022 · 0 comments

Comments

@korsbo
Copy link

korsbo commented Aug 26, 2022

Would it be possible to have an option that extends which characters are treated as argument separators?

The specific issue that I have is that I often have functions that look like f(a, b, c; d="foo", e="bar") where the semicolon denotes that all the following arguments are keyword arguments (Julia). argwrap is still useful here but the semicolon is not treated as a separator so you'll end up with

f(
  a,
  b,
  c; d="foo",
  e="bar",
)

If there were a way to specify that both , and ; should be treated as argument separators then I'd imagine that we could turn that into

f(
  a,
  b,
  c; 
  d="foo",
  e="bar",
)

By the way - this little plugin is a really nice quality-of-life improvement and I use it many(!) times every day. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant