Project

fancy_buff

0.0
The project is in a healthy, maintained state
a text buffer with marks, selections, and simple insert/delete
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 5.18

Runtime

~> 4.1
 Project Readme

see lib/fancy_buff.rb for usage

run the minitest specs:

$ bundle exec ruby -Ilib:test lib/**/*_test.rb
  • add a cursor (not visual, but a char index)
  • inserts/deletes should move marks, possibly removing them in a delete
  • inserts/deletes should move selections, possibly removing some/all of them in a delete
  • add yanks (creating of dynamic char ranges as selections)
  • add highlights (reusable visually highlighted ranges, which maybe is just a selection that some other tool will highlight visually?)
  • consider whether or not everything should be a range
    • marks can be single or multi-character marks
    • selections are already ranges
    • yanks are a special kind of range that is created when copying something
    • highlights are just selections displayed visually, which is some other tool's job