edwardUL99 / StudSysCppCLI

A CLI UI for the StudSysCpp Project. This is a "dummy" project that is not used but done to practise C++ and also software engineering in terms of issues, issue tracking, issue refinement, requirements engineering, releases and also databases
GNU General Public License v3.0
0 stars 0 forks source link

Now that you have line numbers add a way to choose which line to edit or delete etc #60

Closed edwardUL99 closed 4 years ago

edwardUL99 commented 4 years ago

This would act like a sort of cursor so that even though you may have passed line 5, let's say, rather than submitting and editing again, you'd be able to scroll back to that line using a command and a line number

The command may be:

<!goto>line-number and after returning from extract command (which would strip it to just the text, so it would be just line-number) convert that line-number to an int and use it as an index and edit the line using that index from the lines vector and reinsert it.

At the moment you use a string text and concatenate to. Maybe it would be best to keep everything to the vector and then go through concatenating each element of the vector as a line with "\n" after it. Or use the line index to scroll find n \n in the text, split the string, extract the line edit it and attach it back in and add on the rest that was split