Giter Site home page Giter Site logo

tab creation time as file ctime about tabfs HOT 3 OPEN

osnr avatar osnr commented on September 13, 2024 5
tab creation time as file ctime

from tabfs.

Comments (3)

osnr avatar osnr commented on September 13, 2024

Yeah, I think this would be great. I don't think there is an API for it, although I could be wrong -- I make a note about this here (added emphasis):

for a lot of things in the extension API, the browser can notify you of updates but there's no apparent way to query the full current state. so we'd need to sit in a lot of these places from the beginning and accumulate the incoming events to know, like, the last time a tab was updated, or the list of scripts currently running on a tab

If there is an extension API (or if it can be done through a Web page-side API with injected JS?), or if we do set up that time accumulation ourselves, it should be pretty easy to add the ctime to getattr in the code.

I think that you could do some cool subtleties, where the ctime is the time the tab was created and the mtime is the time of last navigation on that tab. (and I guess that would apply to both by-id/* and by-title/*. maybe last-focused has mtime based on the time you focused on that tab?)

from tabfs.

jtagcat avatar jtagcat commented on September 13, 2024

Related: #21

from tabfs.

vu3rdd avatar vu3rdd commented on September 13, 2024

There is a lastAccessed field in the Tab object. I don't see anything else in there related to creation/modification time.

from tabfs.

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.