Skip to content
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

Add Makefile location next to its name in files tree #867

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

fan-tom
Copy link

@fan-tom fan-tom commented May 22, 2022

This PR adds file path next to the Makefile file name in makefiles panel
Before:
изображение
After:
изображение

This is useful when there are multiple makefiles with the same name in the same project, possibly even with the same set of actions

This PR also adds gradle build script to be able to build, run and test this plugin without need to have IDEA sources and copying file there, as described here

To be able to run tests I modified BASE_TEST_DATA_PATH constant in MakefileTestUtils.kt to calculate it in similar way it is done in handlebars plugin


override fun renderName(renderer: ColoredTreeCellRenderer) {
super.renderName(renderer)
renderer.append(" ${psiFile.virtualFile.path}", SimpleTextAttributes.GRAYED_ITALIC_ATTRIBUTES, false)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any way to make this fragment right-aligned? I tried different values for padding of this and filename fragments together with alignment = RIGHT - no effect.

@fan-tom
Copy link
Author

fan-tom commented Nov 3, 2022

Seems this PR is superceeded by 2ebe18d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants