Skip to content

yh17549/nu-dir-bookmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

nushell-bookmark

This is bookmark management tool for nushell. You can use this tool to manage bookmarks and change the director.


install

  • find env.nu

    echo $nu.env-path
  • edit env.nu

    # append
    source /path/bookmark_for_dir.nu

usage

add

add the current path as a bookmark

# bm -a BOOKMARK_DESC
# eg: 
~\.config\test1> bm -a first_bookmark
SUCCESS

list

list all bookmark

~\.config\test2> bm
╭───┬─────────────────┬──────────────────────────────────────╮
│ # │      desc       │                 path                 │
├───┼─────────────────┼──────────────────────────────────────┤
│ 0 │ first_bookmark  │ C:\Users\Administrator\.config\test1 │
│ 1 │ second_bookmark │ C:\Users\Administrator\.config\test2 │
╰───┴─────────────────┴──────────────────────────────────────╯

change dir

press Tab after bm will display completion (desc)

Note

There is space after bm

  • change dir by desc

    ~\.config> bm 
    first_bookmark      second_bookmark
    
    ~\.config> bm second_bookmark
    ~\.config\test2>
  • change dir by num

    ~\.config> bm -c 1
    ~\.config\test2>

delete bookmark by desc

~\.config\test2> bm -d first_bookmark
╭───┬─────────────────┬──────────────────────────────────────╮
│ # │      desc       │                 path                 │
├───┼─────────────────┼──────────────────────────────────────┤
│ 0 │ second_bookmark │ C:\Users\Administrator\.config\test2 │
╰───┴─────────────────┴──────────────────────────────────────╯

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published