nivekuil / corral Goto Github PK
View Code? Open in Web Editor NEWQuickly surround text with delimiters in emacs
Quickly surround text with delimiters in emacs
I suggest that you should wrap your code in save-excursion
. That way, it causes minimal distraction and I can resume typing my current symbol without hassle.
As long time user of Corral, I love it! Thanks for that! It seems I found something
that might be a bug. To reproduce, []
stands for the cursor
foobar![]
Then I call M-x corral-backquote-backward, which is bound to a key by the way.
But it includes only the characters in a quote mark, without the !
exclaimation mark.
Thanks for sharing this awesome package with us! It's really appreciated.
However, it seems there is a bug. For example, in the Jquery you have the following
$(#id-of-foo-bar[])
[] = pointer.
Then I call the function corral-double-quotes-backward
. Then it will wrap id-of-foo-bar
. But when I call it again, it will not manage to expand it beyond the #
.
This is odd, because it behaves differently with
foo bar[]
.
Then bar
will be wrapped inside double quotes. Call corral-double-quotes-backward
again, then it will wrap foo bar
.
Hello,
Would it be possible to add corral-single-quotes support?
Thank you!
Thanks for sharing this awesome package. Would it be possible to add backquote support (I cannot display it here, because it's formatted by Github) ? I use it a lot in Markdown and ReStructuredText filetypes. (See also http://www.computerhope.com/jargon/b/backquot.htm)
Thank you in advance!
One of the magical things about packages is they let me keep my ~/.emacs.d/init.el under a few dozen megabytes; in service of keeping things small, I like to adhere to default keybindings wherever possible and not have custom code for setting them up.
Would you consider putting the keybindings in the README for corral
into a minor mode that I can just activate and inspect to see how it's used?
Hi,
Thanks for this nice helper! I'm experiencing some issues in Emacs 25 (GNU Emacs 25.0.50.1 (i686-pc-mingw32) of 2015-10-25).
To reproduce:
However, if I enter a space and go back one space (C-b) then it does work again?!
Any ideas? Can I help somehow?
Thanks again and best regards
Hello Sir,
Can you make corral behave like this:
M-] run corral-brackets-forward, immeadiatly after that command ] run corral-brackets-forward again and [ run the backward version. C-g exit the command.
So that you don't need to press M if you want to forward several words.
For quote:
M-" run double quote forward, M-" again cancel the previous forward and do double quote backward, after that " continue forwarding and ' continue backwarding.
make the same for M-'
I am not good at elisp, maybe you can find example in expand-region and hydra.
Thank you!
Have you though about adding curly braces?
For instance in Perl it's quite common to type something, then realizing you need to dereference it and wrap it in {}.
Another case is string interpolation in shell scripts that sometimes need bracing.
Curly braces are also used to interpolate inside Ruby strings.
Some languages (python, scala) use triples quotes for verbatim quotes.
I'd like to be able to hit whatever bindings I have for corral-double-quotes-x (forward or backward) two more times and turn a singly quoted string into a triple quoted string.
Even if that doesn't happen, I'd like it to fail gracefully, instead of leaving me with mismatched parenthesis.
Great library.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.