diff options
author | Gary Tou <[email protected]> | 2023-12-01 20:32:00 -0800 |
---|---|---|
committer | git <[email protected]> | 2023-12-02 04:32:04 +0000 |
commit | 4ee1f0fb5de08acd659ec18409fca433d1bf371a (patch) | |
tree | 59be9607e33d205a05c12d3c40659f5553e716fe /lib/resolv-replace.rb | |
parent | 9f6c6f88c3b135a41efc3e76c4b3c012141ef8b1 (diff) |
[ruby/irb] Implement `history` command
(https://github.com/ruby/irb/pull/761)
* Implement `history` command
Lists IRB input history with indices. Also aliased as `hist`.
* Add tests for `history` command
* Address feedback: `puts` with multiple arguments instead of `join`ing
* Address feedback: Handle nil from splitting an empty input string
* Refactor line truncation
* Add `-g` grep option to `history` command
* Add `history` command to README
* Remove unused `*args` parameter
* Allow spaces to be included in grep
* Allow `/` to be included in grep regex
* Handle `input` being an empty string
* Exclude "#{index}: " from matching the grep regex
* Add new line after joining
https://github.com/ruby/irb/commit/3f9eacbfa9
Diffstat (limited to 'lib/resolv-replace.rb')
0 files changed, 0 insertions, 0 deletions