Comments (5)
Is it possible to use the default font and give an error? like the pr😄
😂
Actually pr is good but the problem is not using the default font, it's not our fault either.. We must give an error to the user while the Neoray is not launched with nofork and there is only way to do it, show an error message in neovim (actually not only way, we can show a system error dialog). User should know their font is not found by Neoray with this name. Also setting kit to nil is unnecessary here because the kit is already nil and font system will use default font while it is nil. There is no problem with that. Only problem here is neovim does not give a promise us the cursor position will be in the grid area. We can't assert that. The simplest solution is adding a SafeCellAt function to grid and check for bounds and return an empty cell if it out of bounds. Also I liked the system dialog idea (I thought of it while writing this). It will be safer than calling neovim api for showing error message because neovim sometimes does not write this echoerr/msg calls (this is also is not our problem and we can't fix this)
I'm also curious about your opinions
from neoray.
Is it possible to use the default font and give an error? like the pr😄
😂
Actually pr is good but the problem is not using the default font, it's not our fault either.. We must give an error to the user while the Neoray is not launched with nofork and there is only way to do it, show an error message in neovim (actually not only way, we can show a system error dialog). User should know their font is not found by Neoray with this name. Also setting kit to nil is unnecessary here because the kit is already nil and font system will use default font while it is nil. There is no problem with that. Only problem here is neovim does not give a promise us the cursor position will be in the grid area. We can't assert that. The simplest solution is adding a SafeCellAt function to grid and check for bounds and return an empty cell if it out of bounds. Also I liked the system dialog idea (I thought of it while writing this). It will be safer than calling neovim api for showing error message because neovim sometimes does not write this echoerr/msg calls (this is also is not our problem and we can't fix this) I'm also curious about your opinions
giving the user an error message is indeed a good interactive experience
from neoray.
Thanks TianYaX for both issue and pr. But pr does not fix the issue but hides it. Please try the 7ec4f6c
from neoray.
I tried to apply this commit(7ec4f6c) but it doesn't seem to work...
from neoray.
Is it possible to use the default font and give an error? like the pr😄
from neoray.
Related Issues (20)
- Segfault after loading of Consolas Font HOT 5
- Window vertical resize crash HOT 6
- Taskbar item text truncated with text in window title bar HOT 4
- Mapping with <bar> or "|" doesn't work HOT 3
- Crash on launch HOT 2
- Doesn't obey xkb options HOT 3
- Neoray process tree doesn't exit on closing the GUI HOT 2
- Neoray cannot load the font. HOT 4
- chinaese can not display HOT 7
- Neoray starts without any messages and does not display window when `init.vim` is malformed HOT 1
- Detach from terminal? HOT 4
- Invisible cursor and strange colors HOT 22
- Feature suggestion - Chocolatey and Scoop Windows releases HOT 4
- typing period also inserts comma HOT 3
- Resolution Problem On macOS HOT 5
- Question? HOT 1
- Neoray window does not show up when using telescope plugin HOT 2
- Neoray does not work with nvim 0.9.2+ HOT 1
- Crash on startup HOT 1
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 neoray.