cursorless
cursorless copied to clipboard
Support custom paired delimiters
Use Case:
Given(/^We navigate to the homepage$/) do
driver.navigate.to "http://google.com/"
end
I would like to be able to comfortably select the text We navigate to the homepage
Solution: Custom paired delimiters
One possible solution would be to introduce the ability to define custom paired delimiters
Similar to the way take inside box works - it selects everything between [ and ], i would like to be able to define a new paired delimiter.
e.g. take inside regex should select everything between ^ and $
or maybe even with multiple characters: take inside stepdefinition to select everything between (/^ and $/)
Question: do we want to support wrapping with these by default?
See also #335. I think the differences here are the following:
- These pairs would support different opening / closing delimiter, whereas #335 requires them to be the same
- These pairs require the user to configure them, whereas #335 defines a command for on-the-fly pairs
Question: Should custom matching pairs affect/modify the pair/any scope?
No, I don't think so.