dalance/amber

Suggestion: Show line number in ambr, when stepping through the matches

Closed this issue · 3 comments

Suggestion: Show line number in ambr, when stepping through the matches.

ambr supports --column option like below:

$ ambr --column version version2
./src/ambr.rs: 23:#[structopt(raw(long_version = "option_env!(\"LONG_VERSION\").unwrap_or(env!(\"CARGO_PKG_VERSION\"))"))]

Ah thanks, I didn't that, I'll try it.
But it would be useful to show the line numbers by default to at least give a little context.

I added config support.
If there is ~/.ambr.toml like below, showing line number becomes default.

column = true