jasonplatts / nova-todo

A Panic Nova extension for todo and fixme management.
https://extensions.panic.com/extensions/jasonplatts/jasonplatts.TODO/
MIT License
29 stars 7 forks source link

Support for Remote Files #16

Closed polykode-dev closed 3 years ago

polykode-dev commented 3 years ago

Hello,

I installed todo extension, restart nova, and add sample tag in my code, but nothing is showing

Where i'am wrong ?

Capture d’écran 2021-01-20 à 23 23 29

Regards

jasonplatts commented 3 years ago

Hi @polykode-dev.

It appears you are working on a remote project.

Unfortunately, TODO only supports local projects. If you are able to copy the project to your computer, the tags should be found. Sorry for this limitation.

polykode-dev commented 3 years ago

Ha ok yes it work well localy, thanks

rootscript commented 3 years ago

Hello - Is this a limit of extensions within Nova, when working on remote files?

jasonplatts commented 3 years ago

Hello - Is this a limit of extensions within Nova, when working on remote files?

Hi @rootscript. In the case of the TODO extension, it actually runs the OS egrep command in a process. I am not aware of any Nova API functionality that provides these capabilities in local and remote workspaces, nor of a way to run the egrep command without the files being located locally. I hope that helps answer your question.

Curiously, are you asking because you have the need for this extension to work with remote files?

ghost commented 3 years ago

Our teams only work on remote files, a dev version of every project is set up alongside the production version. Coda2 has a todo plugin that is able to work with the remote file that is currently open, not the entire project directory. It would be nice to have your todo sidebar work on the file currently open.

jasonplatts commented 3 years ago

Our teams only work on remote files, a dev version of every project is set up alongside the production version. Coda2 has a todo plugin that is able to work with the remote file that is currently open, not the entire project directory. It would be nice to have your todo sidebar work on the file currently open.

Thanks @dashcg for sharing your use case. I can understand how this would be helpful. Since there does seem to be some interest, I will reopen this issue and give some more thought about how best this functionality might be implemented.

frenx commented 3 years ago

The feature to index just the currently open remote files would be great. Or even just the active file, that maybe it's easier to do? We also work almost exclusively with remote servers... Thanks!

jasonplatts commented 3 years ago

Thanks @frenx for letting me know. I am hoping to get this functionality into the next update.

jasonplatts commented 3 years ago

This feature has been added to version 3.0. Unfortunately, the Nova extension API does not make it possible to open files or bring focus to an open editor in a remote environment. This means that double-clicking on the tag in the sidebar will not take the user to the location of the tag in the document. When this functionality is made available, support will be added to the extension.