Git Product home page Git Product logo

Comments (13)

andrei-a-papou avatar andrei-a-papou commented on July 22, 2024 2

Yes, it would serve as a painful reminder for not having identical files buried super-deep in nearly identical folder structures :) On a serious note, a super-long path could be ellipsized, let's say, in the middle to alleviate the problem.

Persoanlly I wouldn't bother for now. I remember somebody on codeberg reported a bug with super-long lines. Perhaps in the future when that bug is addressed it would also solve the hypothetical super-long filenames problem. It's your call.

from pter.

andrei-a-papou avatar andrei-a-papou commented on July 22, 2024 1

I second that! For consistency I would suggest {file} as pter can already search by file: in the search bar.

from pter.

ironhak avatar ironhak commented on July 22, 2024 1

Ah, I see! Yeah, sounds like a good idea.

How do you envision the differentiation between files that have the same name but live in different folders? I have a separate todo file for multiple projects, but they are all called todo.txt. The filename alone wouldn't cut it 🤔 not sure how to solve this in a meaningful way.

You right but generally speaking you should have different names for different projects. And if someone wants two identical files called todo.txt, so be it, I would avoid adding more conditions like: "if file A has same name of file B then show full path instead of file name". I would just leave the file name, and then you're free to modify the name or not.

from pter.

vonshednob avatar vonshednob commented on July 22, 2024 1

Oh that's a good one! I have no idea how that was solved, if at all. It's been more than two weeks, so waaay past the event horizon. I'll have a look.

from pter.

vonshednob avatar vonshednob commented on July 22, 2024

Ah, I see! Yeah, sounds like a good idea.

How do you envision the differentiation between files that have the same name but live in different folders? I have a separate todo file for multiple projects, but they are all called todo.txt. The filename alone wouldn't cut it 🤔 not sure how to solve this in a meaningful way.

from pter.

andrei-a-papou avatar andrei-a-papou commented on July 22, 2024

Good point. Maybe we could grab the second-to-last path segment and include that?

~/Documents/TODOs/folder_a/todo.txt and ~/Documents/TODOs/folder_b/todo.txt would then show as folder_a/todo.txt and folder_b/todo.txt.

All the way to showing the full path if necessary (an extreme case, of course).

from pter.

vonshednob avatar vonshednob commented on July 22, 2024

Hm, this could lead to super awkwardly long fields. But then, that's what you get 😅 It would work though!

from pter.

andrei-a-papou avatar andrei-a-papou commented on July 22, 2024

You right but generally speaking you should have different names for different projects.

It's not always possible though. I use an Android app whose todo.txt is synced with my desktop (where I use pter.) I haven't found a way to change the todo file in that app, it just uses todo.txt and done.txt, that's it :)

But I do agree it shouldn't be a biggie. For me, implementing even basic support for this feature would outweigh corner cases.

@vonshednob By the way, when creating a task with multiple todo files open, would pter somehow differentiate between identically named files when you press <f6>?

from pter.

vonshednob avatar vonshednob commented on July 22, 2024

I don't think the selection dialog does anything special. It just uses displayname of Source, which is simply the filename without the path. I have the feeling that I detached the filename from the displayname of the task source to later be able to allow the display of unique labels per file.

from pter.

vonshednob avatar vonshednob commented on July 22, 2024

Fixed as of commit 7bc9b1ae, so this feature will be in the next release.

from pter.

ironhak avatar ironhak commented on July 22, 2024

Amazing!!!! :D

from pter.

andrei-a-papou avatar andrei-a-papou commented on July 22, 2024

Works great, thank you! Quick question: can pter highlight arbitrary "fields" like file:todo.txt in the task list?

[Highlight]
;; gray
file = 12
sel-file = 8

It works for due and t, but doesn't seem to work for file:. Highlighting file: would need a patch, correct?

from pter.

andrei-a-papou avatar andrei-a-papou commented on July 22, 2024

OK, right, I've looked at the code, those hl: highlights (due:, t:, etc.) are part of the description, so {file} needs extra love.

Added a patch here: #62 (comment)

from pter.

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.