Gary Tou 4ee1f0fb5d [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
2023-12-02 04:32:04 +00:00
..
2023-08-21 21:45:55 -07:00
2023-12-02 04:32:04 +00:00
2023-11-07 05:17:52 +00:00
2023-11-07 04:06:59 +00:00
2023-11-07 02:32:01 +00:00
2023-11-07 02:27:08 +00:00
2023-11-06 10:08:41 +00:00
2023-11-07 07:01:35 +00:00
2023-11-06 18:33:03 +09:00
2023-11-07 08:29:31 +00:00
2023-10-03 16:13:18 +09:00
2023-11-07 13:37:17 +09:00
2023-11-07 07:32:00 +00:00
2023-11-07 07:15:34 +00:00
2023-11-07 12:53:16 +09:00
2023-11-07 03:47:15 +00:00
2023-11-07 15:35:37 +09:00
2023-11-07 02:52:46 +00:00
2023-11-07 03:42:58 +00:00
2023-11-07 16:37:06 +09:00
2023-11-07 01:40:53 +00:00
2023-11-07 06:16:31 +00:00
2023-11-07 01:00:08 +00:00
2023-11-07 03:10:45 +00:00
2023-11-06 09:46:21 +00:00
2023-11-06 09:44:09 +00:00
2023-11-07 05:09:48 +00:00
2023-11-07 04:56:40 +00:00
2023-11-07 11:39:02 +09:00
2023-11-07 01:59:17 +00:00
2023-11-06 09:29:53 +00:00
2023-11-07 01:46:40 +00:00
2023-11-06 19:03:04 +09:00