/docs/docs/using-onivim/working-with-files.md

https://github.com/onivim/oni2 · Markdown · 37 lines · 22 code · 15 blank · 0 comment · 0 complexity · 7b793c9e10fa9c176279fc1e5f19899d MD5 · raw file

  1. ---
  2. id: working-with-files
  3. title: Working with Files
  4. sidebar_label: Working with Files
  5. ---
  6. ## Navigating the File Explorer
  7. To change the current working directory, which will also update the file explorer root, you can use the `:cd` command - for example: `:cd ~/my/project`.
  8. ## Opening files
  9. ### QuickOpen
  10. Onivim 2 has a QuickOpen fuzzy-finder out-of-the-box, powered by [ripgrep](https://github.com/burntsushi/ripgrep).
  11. To access the QuickOpen fuzzy-finder, you can use:
  12. - __Windows / Linux:__ `Control+P`
  13. - __OSX__ `Command+P`
  14. ### `:e` command
  15. You can also use Vim's Ex-mode `edit` command to open a file - for example: `:edit ~/my/project/README.md`.
  16. > __NOTE:__ `:edit` can be abbreviated as `:e`.
  17. ## Saving files
  18. To save your changes, you can use the `:write` command.
  19. > __NOTE:__ `:write` can be abbreviated as `:w`
  20. If you want to save to another file, you can use the `:save` command, for example: `:sav ~/my/project/another-file.txt`.
  21. ## Navigating in opened windows
  22. By pressing `<C+TAB>` you can access the currently opened windows. Similar to open all files you can navigate through files.