Commit Graph

200 Commits

Author SHA1 Message Date
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