Giter Club home page Giter Club logo

Comments (6)

curlpipe avatar curlpipe commented on August 15, 2024 2

Done 🎉 This should come out in a week or two with 0.2.7.
image
image

from ox.

curlpipe avatar curlpipe commented on August 15, 2024 1

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.

vlisivka avatar vlisivka commented on August 15, 2024 1

In this case, cursor should be at the last line of the file.

from ox.

curlpipe avatar curlpipe commented on August 15, 2024 1

@pymaldebaran Good idea, I'll do that.

from ox.

curlpipe avatar curlpipe commented on August 15, 2024 1

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.

pymaldebaran avatar pymaldebaran commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.