Skip to content

Improve php-imenu-generic-expression #666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 10, 2021
Merged

Improve php-imenu-generic-expression #666

merged 4 commits into from
May 10, 2021

Conversation

zonuexe
Copy link
Member

@zonuexe zonuexe commented May 9, 2021

The old list had duplicate items and lacked an index of modern syntax elements.
Modern PHP code focuses on building one class per file. (PSR-4)

We recommend using bmag/imenu-list instead of imenu.

Customization

;; For simple display
(custom-set-variables '(php-imenu-generic-expression 'php-imenu-generic-expression-simple))

;; For compatibility
(custom-set-variables '(php-imenu-generic-expression 'php-imenu-generic-expression-legacy))

Screen shot

Before

スクリーンショット 2021-05-10 4 44 51

After

スクリーンショット 2021-05-10 4 37 50

Simple

スクリーンショット 2021-05-10 21 31 12

@zonuexe zonuexe force-pushed the improve/imenu-regexp branch 2 times, most recently from d53f892 to 7c9c169 Compare May 9, 2021 20:27
The old list had duplicate items and lacked an index of modern syntax
elements.
Modern PHP code focuses on building one class per file. (PSR-4)
@zonuexe zonuexe force-pushed the improve/imenu-regexp branch from 7c9c169 to a3111a5 Compare May 9, 2021 20:30
@zonuexe zonuexe force-pushed the improve/imenu-regexp branch from a3111a5 to 0817e36 Compare May 10, 2021 12:46
@zonuexe zonuexe merged commit 7954afb into master May 10, 2021
@zonuexe zonuexe deleted the improve/imenu-regexp branch May 10, 2021 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant