Commit Graph

196 Commits

Author SHA1 Message Date
denis
a6ad8e6f15 wip: sending the ModeInfo on initial plugin load 2021-04-02 11:24:13 +03:00
Aram Drevekenin
1739f370f9
* fix(ui): react to terminal window size changes (SIGWINCH) (#245)
* fix(ui): react to terminal window size changes (SIGWINCH)

* style(fmt): rustfmt

* style(format): remove some warnings

* style(fmt): rustfmt
2021-04-01 17:38:13 +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
denis
b8ee02d4bb wip: does it take too long to load colors from xrdb? 2021-03-31 14:32:54 +03:00
Brooks J Rady
48fa876130 Merge branch 'main' into build-improvements 2021-03-31 12:18:51 +01: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
denis
2b59edbe9d wip: need to set the default for Palette in the plugins 2021-03-31 09:44:41 +03:00
denis
42890d4e64 wip: replace the impl with a fn load_palette instead 2021-03-28 10:51:15 +03:00
denis
6e276ae386 wip: move Palette out of zellij-tile 2021-03-27 15:30:53 +02:00
denis
b71315b036 wip: latest plugin system merge in 2021-03-27 14:43: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
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
denis
2c402b0b1d wip: scary how messy it is, but it's a start 2021-03-26 16:42:38 +02:00
Brooks J Rady
b6f945da35 Wrap up the plugin system refactor, running everything through update() 2021-03-25 17:22:10 +00:00
denis
a35cade8de wip: reading colors from xrdb 2021-03-25 18:05:16 +02: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
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
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
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
Aram Drevekenin
ac358d913c
fix(performance): smaller allocations when rendering (#222) 2021-03-12 14:27:13 +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
denis
1a5d30d17d wip: visually marking the focused pane 2021-03-07 18:39:44 +02: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
Brooks J Rady
0d20148518 infra(crates.io): allow publishing by including assets from a different path 2021-02-25 23:26:31 +00:00
Aram Drevekenin
54c500b230
fix(grid): do not crash when reflowing lines with an empty top buffer (#211) 2021-02-25 18:20:01 +01:00
Aram Drevekenin
6d623b3f1e
Fix vim background color (#210)
* fix(compatibility): properly pad characters with styling on newlines

* style(fmt): rustfmt
2021-02-25 17:15:20 +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
Brooks J Rady
8d923ec6fd style(enable trailing commas in asset_map!) 2021-02-23 19:11:19 +00:00
Brooks J Rady
ee65f402c8 fix(plugin install location) 2021-02-23 19:01:23 +00:00
Brooks Rady
a82cc8fbcb
fix(input is now only forwarded in normal mode) 2021-02-23 17:56:13 +00:00
Brooks J Rady
3bc9fdbc0c build(simplify and fix build system, removing the binary assets) 2021-02-23 16:13:41 +00: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
Denis Maximov
aba71c2e4e
Merge pull request #200 from a-kenji/main
Clippy fixes.
2021-02-22 10:50:09 +02:00
a-kenji
b17dc6625c Merge branch 'main' of https://github.com/zellij-org/zellij 2021-02-21 01:01:03 +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
fc1a956040 fix(clippy): unneeded return statement 2021-02-18 21:53:09 +01:00
a-kenji
b9eb6c5b99 allow(clippy): single_match for signal handler
Should get more matches in the future.
2021-02-18 21:53:09 +01:00
a-kenji
12571a115d fix(clippy): useless use of format! 2021-02-18 21:53:09 +01:00
a-kenji
dc7e980a05 fix(clippy): unneccessary >= y + 1 or x - 1 >= 2021-02-18 21:52:54 +01:00
Aram Drevekenin
db26f849ff
fix(ux): hide cursor while rendering to prevent it from flickering around (#191) 2021-02-18 16:47:37 +01:00
Aram Drevekenin
c0a0af3133
fix(compatibility): do not forward tabs to the terminal (#190)
* fix(compatibility): do not forward tabs to the terminal

* style(fmt): rustfmt
2021-02-18 11:07:57 +01:00
Aram Drevekenin
831d26156e
fix(compatibility): get top not to break everything when exiting (#188) 2021-02-17 15:55:38 +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
Brooks J Rady
190d41445b Fix a thorn in my side 2021-02-16 18:58:29 +00:00
Brooks J Rady
e05973ae0f Whoops, give things a format! 2021-02-16 18:43:28 +00:00
Brooks J Rady
bdfec65cfb Switched to using a *much* simpler build-script 2021-02-16 18:33:27 +00:00
Brooks J Rady
5a3caba55f Install assets on first run 2021-02-16 17:23:16 +00: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 f2d9421ff0.

* 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
436b4ee19e fix: Some warnings 2021-02-10 15:49:41 +05:30
henil
e52e9b1b37 And from Goodbye message 2021-02-10 12:26:38 +05:30
henil
af95b3ff9a Update references in src/ 2021-02-10 12:22:15 +05:30
Brooks J Rady
db3ec62cf2 Fix tests 2021-02-09 23:40:16 +00:00
Brooks J Rady
9791970856 Well, it turns out that I spent 4 hours on something impossible... 2021-02-09 22:19:34 +00:00
Brooks J Rady
e81e547364 Moved strider into its own folder 2021-02-09 17:49:37 +00:00
Brooks J Rady
8c4db83dfb Bump dependency version 2021-01-11 21:50:50 +00:00
Brooks J Rady
75136a613d Update deps and add a build script 2021-01-07 11:10:39 +00:00
Brooks J Rady
2ecf8bd5db Initial Commit 2020-11-17 22:10:51 +00:00