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

Align tilde #67

Open
oloverm opened this issue Mar 30, 2021 · 2 comments
Open

Align tilde #67

oloverm opened this issue Mar 30, 2021 · 2 comments

Comments

@oloverm
Copy link

oloverm commented Mar 30, 2021

I think an "align tilde", equivalent to "align" and "align equal" would be handy. I'd use it all the time in case_when():

image

@VincentGuyader
Copy link
Member

I would have thought that ctrl + shift + A would have done the job... but not really.

@yonicd
Copy link
Collaborator

yonicd commented Mar 30, 2021

this shouldnt be hard to implement.

the align functions have an argument that user can put what to align on

https://github.com/ThinkR-open/remedy/blob/master/R/align.R#L108

a new align function can be created that give the user control via remedy_opts what to align on.

ie

align_manual <- function() {
  capture <- capture()
  area    <- capture_area(capture)
  loc     <- find_regex(remedy_opts$get('user_align'), area)
  insertList <- assemble_insert(loc)
  insertr(insertList)
}

where the default can be = as to not change current behavior

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

No branches or pull requests

3 participants