mrkkrp / fix-word Goto Github PK
View Code? Open in Web Editor NEWTransform words in Emacs (upcase, downcase, capitalize, etc.)
Transform words in Emacs (upcase, downcase, capitalize, etc.)
This is a brilliant interface! Thanks for the great package.
It even works with multiple-cursors
… except when extending backward. Not a deal-breaker as one can move the cursors to do it if need be, but thought I should record this bug.
Here's a demo of what happens with three lines, and three cursors at the start of 'over'.
The quick brown fox jumps ^over the lazy dog.
The quick brown fox jumps ^over the lazy dog.
The quick brown fox jumps ^over the lazy dog.
Then type this sequence:
M-u M-u M-u C-b
The quick brown fox jumps OVER THE LAZY^ dog.
The quick brown fox jumps OVER THE LAZY^ dog.
The quick brown fox jumps OVER THE LAZY^ dog.
M-l
The quick brown fox jumps OVER THE lazy^ dog.
The quick brown fox jumps OVER THE lazy^ dog.
The quick brown fox jumps OVER THE lazy^ dog.
M-l
The quick brown fox jumps OVER the lazy^ dog.
The quick brown fox jumps over THE lazy^ dog.
The quick brown fox jumps OVER THE lazy^ dog.
It looks to be caused by the use of fix-word--quick-fix-times
as a global variable. Perhaps there would be a way to increment that count only once, or divide by the number of active cursors, or look into how smartparens
handles sp--mc/cursor-specific-vars
… haven't dug into this too much, as I said any case switching can be performed in other ways right now.
According to this web site
All large words in the titles of movies, books, and other publications should be capitalized, while all small words (a, an, the, but, and, if, as, or, nor, to name a few) should not be capitalized unless they are the first or last words in the title:
A Life Less Ordinary (The word "A" would not normally be capitalized, but because it is the first word in the title, we must capitalize it.)
OR
War of the Worlds (The words "of" and "the" are not capitalized because they are small and are not at the beginning or end of the title, though exceptions to the "small words" rule do exist.)
So, how should we handle those scenarios when we capitalize words.
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.