Skip to content

Conversation

@Seelengrab
Copy link
Contributor

define_editor(Any["micro", "kak"]; wait=true) do cmd, path, line, column
`$cmd +$line $path`
end
define_editor(Any["hx", "helix"]; wait=true) do cmd, path, line, column
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know you're copying from another line but I'm not sure why we need the Any here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me neither - this array ends up being passed to editor_matches right above this function, which doesn't seem to care about the type either way.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you look a bit below there is an array of Strings without Any. So I would say it's not needed, there is one which has Strings and Regexes which might have led to other people just assuming it was the way.

@KristofferC KristofferC merged commit b722507 into JuliaLang:master Oct 4, 2022
@Seelengrab Seelengrab deleted the helix_editor branch October 4, 2022 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants