Skip to content

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

Open
jorge-leon wants to merge 1 commit into
hughbarney:masterfrom
jorge-leon:parse_args
Open

Load all files on command line and optionally jump to specified line#15
jorge-leon wants to merge 1 commit into
hughbarney:masterfrom
jorge-leon:parse_args

Conversation

@jorge-leon
Copy link
Copy Markdown

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.

@hughbarney
Copy link
Copy Markdown
Owner

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.

@jorge-leon
Copy link
Copy Markdown
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants