Skip to content

[Bookmarks] save and toggle list #1673

Closed

Description

@jinleileiking
  1. Save bookmarks -- when nvim exits, the bookmarks are gone
  2. A shortcut cmd to toggle bookmarks list in nvim-tree window like nerdtree

Activity

  1. alex-courtis commented on Oct 22, 2022

    @alex-courtis
    Member

    I might split this feature request in two.

    1 is clear

    2 What does the toggle do? Does it hide all nodes of the tree that are not marked?

  2. alex-courtis commented on Oct 31, 2022

    @alex-courtis
    Member
  3. changed the title [-][BOOKMARK] features[/-] [+][Bookmarks] save and toggle list[/+] on Oct 31, 2022
  4. added
    QOL
    on Oct 31, 2022
  5. pr4th4m commented on Nov 1, 2022

    @pr4th4m
    Contributor

    Not sure how this is possible - can we display bookmarked files/directories as favourites in top section of nvim tree ?
    ex

    example/..
    - - bookmarks/favourites
      - go.mod
      - README.md
    ------------------------
    + - .git
    + - appengine-hello
    + - gotypes
    + - hello
    + - outyet
    + - stringutil
    + - template
      - go.mod
      - go.sum
      - LICENSE
      - README.md
      - ◯ tmp
    
  6. alex-courtis commented on Nov 1, 2022

    @alex-courtis
    Member

    Not sure how this is possible - can we display bookmarked files/directories as favourites in top section of nvim tree ?

    I'm not sure that's a direction we want to take nvim-tree, which is simply a file browser. There are no plans for any sort of alternate views.

    Perhaps we could instead go in a direction like #1692 with a different window / plugin.

  7. kagbodji commented on Nov 4, 2022

    @kagbodji

    I like your idea of using a separate view for things like buffers / bookmarks. Perhaps nvim-tree could expose bookmarked files via some API, and another plugin can render those?

  8. alex-courtis commented on Nov 4, 2022

    @alex-courtis
    Member

    I like your idea of using a separate view for things like buffers / bookmarks. Perhaps nvim-tree could expose bookmarked files via some API, and another plugin can render those?

    See :help nvim-tree.api.marks for get API.

  9. jinleileiking commented on Nov 8, 2022

    @jinleileiking
    Author

    I might split this feature request in two.

    1 is clear

    2 What does the toggle do? Does it hide all nodes of the tree that are not marked?

    1. Just like this:

    default:

    Mark1
    Mark2
    Mark3
    
    -----
    
    Mark1
         + dir 1
         + dir 2
    
    

    When hit m

    
    Mark1
         + dir 1
         + dir 2
    
    
    

    m: show or hide bookmark list.

    We need this because if you have a long list of bookmarks, it is hard to see the treelist. Hide the bookmark list is for see the dirs clearly.

    Feature 1 is more important than feature 2.

  10. alex-courtis commented on Nov 12, 2022

    @alex-courtis
    Member
    1. Just like this

    Just like this:
    default:

    Mark1
    Mark2
    Mark3

    That would work if we went with a separate window solution: #1692

    In the meantime, we could implement a live toggle filter like:
    M : toggle_bookmarked
    Would that suit your use case?

  11. jinleileiking commented on Dec 22, 2022

    @jinleileiking
    Author

    Yes! Waited it done.

  12. alex-courtis commented on Dec 22, 2022

    @alex-courtis
    Member

    We have successfully added toggle filters filters.git_clean, filters.no_buffer for #1692 and similar.

    Splitting feature.

  13. alex-courtis commented on Dec 22, 2022

    @alex-courtis
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    QOLawaiting feedbackfeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions