Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'less' Text Pagination Functionality to Dynamically View Parts of Large Text #1115

Open
wants to merge 56 commits into
base: theseus_main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
aef3885
Initial attempt to read file into string
Sep 20, 2024
9f597e2
remove errors to read file into initial string
nnh12 Nov 5, 2024
b1bcaa4
write content file when 'less' is called
nnh12 Nov 6, 2024
c22a389
add print string contents to verify existing functionality
nnh12 Nov 8, 2024
abe76e2
Add terminal size to determine line splice
nnh12 Nov 8, 2024
98a43a3
Save recent progress to use correct terminal size
nnh12 Nov 9, 2024
727c1fa
Add correct instance of Terminal for dimension
nnh12 Nov 10, 2024
583d574
Remove window and text display import
nnh12 Nov 10, 2024
da8fdf8
Delete extra 'Terminal' instance
nnh12 Nov 10, 2024
6b871ab
Initial implementation of display content function
nnh12 Nov 10, 2024
c2354b2
Event handler implementation
nnh12 Nov 10, 2024
621a857
Add 'shared_map' to grab the terminal instance
nnh12 Nov 11, 2024
993d6c3
use new instance of 'Terminal' to write to display
nnh12 Nov 12, 2024
0b2e906
attempt to add libterm dependency
nnh12 Nov 17, 2024
527ca79
Attempt to display string to terminal
nnh12 Nov 17, 2024
2dbf85d
Get text pagination to project file onto terminal
nnh12 Nov 19, 2024
443e782
Remove prompt instruction after entering 'less' editing mode
nnh12 Nov 20, 2024
48724c9
Add missing text pagination to Missing filename ("less --help" for help)
nnh12 Nov 22, 2024
f10c4d1
Test 'Tab' command working
nnh12 Nov 22, 2024
8b7049d
Prelimary key word short cut to Quit
nnh12 Nov 23, 2024
1fd2b54
Fix clippy error messages with string format error
nnh12 Nov 25, 2024
286ace5
Convert 'str' to String
nnh12 Nov 25, 2024
26bf332
Handle none case with warning
nnh12 Nov 25, 2024
7661174
Keycode 'Q' to leave out of text
nnh12 Nov 25, 2024
bebf802
Remove LineSlice struct for now
nnh12 Nov 25, 2024
1230e77
Remove 'Terminal' instantiation
nnh12 Nov 25, 2024
b69d78e
Restart fresh terminal instance upon quiting
nnh12 Nov 26, 2024
b19dc2d
Migrate less functionality to 'shell'
nnh12 Nov 28, 2024
0c00a64
Displayable text added
nnh12 Nov 28, 2024
eeae44d
test file for large file
nnh12 Nov 28, 2024
d309149
Grab the line slices within a text file
nnh12 Nov 28, 2024
e9c64be
Grab the sliced string against dimension and display
nnh12 Nov 28, 2024
05fd274
Handle keyboard hits for navigation
nnh12 Nov 29, 2024
6d70adf
Quit 'less' upon 'Q' keyboard
nnh12 Nov 29, 2024
351cbf8
remove 's1' clone for testing
nnh12 Dec 3, 2024
4c3b55c
Move away from Terminal reference
nnh12 Dec 3, 2024
b137731
access map instance for line access
nnh12 Dec 4, 2024
87a2e1c
Remove previous less command and replace with shell implementation
nnh12 Dec 4, 2024
3149653
Fix 'Q' option to allow user to enter 'q' letter
nnh12 Dec 5, 2024
3910469
Use shell instance of content string to display
nnh12 Dec 5, 2024
71bd2a7
Add 'Up' and 'Down' functionality
nnh12 Dec 5, 2024
345b668
Restore less functionality back to original
nnh12 Dec 5, 2024
ad24748
Revert less application to original again
nnh12 Dec 5, 2024
190c3a4
again
nnh12 Dec 5, 2024
06a2788
revert Cargo changes
nnh12 Dec 5, 2024
2c34fff
fix line issue
nnh12 Dec 5, 2024
075ab3e
Fix unnnecessary changes
nnh12 Dec 5, 2024
52d62c8
fix again
nnh12 Dec 5, 2024
179e743
fix clippy errors
nnh12 Dec 6, 2024
cd6f199
Revert changes to applications/less/src/lib.rs
nnh12 Dec 6, 2024
29e33e2
Update sytling
nnh12 Dec 6, 2024
b11c169
Fix clippy errors again
nnh12 Dec 6, 2024
b8c6b0c
fix clippy errors again
nnh12 Dec 6, 2024
ad9724e
restore get get content string to return result
nnh12 Dec 6, 2024
e7d127f
Fix issue with map initialization
nnh12 Dec 6, 2024
f21345c
Clean up code
nnh12 Dec 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert Cargo changes
  • Loading branch information
nnh12 committed Dec 5, 2024
commit 06a2788e27f6df38b35868b27db206d534651f2c
5 changes: 0 additions & 5 deletions applications/less/Cargo.toml
Original file line number Diff line number Diff line change
@@ -29,13 +29,8 @@ path = "../../kernel/app_io"
[dependencies.stdio]
path = "../../libs/stdio"

[dependencies.shell]
path = "../shell"


[dependencies.log]
version = "0.4.8"


[lib]
crate-type = ["rlib"]
Loading