Comments (13)
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.
I second that! For consistency I would suggest {file}
as pter can already search by file:
in the search bar.
from pter.
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.
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.
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.
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.
Hm, this could lead to super awkwardly long fields. But then, that's what you get 😅 It would work though!
from pter.
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.
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.
Fixed as of commit 7bc9b1ae, so this feature will be in the next release.
from pter.
Amazing!!!! :D
from pter.
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.
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)
- Commands to increase/decrease due dates HOT 11
- Distraction-free task editing/creation HOT 3
- Patch for help screen HOT 5
- Mouse-wheel scrolling broken after editing a task externally HOT 38
- Patch to fix caret key issues HOT 1
- Patch to improve line editing some more HOT 6
- Patch: UI proofreading/minor editing HOT 7
- Patch to invert completion highlighting HOT 2
- Helpbar improvements (configurable hints and key sorting) HOT 23
- Regression: pter crashes when choosing a filename to save the task to HOT 1
- Distraction-free mode should show task list on "jump-to" action HOT 6
- Bug: chained keybindings do not seem to work on the Help screen HOT 20
- What does "N" (edit note) do? HOT 6
- Add file name completion when searching HOT 8
- Bug: Editor keybindings not dumped? HOT 2
- Centralised archive with multiple todo.txt file HOT 1
- Support for different sources of tasks
- qpter not finding PyQt5 under python3 (No longer easily available under pip install) HOT 4
- new qpter issue (at least on my end!) HOT 4
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 pter.