nnn_runner_sample_input.txt (869B)
1 # Sample nnn test: basic navigation 2 # Lines starting with '#' are comments 3 # Lines starting with '>' send literal text 4 # Lines starting with '@' are directives 5 # All other lines are key names (see nnn_runner.sh header) 6 7 # Verify nnn started and shows the test directory 8 @assert file1.txt 9 @assert dir1 10 11 # Move cursor down 12 j 13 @sleep 100 14 15 # Move cursor down again 16 j 17 @sleep 100 18 19 # Take a snapshot of the current state 20 @snapshot after-nav-down 21 22 # Move cursor up 23 k 24 25 # Toggle detail mode 26 d 27 @sleep 200 28 @snapshot detail-mode 29 30 # Toggle detail mode off 31 d 32 33 # Mark offset before filter so @refute checks only filtered output 34 @mark 35 36 # Open filter prompt 37 / 38 @sleep 100 39 40 # Type a filter pattern (literal text) 41 >file 42 @sleep 300 43 @assert file1.txt 44 @assert file2.txt 45 @refute dir1 46 @snapshot filtered 47 48 # Clear filter with Escape 49 Escape 50 @sleep 200 51 52 # Quit nnn 53 q 54 @sleep 300 55 @snapshot after-quit