-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #36. Add right-click beautification of directory (sub-files)
- Loading branch information
Showing
5 changed files
with
84 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
# See https://atom.io/docs/latest/creating-a-package#menus for more details | ||
'context-menu': | ||
'.workspace .editor:not(.mini)': | ||
'Enable atom-beautify': 'beautify:editor' | ||
'.tree-view li[is="tree-view-file"].file.entry': | ||
'Beautify File': 'beautify:file' | ||
'Enable atom-beautify': 'beautify:beautify-editor' | ||
'.tree-view .file > .name': | ||
'Beautify File': 'beautify:beautify-file' | ||
'.tree-view .directory > .header > .name': | ||
'Beautify Directory': 'beautify:beautify-directory' | ||
|
||
'menu': [ | ||
{ | ||
'label': 'Packages' | ||
'submenu': [ | ||
'label': 'Beautify' | ||
'command': 'beautify:editor' | ||
'command': 'beautify:beautify-editor' | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.icon-file-text,.icon-file-directory { | ||
|
||
// While beautifying / in progress | ||
&.beautifying:before { | ||
// font-family: "Octicons Regular"; | ||
// font-size: medium; | ||
// text-align: center; | ||
// content: "\f09e"; // Octicon-hourglass | ||
|
||
background-image: url("images/octocat-spinner-128.gif"); | ||
// Animated spinner | ||
background-repeat: no-repeat; | ||
background-size: contain; | ||
// Image should fit to size of container, font-size | ||
content: ""; | ||
// Clear original icon content | ||
} | ||
} |