mkcms / interactive-align Goto Github PK
View Code? Open in Web Editor NEWInteractively align by regular expression in emacs
Interactively align by regular expression in emacs
Nice package, thanks for putting this together.
In your example you use \(\s-*[0-9]+\)
I can't get that to work.
What works for me is if I go to group -1 and use \([0-9]+\)
What does the -*
do in your example? Is this some negation?
Also posting all the steps in your gif as commands would be useful.
pcre-mode
'advises' read-regexp
so that perl regexp syntax can be used instead of elisp. but ialign
(i guess because of the 'i' :-)) reads the regexp on its own, thus ignoring pcre-mode
's influence. can you modify ialign-update
so that accepts PCRE regexps? to do so, you could (1) add a check for pcre-mode
and call rxt-pcre-to-elisp
on the value returned by minibuffer-contents-no-properties
or (2) define a tiny ialign function (e.g. ialign-fetch-minibuffer-contents
) to wrap your call to minibuffer-contents-no-properties
which could be easily 'advised' to convert PCRE syntax to elisp from an init.el or pcre2el.el itself. thoughts/comments?
The C-c prefix is reserved for end user bindings. By using those for the default bindings, you clobber my bindings and anybody that follows the GNU Emacs conventions in hopes of avoiding key binding collisions.
https://www.gnu.org/software/emacs/manual/html_node/elisp/Key-Binding-Conventions.html
The idea behind an interactive align function is really great. However, I wished it would be fully compatible to align-regexp
, that is it should be possible to use the very same regexp to generate the exact same aligning.
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.