Skip to content

Add support for the dolphin file manager#2182

Open
BlueDrink9 wants to merge 2 commits intotalonhub:mainfrom
BlueDrink9:dolphin
Open

Add support for the dolphin file manager#2182
BlueDrink9 wants to merge 2 commits intotalonhub:mainfrom
BlueDrink9:dolphin

Conversation

@BlueDrink9
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 945410121e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/dolphin/dolphin.py
@FireChickenProductivity
Copy link
Copy Markdown
Contributor

Just a note: (refresh | reload) it: browser.reload() is already a command in Community. I wonder if it might be worth copying that spoken form if you are using reload it and if we should at some point abstract out reloading from just being a browser thing.

@FireChickenProductivity
Copy link
Copy Markdown
Contributor

Another note: file rename is defined in several contexts. We might want to put that behind a tag so we can use action overriding.
(These notes are mostly intended for the next backlog session)

Comment thread apps/dolphin/dolphin.py
@@ -0,0 +1,49 @@
from talon import Context, Module, actions, clip, ui
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove the unused imports?

-

tag(): user.tabs
tag(): user.file_manager
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should you also activate the user.navigation tag?

@BlueDrink9
Copy link
Copy Markdown
Contributor Author

I was surprised to find that file rename was not already in the file manager tag.

I find myself creating a reload or refresh command for quite a lot of applications, comma it definitely seems generally useful outside of just browsers. That being said, it does feel like a nuisance to have a tag for just a single command, but I suppose that's better than making users redefine the command for every application.

Comment thread apps/dolphin/dolphin.py
actions.insert(path)
actions.key("enter")

def file_manager_new_folder(name: str = None):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note for backlog session: In some places we do : str = None in Community actions. Should we instead do : Optional[str] = None?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the community backlog session — we agree this makes sense, but should be in a separate PR.

Copy link
Copy Markdown
Collaborator

@nriley nriley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the Community Backlog session — please address all of @FireChickenProductivity 's issues. Thanks!

Comment thread apps/dolphin/dolphin.py
mod = Module()
mod.apps.dolphin = """
os: linux
and app: dolphin
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it could be recursive as you are defining app: dolphin by matching app: dolphin. Whether or not it works, it is confusing to read as in general, we only use app: to refer to apps that are defined with mod.apps. Consider using app.name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants