Skip to content

Commit

Permalink
Added screenshots. Added default EDITOR for :plotedit
Browse files Browse the repository at this point in the history
  • Loading branch information
andmarti1424 committed Apr 27, 2017
1 parent 762cf99 commit 18de5ee
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 6 deletions.
9 changes: 6 additions & 3 deletions Readme.md
Expand Up @@ -26,9 +26,12 @@ SC original authors are James Gosling and Mark Weiser, and mods were later added
About the name, the idea is that the program can be identified as another vim-like app.
SC-IM stands for Spreadsheet Calculator Improvised. :-)

![demo image](scim5.png?raw=true)
![demo image](scim4.png?raw=true)
![demo image](scim.png?raw=true)
![demo image](screenshots/scim5.png?raw=true)
![demo image](screenshots/scim4.png?raw=true)
![demo image](screenshots/scim.png?raw=true)
![demo image](screenshots/scimp1.png?raw=true)
![demo image](screenshots/scimp2.png?raw=true)
![demo image](screenshots/scimp3.png?raw=true)

## Build & Install

Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added screenshots/scimp1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/scimp2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/scimp3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/Makefile
Expand Up @@ -39,6 +39,8 @@ CFLAGS += -DLIBDIR=\"$(LIBDIR)\"

# Sets default pager, e.g. 'less' or 'more'
CFLAGS += -DDFLT_PAGER=\"less\"
# Sets default editor. Its use in case EDITOR env variable is not set
CFLAGS += -DDFLT_EDITOR=\"vim\"
# Comment out to disable color support
CFLAGS += -DUSECOLORS
# Command history file, relative to home directory. Comment out to disable commandline history
Expand Down
5 changes: 4 additions & 1 deletion src/plot.c
Expand Up @@ -25,7 +25,10 @@ int plotedit(wchar_t * s) {
system("reset");
//reset_shell_mode();

sprintf(command, "vim %s", path_out);
char * editor;
if (! (editor = getenv("EDITOR")))
editor = DFLT_EDITOR;
sprintf(command, "%s %s", editor, path_out);

if (system(command) == -1) sc_error("Failed editting plot file - errno:%d", errno);
reset_prog_mode();
Expand Down
7 changes: 5 additions & 2 deletions src/sc.h
Expand Up @@ -36,11 +36,14 @@ extern struct ent ** ATBL(struct ent ***,int ,int );
#define STDERRBUF 8192 /* stderr buffer size */

#ifndef DFLT_PAGER
#define DFLT_PAGER "more" /* more is probably more widespread than less */
#define DFLT_PAGER "more" /* more is probably more widespread than less */
#endif /* DFLT_PAGER */

#ifndef DFLT_EDITOR
#define DFLT_EDITOR "vim"
#endif

//#ifndef A_CHARTEXT /* Should be defined in curses.h */
//#ifndef A_CHARTEXT /* Should be defined in curses.h */
// #define A_CHARTEXT 0xff
//#endif

Expand Down

0 comments on commit 18de5ee

Please sign in to comment.