Git Product home page Git Product logo

Comments (17)

gillins avatar gillins commented on July 17, 2024

Is Python's glob.glob (https://docs.python.org/3/library/glob.html) going to be sufficient? Do you also want me to expand environment variables?
BTW mock up below. Is this ok? User will have to click "Expand Wildcards" (or Alt+E)

image

from tuiview.

eco-nz avatar eco-nz commented on July 17, 2024

I think the glob.glob or possibly/optionally glob.iglob would be fine from James's description @gillins.

from tuiview.

gillins avatar gillins commented on July 17, 2024

ping @shepjd

from tuiview.

gillins avatar gillins commented on July 17, 2024

@shepjd are you happy with the mock up above?

from tuiview.

shepjd avatar shepjd commented on July 17, 2024

Yep, looks good, will be awesome to be able to expand "210619" and get all the files for a particular day

from tuiview.

shepjd avatar shepjd commented on July 17, 2024

that should have read "210619"

from tuiview.

shepjd avatar shepjd commented on July 17, 2024

bugger the * is not showing

from tuiview.

shepjd avatar shepjd commented on July 17, 2024

210619

from tuiview.

shepjd avatar shepjd commented on July 17, 2024

One more try... * 210619 *

from tuiview.

gillins avatar gillins commented on July 17, 2024

Yeah the * is italic (can escape with back slash). I'll put something together and get you to test it first like the other one.

from tuiview.

gillins avatar gillins commented on July 17, 2024

OK @shepjd I have something for you to test:

cd /tmp
git clone https://github.com/gillins/tuiview.git
cd tuiview
git checkout wildcards
python setup.py install

Let me know how it goes. You can either click the button or press Alt+E.

I've only enabled this for rasters. As an aside, for vectors we only ever add the first file they selected - even if they select multiple. I'm guessing this because we have a dialog asking which layer in the vector to add and this would get confusing if there we multiple files. Dunno, maybe it's ok - no one has complained!

from tuiview.

gillins avatar gillins commented on July 17, 2024

As an aside, with this change the Qt File Open dialog will be used on all platforms for opening rasters. Previously, the native File Open would have been used on Windows and OSX.... Any objections to this?

from tuiview.

gillins avatar gillins commented on July 17, 2024

@shepjd did this work for you?

from tuiview.

gillins avatar gillins commented on July 17, 2024

Hi @shepjd I'm keen to do a new release soon... Did you have any luck testing this?

from tuiview.

shepjd avatar shepjd commented on July 17, 2024

I'm working from home because of lockdown, but have linux on laptop, will give it a go this afternoon

from tuiview.

shepjd avatar shepjd commented on July 17, 2024

Just tested it, worked great, bloody cool and very useful, thanks

from tuiview.

gillins avatar gillins commented on July 17, 2024

Good to hear it will be useful!

from tuiview.

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.