Commit Graph

111 Commits (main)

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 f0f02a990c refactor!: remove support for old config 2024-09-11 17:23:15 +01:00
olimorris 37fcf49496 docs: update README.md 2024-08-22 18:42:54 +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
Matthias Bilger ce9d621683
feat: Add ability to ignore branches (#114) 2024-03-12 21:44:36 +00:00
jyuan0 18fda8136f
feat: configurable telescope mappings (#113) 2024-03-06 14:16:41 +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
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 d7d8fcbbb4 docs: update telescope image 2023-12-21 17:03:00 +00:00
olimorris dfb79ffa75 feat: make more data available when firing events 2023-12-21 16:52:30 +00:00
olimorris 4310da8da0 docs: update README.md 2023-12-21 13:45:11 +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 ff261c2d22 feat: add copy session to Telescope actions 2023-12-20 12:45:11 +00:00
olimorris 3e0c504ba2 docs: update README.md 2023-12-18 23:49:27 +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 0ea44f1586 feat: add global var for if session exists in cwd 2023-11-18 15:38:16 +00:00
olimorris 5b5ec1c797 docs: add better event examples 2023-11-06 12:18:44 +00:00
olimorris 2de1fe69e7 feat: add event for `PersistedToggled` 2023-08-11 10:33:54 +01:00
olimorris c1c4bbff8a feat: add global variable for last loaded session 2023-07-26 16:17:42 +01:00
Agustin Marquez 536513779b
docs: fix lazy installation in README.md 2023-06-07 10:02:04 +01:00
olimorris b42a8a87da docs: update README.md 2023-05-31 22:45:49 +01: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
olimorris d72e5eac4d docs: update docs and readme 2023-03-09 09:41:30 +00:00
olimorris b88867dc37 docs: update readme 2023-02-28 22:29:00 +00:00
olimorris ca78c581da docs: update readme 2023-02-28 17:44:10 +00:00
Rafael Bodill 7890dadd6e
feat: allow options to be set in `telescope` setup (#55)
* feat: Allow options to be set in Telescope setup
* docs: update readme.md for telescope config
2023-02-28 16:16:37 +00:00
olimorris a52ba72de4 docs: update readme 2023-02-27 23:34:46 +00:00
olimorris 296a7d60e7 docs: update readme for use with dashboards 2023-02-25 10:39:17 +00:00
olimorris fe4698a761 docs: update readme for statusline integration 2023-02-23 20:53:17 +00:00
olimorris 4866194140 feat: add additional events 2023-02-23 20:44:47 +00:00
olimorris f3f1859bbb docs: update readme 2023-02-23 17:25:05 +00:00
olimorris 6dc641d6fc docs: remove reference to telescope callbacks 2023-02-23 11:19:57 +00:00
olimorris 3d8d636829 docs: remove callbacks from default config 2023-02-23 11:18:52 +00:00
olimorris e9fdae57a7 docs: document data available in the callbacks 2023-02-23 11:13:55 +00:00
olimorris aa3fdbc8a5 refactor!: Neovim 0.8.0+ only
Please pin to the `neovim-0.7.0` tag for compatibility
2023-02-23 10:27:51 +00:00
olimorris 044e692f52 docs: update readme for callback data 2023-02-23 10:20:05 +00:00