[PHP] Navigator improvements
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Description
The navigator window has four filters at the moment:
- `Show inherited members`
- `Show fields`
- `Show static Methods and Variables`
- `Show non public members`
I suggest the following changes/additions:
### • Add `Show constants` filter
Analogue to `Show fields` a `Show constants` filter would probably be very useful.
### • Add `Show uses` filter
Having many "uses" fills the navigator list with stuff thats often more like noise. They are all at one place at the beginning of the file anyway so I would prefer to be able to toggle their display in the navigator.
### • Consistency in hover popups / popup menu entries
While being at it, a rather small cosmetic changes comes to mind (nothing that improves productivity, just noticed):
The hover popups in the filter pane are named:
- `Show inherited members`
- `Show fields`
- `Show static Methods and Variables`
- `Show non public members`
Whereas the menu entries you get in the Filters menu when right click the navigator are named:
- `Show Inherited Members`
- `Show Fields`
- `Show Static Methods and Variables`
- `Show Non Public Members`
I guess having both either lowercase or both capitalized (looking at other menues thats probably the way to go) would be a good idea.
### Use case/motivation
IMHO the suggested changes would improve the usefulness of the navigator.
### Related issues
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
No file or test is named. Start by locating the PHP navigator window and its existing filter definitions, then trace how the Filters context menu and hover labels are built. Done means adding toggles for constants and uses, with matching capitalization between hover popups and menu entries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100