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

edit(): allow specifying the column for some editors #33760

Merged
merged 2 commits into from
May 17, 2022

Conversation

rfourquet
Copy link
Member

This will be useful for #33759 if that gets included. For this use case, it would not be useful to print a warning if the editor can't be opened at a specifed column, so I didn't add a column_unsupported variable similar to line_unsupported. Alternatively, a keyword could be passed to specify whether we want a warning in these cases.

@StefanKarpinski
Copy link
Member

Seems nice 👍

@KristofferC KristofferC force-pushed the rf/edit_choose_column branch from 4e68b96 to c0e0630 Compare May 13, 2022 14:44
@KristofferC
Copy link
Member

I updated this and added support for it in edit_input.

@@ -1506,11 +1506,10 @@ fake_repl() do stdin_write, stdout_read, repl
end
repl.interface = REPL.setup_interface(repl)
s = LineEdit.init_state(repl.t, repl.interface)
LineEdit.edit_insert(s, "1234")
@show buffercontents(LineEdit.buffer(s))
Copy link
Member

Choose a reason for hiding this comment

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

oops

@KristofferC KristofferC force-pushed the rf/edit_choose_column branch from c0e0630 to bda9eaa Compare May 16, 2022 09:47
@KristofferC KristofferC merged commit f2a2664 into master May 17, 2022
@KristofferC KristofferC deleted the rf/edit_choose_column branch May 17, 2022 11:32
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.

3 participants