Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove unused files and update readme
- Loading branch information
chee
committed
Aug 11, 2017
1 parent
31736c5
commit 920f463
Showing
10 changed files
with
34 additions
and
126 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,5 +1,27 @@ | ||
# camel-case-mode package | ||
# camelCaseMode | ||
|
||
A short description of your package. | ||
press a key to enable *__camelCaseMode__*, which capitalises the letter pressed | ||
after `space`. so like: | ||
|
||
![A screenshot of your package](https://f.cloud.github.com/assets/69169/2290250/c35d867a-a017-11e3-86be-cd7c5bf3ff9b.gif) | ||
please<kbd>space</kbd>help<kbd>space</kbd>me<kbd>space</kbd>mrs<kbd>space</kbd>jones comes out like `pleaseHelpMeMrsJones` | ||
|
||
you can press space again to get out of *__camelCaseMode__* | ||
|
||
can enable some kind of indication for yoself that you in camelCaseMode by way of | ||
|
||
```less | ||
// styles.less | ||
.camel-case-mode { | ||
border: 1px solid #ff2a50; | ||
} | ||
``` | ||
|
||
(`.camel-case-mode` is set on `atom-text-editor`) | ||
|
||
## TODO | ||
|
||
* write tests | ||
* deactivate on <kbd>C-c</kbd>, <kbd>C-g</kbd>, <kbd>Esc</kbd> | ||
* apologise to everybody for everything i've ever done | ||
* meet a princess and live in a castle | ||
* or a prince |
This file was deleted.
Oops, something went wrong.
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
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,73 +1,3 @@ | ||
'use babel' | ||
|
||
import CamelCaseMode from '../lib/camel-case-mode' | ||
|
||
// Use the command `window:run-package-specs` (cmd-alt-ctrl-p) to run specs. | ||
// | ||
// To run a specific `it` or `describe` block add an `f` to the front (e.g. `fit` | ||
// or `fdescribe`). Remove the `f` to unfocus the block. | ||
|
||
describe('CamelCaseMode', () => { | ||
let workspaceElement, activationPromise | ||
|
||
beforeEach(() => { | ||
workspaceElement = atom.views.getView(atom.workspace) | ||
activationPromise = atom.packages.activatePackage('camel-case-mode') | ||
}) | ||
|
||
describe('when the camel-case-mode:toggle event is triggered', () => { | ||
it('hides and shows the modal panel', () => { | ||
// Before the activation event the view is not on the DOM, and no panel | ||
// has been created | ||
expect(workspaceElement.querySelector('.camel-case-mode')).not.toExist() | ||
|
||
// This is an activation event, triggering it will cause the package to be | ||
// activated. | ||
atom.commands.dispatch(workspaceElement, 'camel-case-mode:toggle') | ||
|
||
waitsForPromise(() => { | ||
return activationPromise | ||
}) | ||
|
||
runs(() => { | ||
expect(workspaceElement.querySelector('.camel-case-mode')).toExist() | ||
|
||
let camelCaseModeElement = workspaceElement.querySelector('.camel-case-mode') | ||
expect(camelCaseModeElement).toExist() | ||
|
||
let camelCaseModePanel = atom.workspace.panelForItem(camelCaseModeElement) | ||
expect(camelCaseModePanel.isVisible()).toBe(true) | ||
atom.commands.dispatch(workspaceElement, 'camel-case-mode:toggle') | ||
expect(camelCaseModePanel.isVisible()).toBe(false) | ||
}) | ||
}) | ||
|
||
it('hides and shows the view', () => { | ||
// This test shows you an integration test testing at the view level. | ||
|
||
// Attaching the workspaceElement to the DOM is required to allow the | ||
// `toBeVisible()` matchers to work. Anything testing visibility or focus | ||
// requires that the workspaceElement is on the DOM. Tests that attach the | ||
// workspaceElement to the DOM are generally slower than those off DOM. | ||
jasmine.attachToDOM(workspaceElement) | ||
|
||
expect(workspaceElement.querySelector('.camel-case-mode')).not.toExist() | ||
|
||
// This is an activation event, triggering it causes the package to be | ||
// activated. | ||
atom.commands.dispatch(workspaceElement, 'camel-case-mode:toggle') | ||
|
||
waitsForPromise(() => { | ||
return activationPromise | ||
}) | ||
|
||
runs(() => { | ||
// Now we can test for view visibility | ||
let camelCaseModeElement = workspaceElement.querySelector('.camel-case-mode') | ||
expect(camelCaseModeElement).toBeVisible() | ||
atom.commands.dispatch(workspaceElement, 'camel-case-mode:toggle') | ||
expect(camelCaseModeElement).not.toBeVisible() | ||
}) | ||
}) | ||
}) | ||
}) | ||
// TODO |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -5,5 +5,5 @@ | |
@import "ui-variables"; | ||
|
||
.camel-case-mode { | ||
border: 1px solid @text-color; | ||
// border: 1px solid #ff2a50; | ||
} |