Comments (6)
Done 🎉 This should come out in a week or two with 0.2.7.
from ox.
This shouldn't be too hard to implement, I'll take a look into it. What do you think should happen if a line number that is over the length of the document (e.g. A document is 100 lines long and I put in document.txt:200)?
from ox.
In this case, cursor should be at the last line of the file.
from ox.
@pymaldebaran Good idea, I'll do that.
from ox.
I've now managed to get it to take in filenames like this
test.txt:row:column
and
test.txt:row
and
test.txt
Just need to implement bound checking and display that warning message, shouldn't be too difficult.
from ox.
This shouldn't be too hard to implement, I'll take a look into it. What do you think should happen if a line number that is over the length of the document (e.g. A document is 100 lines long and I put in document.txt:200)?
Just like @vlisivka I think in this case it should place the cursor at the last line of the file. But I think it should also display a little warning to the user "requested position ll:cc is out of file".
You can also consider the case where the requested line exists but not the requested column in this line --> it should place the cursor at the end of the requested line and display a relevent warning to the user "requested column cc does not existe for line ll."
from ox.
Related Issues (20)
- Index out of bounds error HOT 6
- AUR formula out of date HOT 1
- Page Up/ Page Down don't move to the start/end of the document as stated in the README HOT 3
- Why the unnecessary wrapping of Option around some return types? HOT 1
- Why the unnecessary wrapping of Option around some return types? HOT 2
- It can't recognize AltGr+Key (Windows 10, x64) HOT 1
- Please update the brew formulae HOT 1
- GLIBC_2.32 missing HOT 4
- Built-in help inaccessible with non-US keyboard
- Backspace and Delete not working HOT 3
- Outputing editors state for discord rpc HOT 2
- YAML syntax highlighting support HOT 2
- Some questions regarding this project? HOT 7
- To Tab, or not to Tab? HOT 1
- Keep cursor's position
- Windows support? HOT 3
- Path completions/suggestions when opening files HOT 1
- Default theme HOT 2
- [Windows] The system cannot find the path specified. HOT 4
- Homebrew incorrect version
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 ox.