Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding ref of related files (idea) #42

Open
luffah opened this issue Dec 2, 2020 · 5 comments
Open

Adding ref of related files (idea) #42

luffah opened this issue Dec 2, 2020 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@luffah
Copy link

luffah commented Dec 2, 2020

Searching for a good tool for managing task.

This tools is really interesting and appear to be really clean to use.
(working currently with timewarrior and taskwarrior + a lot of TODO/FIXME in files)

I got only an idea of enhancement : a field to link to external refs (local wiki, code, issue tracker...) and maybe something to add a task directly from this ref (source code or documentation in vim, ... for issue tracker case it would require some kind of server ... ).
Actually, i'm not sure how much it is a good idea, but doing a simple gf (to start a correction) from a task manager would be pleasant.

@soywod
Copy link
Owner

soywod commented Dec 2, 2020

I see your point, but I have no idea how to integrate this to the actual workflow. Any suggestion? Maybe sth like unfog attachment <id> could open the default text editor?

@soywod soywod added the enhancement New feature or request label Dec 2, 2020
@luffah
Copy link
Author

luffah commented Dec 2, 2020

oh ... i took the wrong repo to declare the issue (originally then idea was for vim).

On Vim, just having a way to access the list item by item (i.e. a buffer normal mode) will allow to do a gf (or a link the shortcut to open the <cfile> in a new tab — OR open the list of item as with something similar to nerd tree — OR just using the quickfix list).

In fact, it would be interesting to mention attachment and a position in the attachment (with text files it would be line number; in a webpage, this is already contained in url; in a doc a page number maybe).

An experimental usecase :

# adding a task for a project linked to 
#  a document file to edit; the notes that could help; a directory with some assets
#  and the a session file for vim that shall be openned with vim
# (it could be url and images too....)
# assume -a is the option to add attachment
$ unfog add Referencing similar tools \
      -p Zim \
      -a \
/work/git/zim/README.md:40"[gvim %1]" \
~/Notebooks/Zim/similar_tools.txt \
~/Notebooks/Zim/similar_tools/ \
~/.vim/sessions/zim.vim



# HERE a dirty idea : managing a dedicated folder and its metadata
# unfog could create <unfog-datadir>/<hash or id>/ and add all attachements
# (excluding url; that would require a script to be openned) as symbolic links; 
# and a small db file that contains metadata (the list of file as entered) 
# to store advanced things (line numbers or commands used to open)


# i don't know if it can find the note like that // just for the example

$ unfog attachment Zim:referencing 

# list items and propose to open with `open` or to see all as a (logical) dir
1 - /work/git/zim/README.md:40  [ open with `gvim %1`]
2 - ~/Notebooks/Zim/similar_tools.txt
3 - ~/.vim/sessions/zim.vim
Which to open (number or 'd' for openning as a directory)? 1
[ run `gvim /work/git/zim/README.md:40` ]

Which to open (number or 'd' for openning as a directory)? 2
[ run `vim /work/git/zim/README.md` — or just as `open` would do]

Which to open (number or 'd' for openning as a directory)? d
[ make links (if not already made); cd and run `nautilus .`;  
  — or just as `open` would do —
  given the directory is not readonly it means to check
  metadata are updated given the content of the directory
   // the user could add directly a file here ]

@soywod
Copy link
Owner

soywod commented Dec 2, 2020

oh ... i took the wrong repo to declare the issue (originally then idea was for vim).

No it's fine, since the Vim plugin is just a view. All the logic needs to be done CLI side.

I like your proposal, but it's too "complex" for a first shot. We should start with a smaller and simpler version of this. I will think about it and let you know !

@soywod
Copy link
Owner

soywod commented Dec 6, 2020

I propose to attach a simple text file for now, so the user can put whatever he wants. Then we can try to add more and more logic to open links, load Vim sessions etc. What do you think? In fact it can be seen as an extended description. It looks a bit like what @mg979 proposed on Unfog's predecessor: soywod/kronos.vim#6.

@soywod soywod self-assigned this Dec 9, 2020
@soywod soywod added the question Further information is requested label Dec 9, 2020
@luffah
Copy link
Author

luffah commented Dec 11, 2020

Yes, any textarea is enough to feed a script that would give access to documents.

@soywod soywod removed the question Further information is requested label Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants