Commit Graph

296 Commits

Author SHA1 Message Date
Aram Drevekenin
1c1558df64
fix(compatibility): do not offset first scroll region line (#82) 2020-12-04 15:19:00 +01:00
Aram Drevekenin
a56cb3c9ad
fix(compatibility): htop horizontal scrolling (#81)
* fix(compatibility): htop horizontal scrolling

* style(format): make rustfmt happy
2020-12-04 10:02:51 +01:00
Denis Maximov
b7b3ff74cf
feat(rect): directional move focus #55 (#78)
* feat: directional move focus #55

* wip: refactored match into if let

* wip: basic tests

* feat: move to most overlapping pane tests

* fix: formatting

* wip: Moved the definitions to the Rect trait

* formatting
2020-12-04 09:59:06 +01:00
Aram Drevekenin
5ba9320b2b
fix(compatibility): keypad arrow fixes (#80)
* fix(compatibility): make arrow keys work in htop and vim

* docs(terminal): add explanatory comments to character string

* style(format): make rustfmt happy
2020-12-03 15:58:30 +01:00
Kunal Mohan
56c53d2487
feat(infra): add custom panic hook. Print backtrace and thread, error info on panic. (#75)
* Add custom panic hook. Print backtrace and thread, error info on panic.

* use sync_channel and SyncSender

* nit fixes and cleanup

* disable custom panic hook while running tests

* make separate errors.rs file and address other review comments

* improve panic message

* debug: does increasing time between snapshots make tests pass? (this is temporary)

* fix(tests): suspend before sending quit command

* fix(tests): add missing use

* style(format): commas are important apparently

* fix(tests): can we get away with reducing the QUIT suspense time?

* fix(tests): can we get away with 50?

Co-authored-by: Aram Drevekenin <aram@poor.dev>
2020-12-03 15:35:16 +01:00
Brooks Rady
c3fa9fb40e
fix(threads): a race condition, build-times, and warnings (#79)
* Fix a race condition, build-times, and warnings

* Yeah, yeah... I know

* style(code): add comment to explain race condition

Co-authored-by: Aram Drevekenin <aram@poor.dev>
2020-12-02 15:03:46 +01:00
Aram Drevekenin
c47fed927e
fic(compatibility): htop scrolling issues (#77)
* fix(compatibility): scrolling inside scroll region with 'M' esc dispatch

* style(format): make rustfmt happy

* fix(tests): send proper data

* fix(logs): do not crash if log file doesn't exist
2020-11-30 09:40:24 +01:00
Aram Drevekenin
ea549f151e
fix(input): read stdin with lock (#72)
* fix(input): lock stdin when reading and use its own buffer

* style(format): make rustfmt happy

* fix(ipc): add accidentally removed trait
2020-11-29 19:12:19 +01:00
Roee Shapira
9ad7b8a35e
chore(infra): added clippy check. (#65)
* Added clippy check.

* Changed step name.

* Used the suggested ci config.

* Some more clippy fixes.

* Some more clippy fixes.

* More clippy fixes.

* Removed allow annotations.

* Minor lint edit.

* More clippy fixes.

* Ran cargo fmt.

* More clippy fixes.

* More clippy fixes.

* More clippy fixes.

* More clippy fixes.

* More clippy fixes.

* More clippy fixes.

* Code review edits.

* Code review edits.

* Code review edits.

* CI update.

* CI update.

* CI update.

* Added clippy warn so wip won't fail ci.

* Cargo fmt.
2020-11-28 20:02:05 +01:00
Brooks Rady
1586a705d2
feat(tiles): initial WASM integration
The first steps towards WASM module integration
2020-11-26 10:36:27 +00:00
Aram Drevekenin
4f2536a94d fix(tests): improve atomic data access 2020-11-26 11:15:35 +01:00
Aram Drevekenin
356b9d602b style(format): make rustfmt happy 2020-11-26 10:52:43 +01:00
Aram Drevekenin
d4d54450a1 fix(tests): do not read stdin until we started reading from pty 2020-11-26 10:49:53 +01:00
Brooks J Rady
3c43675fb1 Got roasted by cargo fmt 2020-11-25 21:39:18 +00:00
Brooks J Rady
aea41d3d50 Don't crash (always?) 2020-11-25 21:18:13 +00:00
Brooks J Rady
7026c6c484 Don't crash (sometimes) 2020-11-25 20:35:26 +00:00
Brooks J Rady
06b5ef8c26 Well, it compiles... 2020-11-25 19:39:45 +00:00
Aram Drevekenin
489ade6eb8 hotfix(logging): atomically create tmp folders 2020-11-25 17:08:43 +01:00
Aram Drevekenin
761695fe9b hotfix(controls): clear buffer in normal mode 2020-11-24 09:16:50 +01:00
Aram Drevekenin
ed590bceda
fix(atomicity): allow async vte events sending to fail (#67)
* fix(atomicity): allow async vte events sending to fail

* style(format): make rustfmt happy
2020-11-23 19:31:31 +01:00
Aram Drevekenin
f88abe6ad8
fix(compatibility): various htop issues (#66)
* fix(compatibility): various htop issues

* style(format): make rustfmt happy

* fix(logging): do not delete log dir on startup

* fix(tests): update htop with command toggle

* chore(ci): reduce test concurrency to 1
2020-11-23 18:01:16 +01:00
Roee Shapira
fd1f1ce697
fix(layout): total layout percent 100 validation (#57)
* Fix for issue #52

* Added missing fixtures.

* Added missing validation.

* Moved layout creation and validation to the Layout struct.

* Ran cargo fmt.

* Added creation of tmp folder if needed.

* Code review edit.

* Code review edit.

* Fancied code up.

* PR request change.

* PR code review.

* Merge from upstream/main.

* Merge from upstream/main.
2020-11-21 19:39:57 +01:00
Henil
6a9ecc42a8
refactor(structure): Change structure of /tmp directory (#62)
Co-authored-by: Aram Drevekenin <aram@poor.dev>
2020-11-21 17:32:46 +01:00
Kyle Sutherland-Cash
11e72b3d6b
feat(ux): add a command mode (#42)
* Move the input loop into a separate module

* Proof of concept implementation of command mode

* Update readme to reflect command mode

* Have Esc exit command mode

* Update tests to use command mode and make it transient by default

* Some merge fixes

* fix(tests): add missing COMMAND_TOGGLE and fix false positive test

* style(format): make rustfmt happy

* Update readme to describe command mode

Co-authored-by: Aram Drevekenin <aram@poor.dev>
2020-11-21 15:55:49 +01:00
Aram Drevekenin
429e415ecc
fix(atomicity): block commands before executing others (#59) 2020-11-19 18:24:34 +01:00
Denis Maximov
cf43736656
refactor(data-structures): #51 change winsize to positionandsize (#56) 2020-11-19 15:30:05 +01:00
Roee Shapira
5ddf95a16c
fix(compatibility): some fixes for htop (#53)
* Moved all log to file functions to one module.

* Moved logging to file function to utils module.

* Housekeeping.

* Housekeeping.

* Started investigation into htop CSIs.

* Used better function for scrolling.

* Minor cleanup.

* Cleanup and start of scroll region rotation.

* Implemented scroll region rotation.

* Improved performace.

* New SCI found.

* Typo.

* Typo.

* Removed logging function.

* Added scroll rotation functions.

* Typo.

* Moved all logging function to one module.

* Attempt at making htop work.

* Reverted unneeded changes.

* Improved log file name creation.

* Ran rust fmt.

* PR review edits.

* PR review edits.

* Used mark_for_rerender function.

* Removed _ prefix from logging functions.
2020-11-19 11:15:59 +01:00
Brooks J Rady
a57eadee8c Update description 2020-11-17 22:12:07 +00:00
Brooks J Rady
2ecf8bd5db Initial Commit 2020-11-17 22:10:51 +00:00
Brooks J Rady
b39ec4c0b7 Bump version 2020-11-17 22:04:04 +00:00
Brooks J Rady
842e668b42 Rename plugin -> tile 2020-11-17 22:02:35 +00:00
Brooks J Rady
e0bc330205 Add some metadata 2020-11-17 21:53:12 +00:00
Brooks J Rady
115bc83b8e Initial Commit 2020-11-17 21:40:01 +00:00
Denis Maximov
6f168c5ef2
fix(ux): disable move focus when in full screen (#49)
* feat: add rustfmt, update action workflow to check for formatting

* wip: Mosaic reacts to "move focus" commands when one pane is maximized

* feat: move focus is blocked when pane is in full screen

* fix: formatting

Co-authored-by: denis <denis@airheadventures.com>
2020-11-17 12:53:37 +01:00
Henil
0ddcc4087e
fix(ux): add variable to track if the pane is in fullscreen mode or not (#47)
* Fix the bug and add new tests

* add snapshots for integration tests
2020-11-16 17:45:15 +01:00
Aram Drevekenin
47954166a2
feat(ux): initial layout engine (#50)
* prototype

* refactor(layout): move stuff around

* style(format): make rustfmt happy
2020-11-15 19:55:56 +01:00
Denis Maximov
a2914066bf
feat: add rustfmt, update action workflow to check for formatting (#45) 2020-11-14 18:59:37 +01:00
Aram Drevekenin
b66dffe5cf HOTFIX: do not get os input unless we're starting the app 2020-11-14 13:55:13 +01:00
Aram Drevekenin
8e6dfded7a
fix(ux): properly echo characters and do not mess up exit (#44) 2020-11-14 13:27:42 +01:00
Denis Maximov
20617c0263
feat(development): add --debug flag (#41)
* wip: #39 create a -d --debug flag

* fix: switch join with concat
2020-11-13 16:44:24 +01:00
Aram Drevekenin
5a88b1a6ee
fix(ui): exit app when last pane is closed (#40) 2020-11-11 11:56:48 +01:00
Aram Drevekenin
dc0432bb64
fix(compatibility): various issues involving starship (#37) 2020-11-10 17:05:10 +01:00
Aram Drevekenin
b876843adf
fix(colors): send full style reset in diff (#32) 2020-11-09 18:53:22 +01:00
Aram Drevekenin
f02136ec0d
fix(compatibility): do not break starship multiline prompt (#30) 2020-11-09 12:18:58 +01:00
Aram Drevekenin
ee0167f3af
fix(compatibility): do not interpret esc as scroll-up (#29) 2020-11-08 21:22:46 +01:00
Aram Drevekenin
393bca0d39
fix(compatibility): better stdin reading to fix various issues (#28) 2020-11-07 19:20:13 +01:00
Aram Drevekenin
13af16b336
fix(scroll): support show/hide cursor and fix vim scrolling behaviour (#27) 2020-11-06 18:12:03 +01:00
Aram Drevekenin
cc347ab24a
docs(architecture): fix title 2020-11-06 09:58:36 +01:00
Aram Drevekenin
ea2251e755
docs(contributing): explanations about the project arhictecture and some cheat sheet about terminal terminology (#26)
* docs(contributing): codebase documentation for new contributors

* docs(architecture): fix line breaks

* docs(terminology): fix line breaks
2020-11-06 09:57:35 +01:00
Aram Drevekenin
bdcd3b74ff
feat(screen): allow to toggle pane fullscreen with ctrl-f (#24) 2020-11-05 10:26:33 +01:00