Command more - [m]ore
Shows matching lines.
Example: show ‘message’
rxedit sample.rs more::message::o
more::messageshows lines matchingmessage.::ofor a supported language, the “owner” (class, function, struct, etc…) gets shown
Output
fn make_message() -> String {
fn print_message(message: &str) {
println!("{message}");
fn main() {
let message = make_message();
print_message(&message);
More examples:
rxedit sample.rs m::message::oFisame thing, but match as a fixed, case-insentive stringrxedit sample.rs m::message::A2likegrep -A 2 message sample.rsrxedit sample.rs 'm::print..\(::g'uses..shortcode to show any line matchingprint*(
Search flags
| Name | Format | Example | Description |
|---|---|---|---|
| insensitive | i | ::i | case-insentive search |
| after | A(\d+) | ::A16 | Show NUM lines after each match. |
| before | B(\d+) | ::B5 | Show NUM lines before each match. |
| context | C(\d+) | ::C5 | Show NUM lines before and after each match. |
| fixed_string | F | ::F | treat search as regular string, not a regex |
| use_grep_shortcodes | g | ::g | expands shortcodes (..→.*, ~~s.→ +) |
| no_use_grep_shortcodes | G | ::G | does not expand grep shortcodes |
| show_owner | o | ::o | show “owner” of the line |
| set key | sk=([a-z]+)(?:.|/|$) | ::sk=importan | / set key to a value that can be used with wk= |
| where_key | wk=([a-z]+)(?:.|/|$) | ::wk=mykey/ | puts an extra criteria to other commands |
| where_linenum | wl=([-0-9A-Ca-chtHT,.]+) | ::wl=..5,8,-1/ | limit line number range |