Comments (7)
I'd be happy to merge the change with one minor modifcation: lite provides a PLATFORM
global for these situations; the package.config check can be replaced with the following:
if PLATFORM == "Windows" then
from lite-plugins.
As far as I know windows doesn't provide a dictionary file similar to linux, you'll have to download the dictionary file you want to use. You can then place it next to lite.exe
and set the relevant config field inside your user module:
config.dictionary_file = EXEDIR .. "/dictionary_filename"
from lite-plugins.
Noted; Looking into available dictionary files that we could use to propose to windows users. Maybe putting a note in the readme recognizing this issue on windows would be valuable to avoid people like me to report the issue ;)
from lite-plugins.
My guess is we could use this: words.txt file ? I looked around the interwebs and the words file on linux just seems to be a newline-delimited list of dictionary words.
from lite-plugins.
Yep, any white-space-separated list of words will work
from lite-plugins.
Would you find it adequate to change:
config.dictionary_file = "/usr/share/dict/words"
to
if package.config:sub(1,1) == '/' then
config.dictionary_file = "/usr/share/dict/words"
else
config.dictionary_file = EXEDIR .. "/words.txt"
end
As this would enable windows users to just include a words.txt file and spellchecking would work ?
Btw I intend on doing a PR to change the readme to note what I said before(i.e. on windows we need to supply a words.txt) and I would add the change I just talked about if you approve.
from lite-plugins.
Will be closed by this: #42
from lite-plugins.
Related Issues (20)
- [bug] nil value fp when using plugin last project
- [plugin] relative goto home HOT 1
- Ruby HOT 1
- scale plugin error attempt to index local 'text' (a nil value)
- [Plugin Request] Minimap HOT 2
- [Plugin request] Snippets HOT 1
- [Plugin request] Svelte HOT 2
- [Plugin Request] - Language TypeScript HOT 1
- Closing Current Tab HOT 2
- [Feature Request] Automatic directory creation on file creation HOT 1
- Add syntax highlighting for .jsx files
- Moonscript keyword highlighting issue
- Intelligence in imports (JAVA)
- [Plugin Request] - Integrated Terminal in lite HOT 3
- Should you just clone the plugins repo to the installation directory? If not see description. HOT 1
- [Plugin Request] - Language Python3
- Some plugins are not loaded due to version mismatch HOT 1
- [Plugin Request] WakaTime
- is there any plugins which can run Python script in current editor? HOT 1
- [Plugin Request] Color picker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lite-plugins.