-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathidea-file-info
executable file
·54 lines (52 loc) · 1.45 KB
/
idea-file-info
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/sh
#
# Display Java file info. To be run as external tool within IDEA.
exec jq -R --slurp . <<-IN | exec jq -r '. | fromjson' | exec vim '+set ft=json' -
{
"AffectedModuleNames": "$1",
"Classpathl": "$2",
"ClasspathEntry": "$3",
"ColumnNumber": "$4",
"ContentRoot": "$5",
"FileClass": "$6",
"FileDir": "$7",
"FileDirName": "$8",
"FileDirPathFromParent": "$9",
"FileDirRelativeToProjectRoot": "${10}",
"FileDirRelativeToSourcepath": "${11}",
"FileEncoding": "${12}",
"FileExt": "${13}",
"FileFQPackage": "${14}",
"FileName": "${15}",
"FileNameWithoutAllExtensions": "${16}",
"FileNameWithoutExtension": "${17}",
"FilePackage": "${18}",
"FileParentDir": "${19}",
"FilePath": "${20}",
"FilPatheRelativeToProjectRoot": "${21}",
"FilePathRelativeToSourcepath": "${22}",
"FileRelativeDir": "${23}",
"FileRelativePath": "${24}",
"IsMake": "${25}",
"JavaDocPath": "${26}",
"JDKPath": "${27}",
"LineNumber": "${28}",
"ModuleFileDir": "${29}",
"ModuleFilePath": "${30}",
"ModuleName": "${31}",
"ModuleSdkPath": "${32}",
"ModuleSourcePath": "${33}",
"OutputPath": "${34}",
"ProjectFileDir": "${35}",
"ProjectName": "${36}",
"Projectpath": "${37}",
"PyInterpreterDirectory": "${38}",
"SelectionEndColumn": "${39}",
"SelectionEndLine": "${40}",
"SelectionStartColumn": "${41}",
"SelectionStartLine": "${42}",
"Sourcepath": "${43}",
"SourcepathEntry": "${44}"
}
IN
# vim: set ft=sh noexpandtab :