atom-community / atom-community/autocomplete-paths
Enable for all Atom scopes using ./ everywhere
- Dominant language
- JavaScript
- Stars
- 152
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
Since I lost a couple of hours trying to short this out, I'm pasting my config.cson for future use by someone with the same needs...
```
...
"autocomplete-paths":
enableHtmlSupport: true
maxFileCount: 10000
normalizeSlashes: false
scopes: [
{
scopes: [
"source.c"
"source.cake"
"source.clojure"
"source.coffee"
"source.coffee.jsx"
"source.cpp"
"source.cs"
"source.css"
"source.css.less"
"source.css.scss"
"source.csx"
"source.gfm"
"source.git-config"
"source.go"
"source.gotemplate"
"source.java"
"source.java-properties"
"source.js"
"source.js.jsx"
"source.js.rails source.js.jquery"
"source.js.regexp"
"source.js.regexp.replacement"
"source.json"
"source.litcoffee"
"source.makefile"
"source.nant-build"
"source.objc"
"source.objcpp"
"source.perl"
"source.perl6"
"source.plist"
"source.python"
"source.regexp.python"
"source.ruby"
"source.ruby.rails"
"source.ruby.rails.rjs"
"source.sass"
"source.shell"
"source.sql"
"source.sql.mustache"
"source.sql.ruby"
"source.strings"
"source.toml"
"source.yaml"
"text.git-commit"
"text.git-rebase"
"text.html.basic"
"text.html.erb"
"text.html.gohtml"
"text.html.jsp"
"text.html.mustache"
"text.html.php"
"text.html.ruby"
"text.hyperlink"
"text.junit-test-report"
"text.plain"
"text.plain.null-grammar"
"text.python.console"
"text.python.traceback"
"text.shell-session"
"text.todo"
"text.xml"
"text.xml.plist"
"text.xml.xsl"
]
includeCurrentDirectory: false
prefixes: [
"\\.\\/"
]
projectRelativePath: false
relative: true
}
]
...
```
## PS
To get a list of all scope names registered in your Atom instance, open the Developer Tools Console and execute the following:
```
Object.keys(atom.grammars.grammarsByScopeName).sort().join('\n')
```
Ref: [file-types](https://atom.io/packages/file-types)
Contributor guide
Research direction
Start by reviewing the config.cson example, especially the scopes, prefixes, and relative settings, then use the Atom Developer Tools Console command shown to inspect registered scopes. Done means the ./ prefix behavior works across all Atom scopes without requiring the user to maintain a scope list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100