Jonathan Feinberg
c3f6755344
fixed formatting
2021-06-04 20:20:05 +02:00
Jonathan Feinberg
f1a61debf2
double idx as number and table
2021-05-27 13:37:44 +02:00
Jonathan Feinberg
6dfcc07aa3
custom terminal creation command
2021-05-27 13:18:38 +02:00
Raigo Jerva
843d97f71f
Allow statusline marks to differ between buffers
...
- vim.fn.bufname() is identical to vim.fn.bufname(vim.fn.bufnr())
2021-05-24 17:11:42 +03:00
ThePrimeagen
beb361aaf2
Merge pull request #81 from rudotriton/fix-indexing-nils
...
prevent indexing nil vals in ensure_correct_config
2021-05-12 11:25:44 -06:00
Raigo Jerva
ad6a51d081
revert get_length log changes
2021-05-12 20:08:47 +03:00
Raigo Jerva
f139d79a75
prevent indexing nil vals in ensure_correct_config
2021-05-12 11:51:13 +03:00
Ind1eMonk3y
cf6cb9bf05
fix(ui): Sets buffer as 'listed' when navigating
...
According to the documentation for `vim.fn.bufnr` (`:h bufnr`), the
created buffer will have the option 'unlisted' by default.
This means that when navigating to a file, if that file wasn't
previously open, the new buffer won't appear in buffers list.
This fix set the buffer to be 'listed' when navigating.
2021-05-12 00:46:29 +02:00
ThePrimeagen
2374c696d3
chore(lint): ... so much of it
2021-05-11 10:50:53 -06:00
ThePrimeagen
1605603235
Merge branch 'master' of github.com:ThePrimeagen/harpoon
2021-05-11 10:31:44 -06:00
ThePrimeagen
0572fa81d3
fix(ui): Navigation with enter on menu
2021-05-11 10:11:46 -06:00
Raigo Jerva
9a2486de43
Merge branch 'master' into gh-actions
2021-05-11 00:35:41 +03:00
Raigo Jerva
979d39ba25
create github actions
...
- add linter workflow
- fix linter errors
- finish incomplete function in term.lua
- add formatter workflow
2021-05-11 00:34:25 +03:00
Asbjørn Håland
09440052d7
feat(ui): navigate to mark on enter
2021-05-10 17:18:37 +02:00
ThePrimeagen
6e56ab4150
feat(logging): Enhanced the logging
...
Made a key appear on all the logs so its easy to read each sessions data
instead of one big ass-file
2021-05-06 13:22:56 -06:00
Raigo Jerva
375ce5a311
formatting with stylua
2021-05-04 11:01:39 +03:00
Raigo Jerva
140d1ca109
adjust log levels
...
- set every function call to trace, logs in between as bebug
2021-05-03 21:45:24 +03:00
Raigo Jerva
1d65f6a888
address various comments
2021-05-03 21:23:07 +03:00
Raigo Jerva
a6e8a63520
update
...
- update readme
- revert nonfunctional changes in term.lua
- promote log level for next and previous commands
- make env var more important than vim.g
2021-05-02 10:52:00 +03:00
Raigo Jerva
c245041e21
revert nonfunctional changes
2021-05-02 10:04:00 +03:00
Raigo Jerva
d8e2fcedf3
remove duplicate trace for expand_dir()
2021-05-01 20:01:39 +03:00
Raigo Jerva
e06d8f1aea
adjust log levels
...
- promote direct interactions to info
- demote local functions to trace
2021-04-29 21:10:21 +03:00
Raigo Jerva
51b7239577
Logging for term commands, fix unknown argument
...
vim.api.nvim_buf_set_option(buf_id, "bufhidden", "hide") happened to
work, even though the first argument did not exist, since by default it
would set the option on the current buffer which it happens to be.
2021-04-29 00:15:01 +03:00
Raigo Jerva
350c7feea4
update logging for init and mark
2021-04-29 00:02:09 +03:00
Raigo Jerva
0b61951167
Merge remote-tracking branch 'upstream/master' into logging-and-various
2021-04-28 12:44:16 +03:00
Raigo Jerva
02f4e77111
Add further logging, fix callbacks
...
The callbacks are in a nested table, so they weren't actually called. If
there aren't more events then callbacks for "changed" don't need to be
nested in the callbacks table. Alternatively emitChanged() could take an
event name: emit("changed") and run callbacks for a specific event or
take a table of events and run for all, emit({"changed", "navigate"}).
2021-04-28 12:07:32 +03:00
Raigo Jerva
8a4c443145
Add logging
2021-04-27 20:40:47 +03:00
Ind1eMonk3y
4a83cc866d
Enhance cursor offset saving/restoring
2021-04-27 04:11:51 +02:00
Asbjørn Håland
70d02464bf
feat(term): add string.format to term cmds
2021-04-21 21:08:27 +02:00
Asbjørn Håland
d58400e230
fix(mark): move early exit after saving
2021-04-21 14:43:20 +02:00
ThePrimeagen
94763cb387
feat(save): set save upon every change instead on exit.
...
there has been several times in which I lose my entire mark list because
i am not saving upon change, but instead on end.
2021-04-19 13:22:09 -06:00
Raigo Jerva
760ba07a77
remove print statement to a nonexistent value
2021-04-14 23:11:42 +03:00
ThePrimeagen
272e1c8ac4
fix(lint): Removed some lint
2021-04-14 07:55:11 -06:00
ThePrimeagen
c90596bb71
Merge pull request #50 from A-Daneel/master
...
fix(ui): menusave now gets called on menu toggle
2021-04-14 07:51:22 -06:00
Peter Sabel (Zabel)
59bb920a67
fix(ui): menusave now gets called on menu toggle
...
Not sure if this is the proper way to solve this.
But my moving the son_menu_save call into the closing if-loop it will
get properly called on when closing the menu with toggle_quick_menu().
I think merging this change will resolve issue #49 .
2021-04-14 14:25:39 +02:00
ThePrimeagen
4548a7a3c9
feat(worktree): harpoon now works well with worktrees
2021-04-07 14:42:36 -06:00
ThePrimeagen
44810f677d
Merge pull request #53 from ThePrimeagen/cwd
...
feat(cwd): do not cache the cwd for gitworktrees
2021-04-06 13:17:52 -06:00
ThePrimeagen
5a7d3a6ae8
feat(cwd): do not cache the cwd for gitworktrees
2021-04-06 13:16:17 -06:00
Joaquin Hoyos
b0437610ab
create mark with buf_name instead of empty string
2021-03-31 20:50:58 -03:00
Jesse Leite
8e966d6a11
Merge branch 'master' of https://github.com/ThePrimeagen/harpoon into customize-menu-window-yayaya
2021-03-24 21:11:31 -04:00
Jesse Leite
7ca4d07089
Prime does not suck, that much.
2021-03-24 11:15:49 -04:00
Jesse Leite
d207c4cd84
Merge branch 'master' of https://github.com/ThePrimeagen/harpoon into customize-menu-window-yayaya
2021-03-24 10:11:09 -04:00
ThePrimeagen
a002b9cf17
Merge pull request #42 from ThePrimeagen/offsets
...
Offsets
2021-03-24 08:07:39 -06:00
Jesse Leite
c015ae5b5e
Add ability to customize menu window.
2021-03-24 01:44:18 -04:00
Brian Ryall
626105547c
fix the config having both expanded and non expanded
2021-03-23 22:29:28 -04:00
ThePrimeagen
d5229fb085
feat(offsets): Harp**n offsets
2021-03-23 10:56:19 -06:00
ThePrimeagen
1158df026f
feat(filename): Filename is now an object with row-col offset
2021-03-23 10:36:40 -06:00
ThePrimeagen
a0817c7271
Merge pull request #35 from brandoncc/extract-finding-marked
...
Improve checking if marks exist
2021-03-23 09:06:15 -06:00
ThePrimeagen
0e23b5653e
Merge pull request #39 from asbjornhaland/write_quick_menu
...
feat(ui): add BufWriteCmd to handle ":w" in quick menu
2021-03-23 09:03:51 -06:00
Asbjørn Håland
d0f4ad1e18
fix(ui): set nomodified then modified is set - ensures you always can close the quick_menu
2021-03-23 15:49:06 +01:00