Commit Graph

678 Commits

Author SHA1 Message Date
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
Brooks J Rady
3e10e34575 Rename init() to load() in plugin API + Bump deps 2021-03-09 17:09:21 +00: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
Aram Drevekenin
845478fe11
New tab styling (#216)
* draft

* feat(tabbar): new ui

* style(fmt): rustfmt
2021-03-03 18:52:17 +01:00
Henil Dedania
955d38906d
Merge pull request #213 from zellij-org/build-fix
fix(build): This is getting uglier :/
2021-03-01 08:51:56 +05:30
henil
522406c321 fix(build): This is getting uglier :/ 2021-02-28 12:39:09 +05:30
Brooks J Rady
b6ce24280f infra(crates.io): clear the correct directory in build.rs 2021-02-26 09:27:59 +00:00
Brooks J Rady
a20e49d77e infra(crates.io): readd wasm assets to the repo 2021-02-26 09:09:54 +00: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
Brooks J Rady
e2217564c2 infra(crates.io): try to include wasm assets 2021-02-25 23:25:39 +00:00
Brooks J Rady
84d4e5aa38 infra(crates.io): add a script for publishing zellij 2021-02-25 22:42:52 +00:00
Brooks J Rady
560ccdc487 build(plugin): fix a typo in the build-all.sh 2021-02-25 22:29:06 +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
Denis Maximov
f9441bce99
Merge pull request #204 from jcaplan/tab-bar-166
add tab toolbar
2021-02-25 09:45:23 +02: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
0e88c921d0
Doc build (#207)
* docs(build): Add information about binaryen dep

* docs(build): Add information about binaryen dep
2021-02-24 17:05:19 +01:00
Brooks J Rady
1acff8916f build(actually reinstall updated plugins) 2021-02-23 20:27:22 +00:00
a-kenji
683c152fa2
feature(strider): Allow to Hide Hidden Files (#203)
closes #197

default keybinding = '.'
default view = shows hidden files

Alternative:
Hide hidden files by default.
2021-02-23 20:25:02 +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 J Rady
57dc07409d fix(get rid of old toolchain file) 2021-02-23 17:57:15 +00:00
Brooks Rady
a82cc8fbcb
fix(input is now only forwarded in normal mode) 2021-02-23 17:56:13 +00:00
Brooks Rady
e46901a52f
build(fix the CI with the new build system)
Also added new instructions for running in the README
2021-02-23 17:07:22 +00:00
Brooks J Rady
1759fe9538 Sweet victory (and a README update) 2021-02-23 17:06:22 +00:00
Brooks J Rady
08ffc153e1 Now it's exhausting 2021-02-23 16:57:17 +00:00
Brooks J Rady
701374f3fe Everything is rubbish - if you can't beat them, join them 2021-02-23 16:47:22 +00:00
Brooks J Rady
d05516ce24 Ubuntu is rubbish, arch ftw <3 2021-02-23 16:41:23 +00:00
Brooks J Rady
bff58a0a8a Yolo 2021-02-23 16:36:18 +00:00
Brooks J Rady
c06d464c65 More shots in the dark 2021-02-23 16:33:16 +00:00
Brooks J Rady
aced318596 Maybe fix the build CI 2021-02-23 16:24:04 +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
a-kenji
dbbb0792c9 Remove Target from toolchain file.
Maybe it makes sense to not define the targets
in the file for now if we decide to use it at all -
they could be a lot and hard to maintain?
2021-02-22 18:16:23 +01:00
a-kenji
0e10aa882e Add rust-toolchain.toml file
The rust-toolchain file makes
it possible to share a basic
rustup configuration across the
project.

https://rust-lang.github.io/rustup/overrides.html#the-toolchain-file

Important to note, this is the
current rustup hierarchy:

1. An explicit toolchain, e.g. cargo +beta,
2. The RUSTUP_TOOLCHAIN environment variable,
3. A directory override, ala rustup override set beta,
4. The rust-toolchain file,
5. The default toolchain,

source:
c2db7dac6b/README.md (toolchain-override-shorthand)
2021-02-22 18:16:23 +01:00
Brooks Rady
4d21e8f357
build(add a toolchain.toml file)
Add rust-toolchain.toml file
2021-02-22 11:43:12 +00: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
a-kenji
8e19bd8ba0 Remove Target from toolchain file.
Maybe it makes sense to not define the targets
in the file for now if we decide to use it at all -
they could be a lot and hard to maintain?
2021-02-18 12:08:38 +01:00