This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/VarDumper
Fabien Potencier 1e10227ac1 feature #21238 [VarDumper] Add search keyboard shortcuts (ogizanagi)
This PR was merged into the 3.3-dev branch.

Discussion
----------

[VarDumper] Add search keyboard shortcuts

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #21174
| License       | MIT
| Doc PR        | Worth to mention?

So, this PR simply adds the following shortcuts to navigate between matches, based on main browsers conventions:

- <kbd>CTRL/CMD</kbd> + (<kbd>shift</kbd>* +) <kbd>G</kbd>
- (<kbd>shift</kbd>* +) <kbd>ENTER</kbd>
- (<kbd>shift</kbd>* +) <kbd>F3</kbd>

_* <kbd>shift</kbd> allows to go backwards_

At first, I wanted to add a help box somewhere, but:
- I don't know where to place it. As the var dumper is now used everywhere in the profiler, it should not be importune and should work in narrowed places.
- We use those shortcuts in order to replicate the main softwares/browsers behavior. So we may not need it at all.

This PR also fixes a minor issue where pressing a key not changing the input would have restarted the search query.

Commits
-------

58fe4315ae [VarDumper] Add search keyboard shortcuts
2017-01-15 08:39:59 -08:00
..
Caster [DI][EventDispatcher] Add & wire closure-proxy argument type 2017-01-06 08:57:26 +01:00
Cloner [VarDumper] Add SymfonyCaster::castRequest() 2016-12-13 08:26:08 +01:00
Dumper feature #21238 [VarDumper] Add search keyboard shortcuts (ogizanagi) 2017-01-15 08:39:59 -08:00
Exception tweak some deprecation messages 2015-10-06 17:57:37 +02:00
Resources/functions [DebugBundle] adjust after review 2014-09-23 16:25:59 +02:00
Test [VarDumper] Get dump as string with $dumper->dump(..., true); 2016-08-27 08:12:35 +02:00
Tests Fix test 2017-01-03 09:53:57 +01:00
.gitignore [VarDumper] Ignore /vendor/ directory in git 2015-02-17 17:54:47 +01:00
CHANGELOG.md Revert "Added missing changelog entry" 2015-04-03 09:54:01 +02:00
composer.json updated version to 3.3 2016-11-19 12:35:20 -08:00
LICENSE updated LICENSE year 2017-01-02 12:30:00 -08:00
phpunit.xml.dist [VarDumper] Add flags to allow fine tuning dumps representation 2016-01-13 10:49:27 +01:00
README.md Fix typo in VarDumper README 2016-04-22 14:44:08 +02:00
VarDumper.php Add more callable type hints 2015-10-05 18:52:37 +02:00

VarDumper Component

The VarDumper component provides mechanisms for walking through any arbitrary PHP variable. Built on top, it provides a better dump() function that you can use instead of var_dump.

Resources