274 Commits

Author SHA1 Message Date
Pranav Rao
decdcd6971 feat(tmux): added configuration option for autoclosing terminals
This commit adds a config option so that if the user wants to close all
tmux terminals opened by harpoon on Vim exit, they can.
2021-11-09 16:57:32 -05:00
Pranav Rao
20590f1512 feat(tmux): added extra term cmd manipulation functions to tmux module
In the future, these should probably be refactored out into the utils
file beacuse they are the exact same functions as the one in the term
module.
2021-11-09 16:57:32 -05:00
Pranav Rao
45a888ee8a feat(tmux): added option to use tmux terminals instead of nvim terminals
This commit introduces a new module of harpoon, "harpoon.tmux", which
provides several functions for using tmux windows for harpoon terminals.
So far, all the basic features are supported, such as creating and
moving to a new terminal, deleting all terminals, and sending commands
to terminals etc.
2021-11-09 16:57:25 -05:00
ThePrimeagen
8ef4e87598
Merge pull request #112 from acicco/excluded_filetypes_option
feat: added excluded_filetypes option to avoid adding unwanted filety…
2021-11-09 08:18:53 -07:00
clbrunet
031cfa6f9c fix: use <Cmd> instead of ':' in quick menus remaps
Quick menus remaps now work even if a user uses a ':' remap.
2021-11-09 08:01:32 +01:00
clbrunet
9571887e57 feat(cmd-ui): add <CR> keymap for selecting menu item
The selected command is sent to terminal index got from vim.fn.input
2021-11-07 17:44:46 +01:00
clbrunet
2802a19c89 feat(cmd-ui): add 'q' and '<ESC>' keymaps to close the quick menu 2021-11-07 17:43:03 +01:00
clbrunet
f227419697 refactor(ui): use 'number' option in quick_menu like in cmd-ui 2021-11-07 15:47:04 +01:00
Alan
0eced8969b refactor: replaced loop for tbl_contains 2021-11-05 16:39:13 +00:00
Alan Ciccotelli
2ed6b3e8ae fix: removed harpoon check from loop, lint/format fix 2021-11-05 12:49:11 +00:00
Alan Ciccotelli
e27f59e938 feat: added excluded_filetypes option to avoid adding unwanted filetypes to the harpoon menu list. 2021-11-04 12:16:17 +00:00
Sebastian Lyng Johansen
212584d281 remove popup.nvim as dependency 2021-10-27 21:46:05 +02:00
mikatpt
70f054764b Change quit binding to use toggle_quick_menu() 2021-10-11 18:44:19 -04:00
mikatpt
99892c60ba Linting 2021-10-11 18:44:06 -04:00
mikatpt
132da0d247 Fix formatting 2021-10-09 18:57:08 -04:00
mikatpt
2225d62eea Add autocmd to quit menu on BufLeave 2021-10-09 13:50:27 -04:00
mikatpt
eb0fc958b4 Add convenience bindings for exiting quick menu 2021-10-07 21:03:37 -04:00
ThePrimeagen
c9a613b4e9
Merge pull request #95 from EthanJWright/master
feat(term): configuration to run command automatically on send
2021-09-22 14:24:28 -06:00
Rishabh Dwivedi
3123335be9 cmd-ui: fixed formatting for stylua 2021-09-05 22:18:49 +05:30
Rishabh Dwivedi
732be7f4be updated luacheckrc and formatting 2021-09-04 20:51:58 +05:30
Rishabh Dwivedi
bfdeafc913 simplified whitespace and breadbutter for logging 2021-09-02 00:01:26 +05:30
Rishabh Dwivedi
730dc0c0d2 updated formatting 2021-08-30 04:01:03 +05:30
Rishabh Dwivedi
323027715f harpoon dynamic commands for projects 2021-08-30 02:28:47 +05:30
EthanJWright
7758ef1a0c feat: run command after sending to buffer 2021-08-18 20:19:27 -06:00
ThePrimeagen
d8610fdc12
Merge pull request #92 from trewjames/terminal
feat(term): add clear all functionality for terms
2021-08-09 10:21:55 -06:00
Jesse Leite
a1ce601f66 Hook up save_on_change option to menu buffer. 2021-08-05 23:13:27 -04:00
James Trew
37aa813a67 delete term buffers on clear_all 2021-08-05 09:17:53 -04:00
James Trew
595bbaba29 feat(term): add clear all functionality for terms 2021-08-04 11:04:14 -04:00
anott03
750ac2d9d5 stying via stylua 2021-06-17 14:44:03 -04:00
anott03
1384fabdd5 reverting qflist change 2021-06-17 08:10:19 -07:00
anott03
a0f33c9a37 moving from vim.fn to vim.api where possible
vim.fn functions are vimsciprt, while vim.api functions are lua, so api
functions tend to perform better
2021-06-17 07:36:53 -07:00
ThePrimeagen
65d1b43428
Merge pull request #86 from jonathf/master
custom terminal creation command
2021-06-10 10:26:44 -06:00
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