OneMore icon indicating copy to clipboard operation
OneMore copied to clipboard

Add a command to navigate to a certain page by incremental search

Open valuex opened this issue 2 years ago • 3 comments

IS YOUR COMMIT SIGNED?

Note that this repo requires all commits to be properly signed, see here for more info Yes

Enhancement or Defect Addressed by This PR

  • Navigate to a certain page by incremental search
  • Move the current page after a selected page

Description of Proposed Changes

  • a pop-up window with a texbox and HirarchyTreeview
  • when user input some characters in the textbox, the input chars will be incrementally indexed and the results will be shown in the tree view
  • to search Pages title with Chinese characters by inputting the first letters of corresponding Chinese PinYin is also supported
  • Search and NavigateTo
  • search syntax " Section_name Page_name".
    • the first space is taken as a seperator, the chars before the space will be used to search Section Name, while the chars after the space will be used to search Page Name.
    • if there is a leading space input into the textbox, e.g. " onemore", only the pages's name will be searched
    • NavigateTo: click the underlined page name in the tree view
  • Move to: one can move the current page after the destination page, which the user checked in the tree view

valuex avatar Jun 04 '23 07:06 valuex

Honestly, I'm trying to understand where this really belongs. It's functionally equivalent to Search/SearchDialog but with type-ahead, which I'm not sure is enough of a reason for a new dialog.

What do you see as the primary difference?

stevencohn avatar Jun 04 '23 16:06 stevencohn

Honestly, I'm trying to understand where this really belongs. It's functionally equivalent to Search/SearchDialog but with type-ahead, which I'm not sure is enough of a reason for a new dialog.

What do you see as the primary difference? One of great things of OneMore is that it not only provides plenty of wonderful features, but also provide a good foundation for the beginners to develop their needed feature for OneNote. The reason I develop this is that for a keyboard guy (who perfers inputting by keyboard to mouse), incremental search is definitely with higher efficiency. And also as a Chinese, incremental search by PinYin is far more effcient.
As you can tell, my coding skill is just the entry-level. And I really appreciate your patience and nice comment here.

valuex avatar Jun 05 '23 12:06 valuex

@valuex your streaks ahead of me on it though. I like incremental searches. I didn't realise the power of the exisitng Search & copy Move. I would put your tool in "navigate" is navigate became tabbed with hotkeys for move between them. I would probably put Fav / Nav / Incremental all on a dockable form and be able to turn tabs on / off with preferences.

... But at the moment I would put it on its own "experimental" tabbed form, then we can have stuff that isn't completely baked in and not spend too long on consistency while we work out if it is gold or "may be a good idea".

jasonjac2 avatar Jun 05 '23 13:06 jasonjac2