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
Brooks J Rady
f4f6e3c66b
Start working on layout patching
2021-03-30 12:49:42 +01:00
a-kenji
9ba26e7367
Fix(strider): Ignore descending into empty dir
...
Adds a guard to check if the directory is empty before
trying to descend into it.
Eg:
Doesn't error anymore, if inside ./git/branches directory
and pressing `l`.
2021-03-29 20:42:16 +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
68737f78ac
Config: Fix README
2021-03-26 22:12:01 +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
4c662fc6d0
Start porting to cargo-make
2021-03-26 16:01:22 +00:00
Brooks Rady
d818661c72
feat(plugin): refactored to a new and more general plugin API
...
- Changed `init()` to `load()`
- Deduplicated structs that are in both `zellij` and `zellij-tile`
- WASM thread now keeps a mapping of plugins and event subscriptions
- Added host-functions for subscribing and unsubscribing from events
- Introduced the `update(event)` callback into the API (which is called to handle plugin events)
- Made mode changes send an event to the WASM thread
- Removed the `AppInstruction::Get/SetState` calls (and any global state)
- Removed the `get_help()` host function
- Added an event system for key-presses
- Added an event for updating tabs
- Ported support for renaming tabs
- Removed every plugin callback other than `load()`, `update(event)`, and `draw(rows, cols)`
- Removed every WASM thread event other than Load, Draw, Update, Unload, and Quit
- Calls render after a plugin is updated
- Switched back to upstream `termion`
- Loads of lint fixing
- Shrunk and simplified the code!
2021-03-26 13:20:06 +00:00
Brooks J Rady
c71252f77e
Fix some overzealous format!() removals and a stray comment
2021-03-26 13:02:31 +00:00
Brooks J Rady
6316763b0e
Fixing a load of clippy lints in status-bar
2021-03-25 17:41:02 +00: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
84a5cf95d1
Converted tab updates to the new generic update() function
2021-03-25 15:51:39 +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
81a517b264
Remove a dead input enum variant
2021-03-25 14:13:59 +00:00
Aram Drevekenin
e1e1f21043
fix(render): various rendering issues ( #238 )
2021-03-24 10:58:50 +01:00
Denis Maximov
d64e814e54
Merge pull request #235 from zellij-org/focused-pane
...
feature: Focused pane border coloring
2021-03-24 11:37:35 +02:00
denis
57e1f476f2
wip: input_mode back in tab, not passing stuff around anymore
2021-03-24 11:23:03 +02:00
denis
91608dfe4e
wip: cleanup the TabData, get rid of input_mode in tab, pass through render instead
2021-03-24 07:50:47 +02: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
Brooks J Rady
a1e6171031
Rename references of 'draw' to 'render' for plugins
2021-03-23 16:26:34 +00:00
denis
2913286d9e
wip: remove colored_borders
2021-03-23 10:01:36 +02:00
denis
2bc40e5402
wip: using Some(Color) in the BoundarySymbol now
2021-03-23 08:47:20 +02:00
denis
99c578ea1d
chore: formatting
2021-03-21 10:48:21 +02:00
denis
9016253a51
wip: cleanup
2021-03-20 17:52:45 +02:00
denis
021c8608c8
wip: not sure about updating the input_mode and tab switches for now
2021-03-20 16:54:18 +02:00
denis
59d2da54ca
wip: active pane color, able to type / not able to type inside a pane distinction
2021-03-19 16:11:45 +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
denis
3dd776834a
wip: the borders are colored correctly now, need to change the color according to the mode selected next and do some cleaning up
2021-03-17 11:16:02 +02:00
denis
448c426c2b
Merge branch 'main' into focused-pane
2021-03-17 10:05:43 +02:00
a-kenji
224c606b45
Remove logging to log.txt
2021-03-16 21:34:50 +01:00
a-kenji
564ded0bb3
Add short --config -c option
2021-03-16 21:22:59 +01:00
a-kenji
d3a72a27df
Add key events documentation
...
Add key events documentation from termion to the README
2021-03-16 21:14:10 +01:00
Aram Drevekenin
46c9802f6f
Performance: only render panes that should be updated ( #234 )
...
* fix(performance): bring back should_render
* style(fmt): rustfmt
2021-03-16 16:54:07 +01:00
denis
922440a952
wip: need to debug somehow
2021-03-15 14:17:04 +02:00
Jonah Caplan
a174989990
fix(tabs): delete characters when renaming tab ( #226 )
2021-03-15 10:52:50 +01:00
Kunal Mohan
dbbafae606
Merge pull request #233 from zellij-org/build-fix
...
Fix(build): Zellij-tile was building outside zellij.
2021-03-14 12:22:01 +05:30
Kunal Mohan
0307b2de9e
fix build directory for zellij-tile
2021-03-14 11:59:06 +05:30
a-kenji
2ce034a66a
Remove unneccessary comment
2021-03-13 13:07:46 +01:00
a-kenji
e0d0502539
Add config to README
2021-03-13 12:48:27 +01:00
a-kenji
9c0762fc53
Update default config file
2021-03-13 12:25:28 +01:00
a-kenji
cac143db76
Modify example config file
2021-03-13 10:37:38 +01:00
a-kenji
1da743b1c7
Add more options to example config file
2021-03-13 10:20:56 +01:00
a-kenji
a86d8c2161
Add example config file.
2021-03-12 22:05:41 +01:00