shsms / mime Goto Github PK
View Code? Open in Web Editor NEWmime is a scripting tool for text processing, inspired by Emacs Keyboard Macros.
Home Page: https://shsms.github.io/mime
License: GNU General Public License v3.0
mime is a scripting tool for text processing, inspired by Emacs Keyboard Macros.
Home Page: https://shsms.github.io/mime
License: GNU General Public License v3.0
Some while loop cases to test:
Is your feature request related to a problem? Please describe.
When making changes, lines sometimes get too long. We need something like emacs' auto-fill mode to fold long lines and join short lines.
Describe the solution you'd like
We need a new method autofill(n)
with optional n defaulting to 80. It would operate on a narrowed view if present, or on the entire document. We also need an autofill_region(n)
that autofills only from mark to point, if a mark is present.
The find methods (find, rfind, find_fuzzy) return a boolean true if found, and move the cursor to the end (find, find_fuzzy) of the match, or to the beginning(rfind) of the match, and false if not found. Instead of returning a boolean, they should return the location of the beginning(find, find_fuzzy) of the match, or the end(rfind) of the match. And -1 if not found.
For example, find("hello")
would move cursor to immediately after o
if the text is found. find
should return the location of h
.
add file_reader class, which can read in chunks of n bytes or upto next delim, or upto first delim after n bytes.
add file_writer class, which can write to chunks, and can optionally add delim between chunks.
One option is to port an existing library like https://github.com/gobuffalo/flect to C++, and then get mime to use it.
Add functions for:
The find_fuzzy
method uses a number of different filters to find a match. It should be possible for a user to choose which of these filters to use.
Is your feature request related to a problem? Please describe.
Right now, to delete characters adjacent to the cursor, we need to make a region around it and delete the region, which is slow.
Describe the solution you'd like
On buffer objects,
backspace
function with optional size_t
argumentdelete
function with optional size_t
argumentIf chaiscript objects can be serialized to json, mime scripts can use that for state tracking, etc.
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.