atto icon indicating copy to clipboard operation
atto copied to clipboard

Load all files on command line and optionally jump to specified line

Open jorge-leon opened this issue 2 years ago • 2 comments

Issuing ./atto +10 README.md main.c -- +5 in the source directory will:

  • open README.md with the cursor set to line 10
  • open main.c
  • try to open the non existing file +5

This patch adds 19 Wheeler's SLOC and 24 netto lines to atto. wc -l *.[ch] gives 1994.

jorge-leon avatar Jul 19 '22 02:07 jorge-leon

This would be a nice feature to add to my Fento Editor where I have not placed a limit of keeping below 2000 lines of C.

hughbarney avatar Nov 27 '22 19:11 hughbarney

This would be a nice feature to add to my Fento Editor where I have not placed a limit of keeping below 2000 lines of C.

In fact I've started to work on Femto first with this and other PR. But atto does what I need (simple edits in resource constrained environments) and at this moment I couldn't afford working on two side projects.

On the other hand: How do you count lines of C? What kind of (line reducing) optimizations are allowed? How much "buffer" of C lines do you allocate?

jorge-leon avatar Nov 28 '22 10:11 jorge-leon