RafaelGB / obsidian-db-folder

Obsidian Plugin to Allow Notion like database based on folders
MIT License
1.2k stars 58 forks source link

Support shortcut keys #154

Closed lbgws2 closed 1 year ago

lbgws2 commented 2 years ago

Can the plug-in support shortcut keys? For example, in Excel, pressing Ctrl + D will copy the contents of the upper cells,

Also, can I use the arrow keys to move between cells

RafaelGB commented 2 years ago

its a pending task, for sure!

added to the roadmap :)

raphaelmosaic commented 2 years ago

I would love to have the arrow keys to jump between cells as well, would be nice if you could prioritize this feature. Its the only feature missing for me to make the jump from notion databases to obsidian databases.

Editing the tags / cells of huge databases is a huge pain without shortcuts. Arrow keys to move between cells and Enter to edit the cell would be the best. Just copy the UX and Shortcuts of Notion - people are used to it and dont need to change their muscle memory. :)

RafaelGB commented 2 years ago

Sure it will be helpful. This will arrive as soon as we can. Copy that features is not trivial.

Some request has more priority right now like mobile version. Any help will be welcome!

mostlikely commented 1 year ago

Any hint on where to start? I also would like to have this/these feature(s).

RafaelGB commented 1 year ago

Hi @mostlikely , its not in my plans in short terms but surely I will dev this. Currently working on formulas

imeed166 commented 1 year ago

I think he meant that he is willing to help on this issue @RafaelGB, and he asked for some tips on where he could start to begin developing this feature. (that's what I understood from his reply, anyway)

RafaelGB commented 1 year ago

oh I see, You need to generate new commands on the main js You already have 1 example on registerCommands() function. Then we need to vincĂșlate the action of those commands to the current database that is open with hotkeys. There are some examples on obsidian kanban plugin

mostlikely commented 1 year ago

On MacOSX I discovered that this can be done but not consistently for all fields: Enter a field for editing (there should exist a next field to the right of this field), hit ESC. To change to the next field on the right: Hit TAB two times (you won't see anything happening), then ENTER.

Magically the you can now type in the next field (at least in most cases I tried).

RafaelGB commented 1 year ago

By default, the framework used by the plugin (https://tanstack.com/table/v8/docs/guide/introduction) has tabulation detection, but just with the opened inputs. We have to investigate how to use that tabulation properly.

The core idea is to use tabindex

iangeckeler commented 1 year ago

just wanted to +1 arrow key navigation as a desired feature :)

RafaelGB commented 1 year ago
Screenshot 2022-11-26 at 12 07 15
RafaelGB commented 1 year ago

Image