pry--pry/test
Kyrylo Silin 3e56239d50 Implement `cd -` command
The `cd -` command allows a user to toggle between last two scopes.

Example:

  [1] pry(main)> cd :foo
  [2] pry(:foo):1> cd :bar
  [3] pry(:bar):2> cd -
           ^ save :bar and toggle
  [4] pry(:foo):1> cd 44
           ^ we are back at foo
  [5] pry(44):2> cd ..
  [6] pry(:foo):1> cd ..
  [7] pry(main)> cd -
           ^ save main and toggle
  [8] pry(:foo):1>
           ^ we are back at foo

Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
2012-06-19 16:43:46 +02:00
..
test_default_commands Implement `cd -` command 2012-06-19 16:43:46 +02:00
helper.rb allow (class|instance)_eval based monkeypatch detection for show-source -a 2012-06-04 05:00:11 +12:00
test_cli.rb updated cli.rb for new API and added tests for cli 2011-12-11 04:13:42 +13:00
test_code.rb Fix whereami inside __binding_impl__ 2012-06-10 23:42:15 -07:00
test_command.rb Fix whereami with tests, closes #595 2012-06-16 01:25:07 +12:00
test_command_helpers.rb
test_command_integration.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00
test_command_set.rb aliases inherit options from original, fixes #525 2012-04-12 20:58:59 +12:00
test_completion.rb Manually merged branch "issue/601". 2012-06-19 15:47:52 +02:00
test_control_d_handler.rb Add unit tests for DEFAULT_CONTROL_D_HANDLER 2012-06-17 11:25:33 +12:00
test_exception_whitelist.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00
test_history_array.rb
test_hooks.rb Allow use of hash-based hooks, but show warning. 2012-01-24 21:44:21 +13:00
test_indent.rb Don't indent inside strings. [Fixes #535] 2012-04-22 01:20:38 -07:00
test_input_stack.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00
test_method.rb Fix show-source and show-doc on __binding__/__binding_impl__ 2012-06-10 23:42:14 -07:00
test_pry.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00
test_pry_defaults.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00
test_pry_history.rb
test_pry_output.rb
test_sticky_locals.rb added Pry.config.extra_sticky_locals config option 2012-03-14 15:35:24 +13:00
test_syntax_checking.rb Tidy up tests and remove some repeating code 2012-06-11 19:33:04 +02:00
test_wrapped_module.rb Show something for anonymous classes. [Fixes #366] 2011-12-19 00:58:27 -08:00
testrc
testrcbad