Commit graph

51 commits

Author SHA1 Message Date
a-kenji
e5fc158503 Add Unbind for Keybindings (#241)
* will unbind all default keybindings for now

* add test for toplevel unbind

* add example/default.yaml

* add example/README.md
2021-04-17 15:05:34 +02:00
a-kenji
60ad749473 Merge branch 'main' of https://github.com/zellij-org/zellij into unbind-default-keys 2021-04-17 00:15:52 +02:00
a-kenji
1f14683c8f Add Unbind Setting for Keybinds
Adds the `unbind: true` and `unbind: false` flag under
keybinds.

Unbinds all default Keybinds.

Some enums are here already for more flexible unbinds.
2021-04-17 00:15:12 +02:00
Kunal Mohan
138889f49a
Merge pull request #262 from zellij-org/error-model
Make error model more autonomous
2021-04-13 23:14:32 +05:30
Brooks J Rady
6f4dcfbf65 fix(clippy): get ci passing again 2021-04-13 18:14:13 +01:00
Kunal Mohan
380d69978c make error model more autonomous 2021-04-12 20:33:22 +05:30
Aram Drevekenin
65c75ebb95
feat(controls): add quick navigation (#260)
* feat(input): quick navigation

* feat(ui): quick navigation

* style(fmt): rustfmt
2021-04-08 11:36:49 +02:00
a-kenji
ca014d7aac Use Default Configuration for Tests
Uses the default configuration for tests,
in order to not mess up test cases with
different configurations in the config file.
2021-04-04 18:06:12 +02:00
a-kenji
a4430bf158 Chore(rustfmt) 2021-04-03 21:28:57 +02:00
a-kenji
4f5f189373 Merge branch 'main' of https://github.com/zellij-org/zellij into config-file 2021-04-03 21:19:39 +02:00
Doron Tsur
9cb2b727cb
Merge pull request #244 from a-kenji/main
Fix(Mouse): Remove unimplemented! Macro for Mouse
2021-04-01 10:08:16 +03:00
Brooks J Rady
138ba850eb fix(plugin): send mode updates to subscribed plugins on load 2021-03-31 12:13:00 +01:00
a-kenji
267f4b48de Fix(Mouse): Remove unimplemented! Macro for Mouse
Remove `unimplemented!` macro for mouse and unsupported events,
essentialy mimicking the NoOp.

Should not crash anymore when handling mouse events.

Alternatives:
Keep the `unimplemented!` macro for `termion::event::Event::Unsupported` ?

closes #243
2021-03-31 12:09:14 +02:00
a-kenji
84488a35aa Merge branch 'main' of https://github.com/zellij-org/zellij into config-file 2021-03-26 23:33:36 +01:00
a-kenji
a80d5f700b (Chore): rustfmt 2021-03-26 21:59:38 +01:00
a-kenji
98c4227c81 Fix tests 2021-03-26 21:59:20 +01:00
a-kenji
b30400ac47 Fix config default location
The default location is now correctly used again
2021-03-26 21:46:06 +01:00
Brooks J Rady
b6f945da35 Wrap up the plugin system refactor, running everything through update() 2021-03-25 17:22:10 +00:00
Brooks J Rady
0371c111b7 Removed AppState and the unneeded get_help() function 2021-03-25 14:56:59 +00:00
Brooks J Rady
0ea8ce497d Rename Help to ModeInfo 2021-03-25 14:30:31 +00:00
Brooks J Rady
f2f7758384 Merge in changes from main and fix clippy lints 2021-03-25 14:24:11 +00:00
Brooks J Rady
23df8e447a Move most key handling to the update() + event system 2021-03-23 23:57:18 +00:00
Brooks J Rady
ac55e59047 Initial implementation of the update callback + upstream termion 2021-03-23 19:52:59 +00:00
Brooks J Rady
9bc7a268ce Merge changes from main 2021-03-23 16:42:54 +00:00
denis
021c8608c8 wip: not sure about updating the input_mode and tab switches for now 2021-03-20 16:54:18 +02:00
a-kenji
91c109a902 Move test to /unit 2021-03-17 22:50:03 +01:00
a-kenji
e64192b42e Add a clean config option
Add a clean config option, which
makes zellij not look for a default
configuration file.
2021-03-17 16:56:02 +01:00
a-kenji
224c606b45 Remove logging to log.txt 2021-03-16 21:34:50 +01:00
a-kenji
2ce034a66a Remove unneccessary comment 2021-03-13 13:07:46 +01:00
a-kenji
a86d8c2161 Add example config file. 2021-03-12 22:05:41 +01:00
a-kenji
acc2524105 Merge 'upstream/main' into config-file 2021-03-11 22:43:43 +01:00
a-kenji
b4fca93eb7 Poking 2021-03-11 16:38:22 +01:00
Aram Drevekenin
8d0ff0fe40
feat(input): new shortcuts and ui (#220)
* feat(statusbar): new shortcuts

* feat(input): new shortcuts and ui

* style(fmt): rustfmt
2021-03-11 16:03:28 +01:00
a-kenji
2b2b7325e7 Poking around 2021-03-11 13:58:58 +01:00
Brooks J Rady
1dd4045e23 Clippy compels me to cull code 2021-03-09 22:20:16 +00:00
Brooks J Rady
e9ab81850e Add event subscription tracking 2021-03-09 21:51:17 +00:00
Brooks J Rady
06bce9a1fd Deduplicate the WASM interface structs 2021-03-09 19:39:42 +00:00
a-kenji
c97c553870 feature(input): add config file
* use a simple platform dependent config location `ProjectDir`

* deserialise from yaml
  iterate more on config format, maybe be more verbose?

* make keybinds a tuple struct
  same size as newtype, but makes impls easier to add

* merge optionally multiple keys for one keybinding
  easier configuration
2021-03-09 19:16:15 +01:00
Jonah Caplan
44b0246e91
feat(tabs): add ability to set tab name (#212)
* send all tabs in vec

* works but no input filtering

* add event types

* add event handler for tab events

* fmt fixups

* update tab name in place, and escape rename works

* rename handle_tab_event handle_tab_rename_keypress

* handle empty new_name when renaming

* fix(tabs): pad active tab name too

* fix(tabs): report proper length

* fix(tabs): always render active tab

* style(fmt): rustfmt

Co-authored-by: Aram Drevekenin <aram@poor.dev>
2021-03-08 10:06:23 +01:00
a-kenji
c644a1c243 poking 2021-03-05 19:23:06 +01:00
a-kenji
3e0174cc4a poke at creating Macros
- create config struct
- create config errors
- create macro struct

TODO create --config option for the file
2021-03-04 15:00:23 +01:00
Jonah Caplan
ce54127d7d add basic tab bar #166 2021-02-25 01:44:10 -05:00
Aram Drevekenin
7b69fcb8e0
Make fullscreen panes not override the status bar and strider (#209)
* work

* feat(tab): expansion boundary

* fix(layout): add expansion boundary to default layout

* style(fmt): rustfmt

* style(fmt): remove unnecessary comment
2021-02-24 18:00:00 +01:00
a-kenji
f3f23972eb fix(input) Write user input only in Normal mode
closes 184

Added the Action::NoOp from
https://github.com/zellij-org/zellij/issues/184
2021-02-22 21:53:50 +01:00
a-kenji
6bb419661e fix(clippy): use of unwrap_or followed by a fn
use of `unwrap_or` followed by a function call
2021-02-20 20:22:34 +01:00
a-kenji
12571a115d fix(clippy): useless use of format! 2021-02-18 21:53:09 +01:00
categorille
6e5607ba26
docs: first documentation step (#185)
* added some documentation to the input module

* added a bunch of documentation already, doing this non-linearly

* added more comments

* forgot cargo ftm again oop

* PR change requests applied, some forgotten/imcomplete doc added
2021-02-17 15:55:09 +01:00
categorille
c74e2ef273
feat(input): new keybindings and persistent mode as default (#181)
* added some comments in the input module

* InputHandler now has InputState instead of separate InputMode and permanent bool

* keybinds are now associated with a Vec<Action> instead of a single Action

* removing "persistent" modes alltogether to reimplement the feature, help bar broken

* locked command mode by default, fixes #161, help bar still broken

* status bar fixed, still a few improvements/bugs to go

* better shortcut help bar contents

* fixed last bits and i think we are good

* modified tests according to new controls, not working

* Revert "modified tests according to new controls, not working"

This reverts commit f2d9421ff0169feb83dbd9b246e59b9244cafc16.

* basic.rs tests now pass, not the rest

* close_pane.rs tests pass, but very slowly?

* compatibility.rs tests pass, very slowly as well

* {layout, {move_focus_*}}.rs all working mildly slowly

* {resize_*}.rs should all work but very slowly and funky, see PR comments

* {tabs,toggle_fullscreen}.rs pass. Test performance issue yet to be fixed

* tests now work, with a hack :| ready for merge

* rustfmt + deleted references to InputState and mode persistency
2021-02-12 14:55:22 +01:00
henil
af95b3ff9a Update references in src/ 2021-02-10 12:22:15 +05:30
Aram Drevekenin
14783c2b2c
feat(ui): new keybindings and status bar (#160)
* work

* feat(statusbar): new design and keybindings

* fix(ipc): add missing const

* style(fmt): rustfmt

* style(input): remove accidental comment
2021-02-09 17:36:37 +01:00