#editor #filter #mode

bin+lib paper

A terminal-based editor with goals to maximize simplicity and efficiency

2 unstable releases

✓ Uses Rust 2018 edition

0.2.0 Jan 18, 2019
0.1.0 Dec 26, 2018

#19 in Text editors

Download history 9/week @ 2018-12-22 4/week @ 2018-12-29 4/week @ 2019-01-05 12/week @ 2019-01-12

11 downloads per month

MIT license

52KB
1.5K SLoC

paper

terms

view = the entire file window = the currently visible portion of the view

process

display mode

  • display view through window
  • inputs:
    • (.) change to command mode
    • (#) filter by line number
    • (/) filter by search item
    • (j) move window 1/4 window down
    • (k) move window 1/4 window up

command mode

  • allow user to enter commands involving views
  • display command being entered along with suggestions
  • inputs:
    • (Enter) execute command
    • (edit) edit command
    • (C-C) return to display mode
  • commands:
    • see file
    • put
    • end

filter modes

  • allow user to select desired text to act upon
  • inputs:
    • (Enter) change to action mode
    • (Tab) stack a new filter
    • (edit) edit filter input
    • (C-C) return to display mode

(#) Line number

  • (digits) line number
  • (digits)(.)(digits) range between 2 numbers
  • (digits)(+/-)(digits) range starting at first number and going 2nd number up or down

action mode

  • user specifies an action to be taken on the filtered text
  • inputs:
    • (i) insert before filter
    • (I) insert after filter

edit mode

  • allow user to edit view
  • inputs:
    • (edit) edit view

Dependencies

~7MB
~132K SLoC