Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
ba5cab0
Add dev deps
aminya Mar 21, 2020
47e99f3
Adding tsconfig
aminya Mar 7, 2020
8417f48
prettier
aminya Mar 11, 2020
8144819
Add tslint
aminya Mar 15, 2020
d6d97fe
Add ESLint
aminya Mar 21, 2020
dce38b3
Conversion - Decaffination
aminya Mar 7, 2020
023ba76
counts as Array<number>
aminya Mar 7, 2020
3f0d6c5
types in bestof
aminya Mar 7, 2020
7394202
using normal for loop to get number index
aminya Mar 8, 2020
621913b
editor :TextEditor annotation
aminya Mar 7, 2020
283a667
getPath() instead (new API)
aminya Mar 7, 2020
74b95a9
to make sure is defined
aminya Mar 7, 2020
e6eab5b
.getScopesArray() instead of scopres
aminya Mar 7, 2020
3c82740
row and line type annotation
aminya Mar 7, 2020
3fff06a
observe possibleIndentations number
aminya Mar 8, 2020
909cb0d
statusbar and editor type annotation + import
aminya Mar 8, 2020
72461ce
fixed length items algorithm
aminya Mar 8, 2020
c45a8d3
show xs type annotation
aminya Mar 8, 2020
aaebe9d
indent type annotation
aminya Mar 8, 2020
8b516f8
Create atom-select-list.d.ts
aminya Mar 9, 2020
29e4a15
add atom-select-list in deps
aminya Mar 9, 2020
dec284c
remove atom-space-pen-views
aminya Mar 9, 2020
550042e
import SelectListView class
aminya Mar 9, 2020
a2f9fec
SelectListView defining
aminya Mar 9, 2020
e31224d
items
aminya Mar 9, 2020
3f59e1c
elementForItem
aminya Mar 9, 2020
89ddc12
filterKeyForItem
aminya Mar 9, 2020
782826a
didConfirmSelection
aminya Mar 9, 2020
de13e06
didCancelSelection
aminya Mar 9, 2020
e545215
Adding SelectListView to panel
aminya Mar 9, 2020
580d35f
Add disposable
aminya Mar 9, 2020
c190d01
Show selector
aminya Mar 9, 2020
d3d3aac
setIndent
aminya Mar 9, 2020
570b09f
getItemsList
aminya Mar 9, 2020
4308cff
formatting
aminya Mar 9, 2020
0ba778d
selector_show import
aminya Mar 9, 2020
d871df9
IndentSetting
aminya Mar 9, 2020
6aad2b4
subs.add update
aminya Mar 9, 2020
ff7910c
const SelectListView = require('atom-select-list')
aminya Mar 9, 2020
f8cefa7
Fix bug in possibleIndentations
aminya Mar 9, 2020
c5b0ae8
manual set type
aminya Mar 9, 2020
cbc6782
remove enableDebugMessages from config
aminya Mar 9, 2020
063183f
Fixing settings-view
aminya Mar 10, 2020
422af63
Remove unnecessary initialization
aminya Mar 10, 2020
aad6e1c
Define IndentStatusItem class
aminya Mar 10, 2020
5a17a84
statusItem class instead of module
aminya Mar 10, 2020
1d63e01
Regex match safety
aminya Mar 10, 2020
80f438f
move possibleIndentations inside activate
aminya Mar 10, 2020
a78c957
Remove semicolons
aminya Mar 10, 2020
18de574
Using lib_src folder for typescript src
aminya Mar 10, 2020
a98ec15
Add comment for atom-select-list PR
aminya Mar 14, 2020
0391392
Call getItemsList() only once inside the activate - enhances performance
aminya Mar 15, 2020
c70ca04
getLines only once - improves performance
aminya Mar 15, 2020
7dac21e
Use const instead of let (even for the Arrays that their element chan…
aminya Mar 15, 2020
5aac055
radix for parseInt
aminya Mar 15, 2020
59a972e
Using === and !== instead of == and !=
aminya Mar 15, 2020
62f88c7
object literal shorthand
aminya Mar 15, 2020
92ab51a
Code for benchmark (commented)
aminya Mar 15, 2020
6bbfc59
Commenting debug code
aminya Mar 15, 2020
5e46017
Remove atom-select-list unused files
aminya Mar 15, 2020
f18a2bf
Prettier on source files
aminya Mar 21, 2020
1c2795f
Defining Selector class
aminya Mar 22, 2020
6c47bb4
Using functions with inputs instead of global variables
aminya Mar 22, 2020
747c5c3
Construction/Disposing of Selector - Delayed until choose indent is s…
aminya Mar 22, 2020
4e64a6f
Don't lookup in for-loop - improves performance
aminya Mar 22, 2020
1b50f3c
Adding babel for for-of transform
aminya Mar 22, 2020
18b93b9
Scripts for building, linting, etc
aminya Mar 22, 2020
21dd130
best for-optimization by not looking up array.length
aminya Mar 22, 2020
4432ab2
Let script build with typescript warnings
aminya Mar 29, 2020
d95021b
bring debug code back
aminya Mar 29, 2020
f408830
No return for IndentStatusItem functions
aminya Mar 29, 2020
f3796c9
Rename lib_src to src
aminya Mar 31, 2020
0051413
git Ignore generated + npm publish files + prepare
aminya Mar 31, 2020
9ede7be
Add source map + remove comments
aminya Mar 31, 2020
e27a598
Update package-lock.json
aminya Mar 21, 2020
0a6772f
TSLint member access false
aminya Mar 31, 2020
0f11a00
Status - Merge createView into constructor
aminya Mar 31, 2020
608d125
Using interface instead of type for IndentSettings
aminya Mar 31, 2020
2785d32
braces for 1 line if statements
aminya Mar 31, 2020
7c27c05
npm run prettier_src
aminya Mar 31, 2020
b9e0946
ts-transformer-for-of
aminya Apr 1, 2020
8b9837f
remove babel-minify+ babel-transform-for-of
aminya Apr 1, 2020
6b5eadf
webpack
aminya Apr 1, 2020
9777fd5
Update package-lock.json
aminya Apr 1, 2020
d56e55b
ppublish script
aminya Apr 1, 2020
91df87a
Add GithubActions CI
aminya Apr 4, 2020
f51f817
Jasmine 3 configs
aminya Apr 4, 2020
69c7808
Update package-lock.json
aminya Apr 4, 2020
6cf99e4
Spec-runner
aminya Apr 4, 2020
74bfa4d
Spec asset file
aminya Apr 4, 2020
3585b6e
Spec getIndentView function + IndentView interface
aminya Apr 4, 2020
c8e3d22
beforeEach
aminya Apr 4, 2020
9b4aa8b
Automatic Indent Calculation
aminya Apr 4, 2020
226cf7e
choose-indent
aminya Apr 4, 2020
ac39db9
choose-indent specific selection
aminya Apr 4, 2020
433a9a5
choose-indent automatic selection
aminya Apr 4, 2020
c149658
choose-indent tabs selection
aminya Apr 4, 2020
c7389d4
when editor is closed
aminya Apr 4, 2020
dccc0e1
Clicking on statusbar item
aminya Apr 4, 2020
67f4d3c
Enable Debug Messages
aminya Apr 4, 2020
59b4595
Activation Benchmark
aminya Apr 4, 2020
2a8a3d2
Opening Benchmark
aminya Apr 4, 2020
686d86e
Todo Failing
aminya Apr 4, 2020
92cf516
IndentStatusItem - Remove unused bar field
aminya Apr 5, 2020
7da0f2b
SelectorItems remove excess constructor test
aminya Apr 5, 2020
c852c19
atom-select-list - import instead of require
aminya Apr 5, 2020
99d9076
didCancelSelection excess return
aminya Apr 5, 2020
3e572cc
simplify inline benchmark code
aminya Apr 5, 2020
2babc9b
IndentStatusItem - Merge consumeStatusBar into constructor
aminya Apr 5, 2020
525aee1
Activation Hook
aminya Apr 5, 2020
556664b
ignore after commit
aminya Apr 11, 2020
0e85161
TODO tests
aminya Apr 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
// JS Files
"root": true,
"env": {
"atomtest": true,
"es6": true,
"node": true,
"browser": true,
"jasmine": true
},
"globals": { "atom": "writable" },
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["only-warn"],
"extends": ["eslint:recommended"],
"overrides": [
{ // Bundled node version with atom has an old ESLint
// TypeScript files
"files": ["**/*.ts", "**/*.tsx"],
"env": {
"atomtest": true,
"es6": true,
"node": true,
"browser": true
},
"globals": { "atom": "writable" },
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": { "jsx": true },
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "only-warn"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/member-delimiter-style": "off"
}
},
{
// JSON files
"files": ["*.json"],
"plugins": ["json"],
"extends": ["plugin:json/recommended"],
"rules": {
"json/*": ["error", {"allowComments": true}]
}
}
]
}
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: CI
on:
- push
- pull_request

jobs:
Test:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
name: ${{ matrix.os }} - Atom ${{ matrix.atom_channel }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
atom_channel: [stable] # beta
steps:
- uses: actions/checkout@v2
- uses: UziTech/action-setup-atom@v1
with:
channel: ${{ matrix.atom_channel }}
- name: Versions
run: |
apm -v
- name: Install APM dependencies
run: |
apm ci # uses locked module. use `apm install` for non-locked
- name: Run tests 👩🏾‍💻
run: npm run test

Lint:
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "13.x"
- name: Install NPM dependencies
run: |
npm ci # uses locked module. use `npm install` for non-locked
- name: Lint ✨
run: npm run lint

Skip:
if: contains(github.event.head_commit.message, '[skip ci]')
runs-on: ubuntu-latest
steps:
- name: Skip CI 🚫
run: echo skip ci
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.DS_Store
npm-debug.log
node_modules
/lib
src/*.js
spec/*.js
src/*.js.map
spec/*.js.map
!/spec/runner.js
186 changes: 0 additions & 186 deletions lib/indent-detective.js

This file was deleted.

29 changes: 0 additions & 29 deletions lib/selector.coffee

This file was deleted.

40 changes: 0 additions & 40 deletions lib/status.coffee

This file was deleted.

Loading