Repository navigation
BusyBoxVi and Neatvi #51
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
70344fd
Implement Vi app
KenVanHoeylandt 1bb4564
Update tactility.py to 7.0.1
KenVanHoeylandt 549ba5e
Ignore python cache
KenVanHoeylandt 8eff2a8
Move scripts to Scripts/
KenVanHoeylandt a075732
Fix BusyBox vi and add Neatvi
KenVanHoeylandt 9d18222
Fixes
KenVanHoeylandt 932323a
Cleanup fix
KenVanHoeylandt 123ce67
Add signals
KenVanHoeylandt f5c5b0d
Fix
KenVanHoeylandt 1251b84
Fix
KenVanHoeylandt 9a7096a
Merge branch 'main' into busybox-vi-and-neatvi
KenVanHoeylandt 08afee0
Delete old Vi app
KenVanHoeylandt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,3 +15,5 @@ sdkconfig.old | |
| .tactility/ | ||
|
|
||
| dependencies.lock | ||
|
|
||
| __pycache__ | ||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| /* | ||
| * Licensed under GPLv2, see file LICENSE in this app's directory. | ||
| */ | ||
| #include <setjmp.h> | ||
| #include <stdlib.h> | ||
|
|
||
| int vi_main(int argc, char** argv); | ||
| void bb_free_all(void); | ||
| void vi_cleanup(void); | ||
| extern jmp_buf bb_die_jmp; | ||
|
|
||
| int main(int argc, char* argv[]) { | ||
| int result; | ||
| if (setjmp(bb_die_jmp) == 0) { | ||
| result = vi_main(argc, argv); | ||
| } else { | ||
| vi_cleanup(); | ||
|
KenVanHoeylandt marked this conversation as resolved.
|
||
| result = EXIT_FAILURE; | ||
| } | ||
| /* vi leaves its buffers to process exit, which an app instance doesn't have */ | ||
| bb_free_all(); | ||
| return result; | ||
| } | ||
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
Apps/Vi/manifest.properties → Apps/BusyBoxVi/manifest.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,14 @@ | ||
| manifest.version=0.3 | ||
| target.sdk=0.8.0-dev | ||
| target.platforms=esp32,esp32s3,esp32c6,esp32p4,posix-x86_64 | ||
| id=tactility.vi | ||
| id=tactility.busyboxvi | ||
| version.name=0.1.0 | ||
| version.code=1 | ||
| name=Vi | ||
| description=BusyBox vi text editor | ||
| app.0.id=tactility.vi | ||
| app.0.name=Vi | ||
| app.0.id=tactility.busyboxvi | ||
| app.0.name=BusyBox vi | ||
| app.0.binary=vi | ||
| app.0.hidden=true | ||
| app.0.headless=true | ||
| app.0.stack.depth=8192 | ||
| app.0.stack.depth=4096 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # tactility-cmakelists-version: 1 | ||
| cmake_minimum_required(VERSION 3.20) | ||
|
|
||
| if (NOT DEFINED ENV{TACTILITY_SDK_PATH}) | ||
| message(FATAL_ERROR "TACTILITY_SDK_PATH environment variable is not set") | ||
| endif() | ||
|
|
||
| get_filename_component(TACTILITY_SDK_PATH "$ENV{TACTILITY_SDK_PATH}" ABSOLUTE) | ||
| include("${TACTILITY_SDK_PATH}/TactilitySDK.cmake") | ||
|
|
||
| tactility_project_pre(vi) | ||
| project(vi) | ||
| tactility_project_post(vi) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
|
|
||
| Copyright (C) 2015-2026 Ali Gholami Rudi <ali at rudi dot ir> | ||
|
|
||
| Permission to use, copy, modify, and/or distribute this software for any | ||
| purpose with or without fee is hereby granted, provided that the above | ||
| copyright notice and this permission notice appear in all copies. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
| WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
| MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
| ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
| WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
| ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
| OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Vi | ||
|
|
||
| The [neatvi](https://github.com/aligrudi/neatvi) text editor for the Tactility terminal. | ||
|
|
||
| ## Usage | ||
|
|
||
| Run it from the Terminal app: | ||
|
|
||
| ``` | ||
| vi [-v] [-e] [FILE]... | ||
| ``` | ||
|
|
||
| - `-v`: start in vi mode (default) | ||
| - `-e`: start in ex mode | ||
|
|
||
| ## Features | ||
|
|
||
| - vi and ex commands, including `:w`, `:q`, `:wq`, `:e`, `:r`, `:s/old/new/` | ||
| - Regular expression search and substitution | ||
| - Multiple buffers, registers, marks, undo/redo | ||
| - Syntax highlighting (see `conf.c`) | ||
|
|
||
| Not supported: `:!` shell commands, filters and pipes, and LSP support (Tactility can't start other processes). | ||
| The terminal has no Home/End/PgUp/PgDn keys: use `0`, `$`, `Ctrl+B` and `Ctrl+F`. | ||
|
|
||
| ## Source | ||
|
|
||
| `main/Source` holds neatvi (upstream commit `26e9cad`), unmodified, without `cmd.c`, `lsp.c`, `json.c` and `stag.c`. | ||
| `main/Source/tactility.c` replaces `cmd.c` and `lsp.c`, which need `fork()`. | ||
|
|
||
| ## License | ||
|
|
||
| neatvi is licensed under the ISC license, see [LICENSE](LICENSE). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| include("$ENV{TACTILITY_SDK_PATH}/TactilitySDK.cmake") | ||
|
|
||
| file(GLOB_RECURSE SOURCE_FILES Source/*.c) | ||
| tactility_component_register(SRCS ${SOURCE_FILES}) | ||
|
|
||
| # neatvi code style (third-party, kept unmodified) | ||
| set(NEATVI_COMPILE_OPTIONS -Wno-missing-field-initializers -Wno-char-subscripts -Wno-implicit-fallthrough -Wno-format-truncation) | ||
| if (DEFINED COMPONENT_LIB) | ||
| target_compile_options(${COMPONENT_LIB} PRIVATE ${NEATVI_COMPILE_OPTIONS}) | ||
| else () | ||
| target_compile_options(${PROJECT_NAME} PRIVATE ${NEATVI_COMPILE_OPTIONS}) | ||
| endif () |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.