Commit Graph

46 Commits (3006e641e2892b58fe51511c31595515e1a7dc00)

Author SHA1 Message Date
Oli Morris 3006e641e2 docs: update README.md 2024-09-13 10:25:26 +01:00
Oli Morris 46722016e0 docs: update README.md 2024-09-13 10:22:07 +01:00
olimorris a9d1d6e2ce docs: update README.md 2024-09-11 17:35:14 +01:00
olimorris 999b6918b4 feat: add `SessionSelect` command
For those who don't want to use Telescope to load and select sessions,
this offers an alternative
2024-08-22 18:37:42 +01:00
olimorris 5593b1b8f1 docs: update README.md 2024-08-19 21:00:51 +01:00
olimorris b0de69da63 docs: update README.md 2024-08-15 17:30:11 +01:00
olimorris 7e170b4927 docs: update README.md 2024-08-08 23:14:18 +01:00
Oli 22e17b07fb
refactor!: #145 restore simplicity to the plugin
Announcement in #145
2024-08-08 18:25:16 +01:00
olimorris 7c30116fc1 docs: update README.md 2024-07-02 19:32:25 +01:00
Rémi Labeyrie 8fc97b6182
feat: add icons and colors to telescope picker (#119)
* feat: add icons and colors to telescope picker

* feat: add configuration options for telescope icons

* fix: remove highlight group for telescope normal selection
2024-04-22 21:36:41 +01:00
olimorris c157b89b5c docs: update README.md 2024-03-13 19:03:29 +00:00
olimorris c76c789d90 docs: update README.md 2024-03-12 21:46:21 +00:00
olimorris 1de6b48a99 docs: update README.md 2024-02-24 12:06:40 +00:00
olimorris 86a55a1d4c docs: update README.md 2024-02-24 12:05:57 +00:00
Mike Iversen edd8aa41cd
chore: use vim.notify (#108)
* Updated warnings and info to print with vim.notify

* Updated formatting
2024-01-06 09:40:32 +00:00
Christopher Speck 97bc6260fb
fix: properly resolve directories (#105)
* fix: properly resolve directories

The `vim.loop.fs_realpath()` function can be used to properly resolve
both the `.` shortcut as well as relative paths. This corrects scenarios
when opening nvim to a subdirectory of the working directory. With this
change doing so will properly resolve the session file to the directory
that was specified on the command line.

```console
$ pwd
/Users/username/.config

$ ls
fish    iterm2    nvim

$ nvim nvim
```

This will result in using the path `/Users/username/.config/nvim` for
the session. The behavior will be the same as running plain `nvim` from
within the `/Users/username/.config/nvim` directory itself.

This change also quotes the path passed to `git` to properly handle
paths containing spaces.

This change also corrects some typos in the readme.

* fix: isdirectory is not necessary

The fs_realpath function will return nil if the path doesn't exist.

* fix: typos in comments

* fix: isdirectory is still necessary

Oops, the isdirectory check is necessary to confirm it's a directory and
not a file.
2023-12-22 15:53:31 +00:00
olimorris dfb79ffa75 feat: make more data available when firing events 2023-12-21 16:52:30 +00:00
olimorris 548b43aec4 refactor: function names and comment blocks 2023-12-21 13:26:48 +00:00
Christopher Speck 7944b9afe3
refactor: update logic for autoload or starting sessions (#104)
* Update logic for autoload or starting sessions.

The logic to prevent autoloading/starting sessions when any arguments
are supplied to neovim is to prevent session management from kicking in
when editing a single file.

This updates the logic to allow a single argument passed to neovim as
long as the argument is an existing directory. When neovim is launched
in this way it behaves the same as opening neovim with no arguments but
has changed the working directory.

This results in consistent behavior of the autoloading/starting of
sessions when passing a directory argument to start neovim.

See: https://github.com/olimorris/persisted.nvim/discussions/93

* Fix comment, make comparisons more direct

* Update functions to be directory-aware

The main functionality in `init.lua` assumes using current working
directory in most cases. This refactors these functions to allow passing
in a directory instead.

The default behavior is to now use the current directory unless neovim
was started with a single directory argument, using that instead.

This also special-cases `.` as `vim.fn.expand()` does not resolve that
to the current working directory.
2023-12-21 11:15:05 +00:00
olimorris 66d540f949 refactor!: do not append `main` to non-git repo sessions
https://github.com/olimorris/persisted.nvim/discussions/103
2023-12-20 12:47:51 +00:00
olimorris a1cc308580 feat: telescope add/update branch name 2023-12-18 23:46:57 +00:00
olimorris 86ce6f14ae refactor!: telescope reset_prompt api 2023-12-18 23:21:04 +00:00
Mike Iversen fc9f398393
feat: Added exact ignored_dirs support (#100) 2023-11-26 10:38:57 +00:00
olimorris 2b3ec15ebd docs: remove duplication 2023-11-18 15:41:11 +00:00
olimorris 5b5ec1c797 docs: add better event examples 2023-11-06 12:18:44 +00:00
Turiiya dbdd6af184
docs: update command name `SessionLoadFromPath->SessionLoadFromFile` 2023-04-14 16:28:00 +01:00
olimorris 866de841a6 docs: update 2023-03-09 09:46:47 +00:00
github-actions[bot] 228df07acc chore(build): auto-generate vimdoc 2023-03-09 09:42:23 +00:00
olimorris d72e5eac4d docs: update docs and readme 2023-03-09 09:41:30 +00:00
github-actions[bot] 4cde12d8b9 chore(build): auto-generate vimdoc 2023-02-28 22:30:31 +00:00
github-actions[bot] 8902ba6174 chore(build): auto-generate vimdoc 2023-02-28 17:48:52 +00:00
github-actions[bot] fb8b3b4f11 chore(build): auto-generate vimdoc 2023-02-28 16:17:29 +00:00
github-actions[bot] ef88aa03b5 chore(build): auto-generate vimdoc 2023-02-27 23:35:45 +00:00
github-actions[bot] 4d761446a4 chore(build): auto-generate vimdoc 2023-02-25 10:40:34 +00:00
github-actions[bot] c165fbbaac chore(build): auto-generate vimdoc 2023-02-23 20:54:11 +00:00
github-actions[bot] 3d70c34113 chore(build): auto-generate vimdoc 2023-02-23 20:45:34 +00:00
github-actions[bot] 587b90bddc chore(build): auto-generate vimdoc 2023-02-23 17:25:54 +00:00
github-actions[bot] 95023557ec chore(build): auto-generate vimdoc 2023-02-23 11:20:50 +00:00
github-actions[bot] 4db056db5d chore(build): auto-generate vimdoc 2023-02-23 11:19:43 +00:00
github-actions[bot] d7747ddd6c chore(build): auto-generate vimdoc 2023-02-23 11:14:44 +00:00
github-actions[bot] eed7d4dcbc chore(build): auto-generate vimdoc 2023-02-23 10:28:44 +00:00
github-actions[bot] f7f14216b9 chore(build): auto-generate vimdoc 2023-02-23 10:06:06 +00:00
github-actions[bot] c738fd372c chore(build): auto-generate vimdoc 2023-02-22 20:25:22 +00:00
github-actions[bot] 98f72045cd chore(build): auto-generate vimdoc 2023-02-22 15:03:26 +00:00
github-actions[bot] d951015e5b chore(build): auto-generate vimdoc 2023-02-21 21:51:35 +00:00
olimorris 383417a4d9 feat: add vim documentation 2023-02-21 21:50:48 +00:00