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

Option to use different global buttons depending on directory/context. #35

Open
alex-a-soto opened this issue Aug 11, 2020 · 1 comment

Comments

@alex-a-soto
Copy link

alex-a-soto commented Aug 11, 2020

Background:
I've noticed that I have many global buttons that I only use for specific workflows; it becomes difficult to distinguish among the buttons/actions.

While I do make use of explicit buttons in a dedicated button file, there are times when it's not ideal:

  • The action/button I'm trying to activate requires me to be in a specific buffer.
  • Increases cognitive load by having to switch between a button file and a buffer to do an action.
  • Sometimes I would prefer not to include a button as a comment in a file.

Proposal:
To provide the user with the option of using global buttons that perform different actions depending on the directory/context.

This idea draws inspiration from the projectile package that provides easy project management and navigation when working with files and buffers in a project. A project is identified by the use of .projectile.

Examples:
~/Notes Directory
For example, let's imagine I'm in the ~/Notes directory, and I open a file "2020-08-09.md". I decide to link the file in the current buffer to another file in my notes directory. In this situation, I would want to use a global button called "Link to other note," that performs the action described above.

~/Projects/client-x/ Directory
I navigate to a different directory, ~/Projects/client-X/, when I activate a global button in this directory, I'm presented with different actions related to the actions/workflow I have when working with a client on a project.

  • Create todo
  • View todos
  • Journal
  • View Journal
  • Clock-in
  • Clock-out
  • Calendar

Overtime the handful of buttons that are added to a directory will allow for a workflow to emerge that's based on these different sets of global buttons.

@rswgnu
Copy link
Owner

rswgnu commented Oct 4, 2020

Sorry, better to report issues on the Hyperbole mailing list or bug list. I don't look for issues here often, so didn't see this one until now.

Right now Hyperbole does support per-directory HYPB button files but as you say, these are just explicit/implicit buttons and not global buttons accessible by name. Your proposal is to integrate these into the list of global buttons and prioritize the local button names over the main global button file for any conflicts. I think it is a good idea and we will add it to our list.

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

No branches or pull requests

2 participants