Add options to disable#43
Conversation
* line number * git modification marker * file name fix #5
There was a problem hiding this comment.
Welcome and thank you very much for working on this!
The implementation looks good but I would really like to avoid having to add three command line arguments for this.
Could we please discuss some alternatives first?
For example: a --style with several arguments (plain, numbers, ..., full)?
Do we need the file titles anyway? Does this need to be configurable? Maybe we should just show them if there is more than one file and disable them by default?
src/main.rs
Outdated
| .arg( | ||
| Arg::with_name("disable-git-modfication-marker") | ||
| .short("g") | ||
| .long("disable-git-modfication-marker") |
There was a problem hiding this comment.
typo: modfication => modification. Maybe just disable-git-markers?
src/main.rs
Outdated
| .arg( | ||
| Arg::with_name("disable-line-number") | ||
| .short("n") | ||
| .long("disable-line-number") |
src/main.rs
Outdated
| .arg( | ||
| Arg::with_name("disable-file-name") | ||
| .short("f") | ||
| .long("disable-file-name") |
|
Thanks for such a quick feedback. Sure I would say
In addition
What do you think? I do not have any strong opinions, except that the arguments which default tools have should match so one can easily switch from default to rust alternatives for basic programs. |
Sounds great.
I thouhgt about this again.. the header bar with the file name is not super-helpful for a single file right now, but I was planning to add some more information to that line (git status, number of added/deleted/modified lines, last modified by, etc.). We should definitely disable the header for
If we keep the header, I'd also like to keep the horizontal lines for now. Again, they should definitely be removed for Thoughts? |
|
Sure. Then lets do the style option with
|
Remove previously added options to disable * line number * git modification marker * file name fix #5
|
Thank you! |
|
Oh, for some reason I thought it would completely disable the horizontal/vertical bars for |
|
Ah, yes, now I see that you did mention it. But somehow I confused it and retained it as we wanted to retain the name anyway and with multiple files this would anyway be an issue. |
I think "plain" should really just be the file contents, nothing else. Sorry if I confused you with the file-name/header thing.
Why? It would be the same as the normal Would you agree with these statements? If yes, would you like to address this in another PR? Otherwise, I can also implement this myself. In any case, thanks! |
|
Please see the latest PR |
fix #5