Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [editors]

Questions about text editors in general (i.e. programs used for editing plain text files).

1
vote
2answers
37 views

View and delete part of data in binary file

How to delete part of binary data from binary file? (hex dump). I tried GHex 3.18.0 binary file editor, but it's not suitable for this, just lack even simple features. For example, I need select the ...
0
votes
0answers
14 views

Leafpad + SSH: data lost

I have a client and server of SSH in a network, and both are running Debian 9 + LXDE. Then I did the following: Connect the client with the server via file manager: PCManFM > Go > Connect to ...
1
vote
3answers
30 views

Can I replace multiple characters in ed?

I have a text 'ab' whose content is composed of a,b letter. I want to change a to b, b to a at once by using s command in ed. But if I change them step by step, as you know, all the text will be ...
1
vote
1answer
47 views

Suggestions for SSH Client in Linux Mint

I am using Linux Mint 18.3 on a Dell Laptop. I like the connect to server feature in my file browser windows which allows me to easily access remote directories via SSH. However, as I repeatedly ...
1
vote
1answer
64 views

What to do when hard link is lost because of my text editor

So, I have a file, for this instance we shall call it $HOME/Documents/hello.txt. I will write some text inside it: Hello, welcome to my text file And I will hard-link this file here: $HOME/Documents/...
3
votes
1answer
118 views

Open a file in the default text editor programmatically

I'm writing a program and I need to implement opening a particular file in a text editor. The file type has a different association by default (it's associated to the program itself), so calling xdg-...
3
votes
1answer
64 views

When I try to load and edit files in nano or vi, it only creates a new blank file. Why is this?

When I try to load any files in nano or vi, it simply creates a blank [New File]. For some reason it won't load any files I'm trying to edit. I'm at a loss. Why would this be? I open up a terminal ...
1
vote
0answers
33 views

Cannot change default text editor using update-alternatives

I want to use vim over nano as default text editor. I tried to do it with sudo update-alternatives --config editor From menu I chose vim. However, when I open any file, Linux launches nano just as ...
0
votes
1answer
439 views

How to change default text edior for virsh edit? (setting EDITOR env variable didn't work)

I recently installed virt-manager on an Arch Linux install, and unlike under Ubuntu, I was not prompted to choose a text editor on the first launch of virsh-edit. Instead, the XML file was opened in ...
0
votes
3answers
296 views

Editing text files in WSL with Notepad++

I use WSL (Windows Subsystem for Linux) with Debian, which provides a simple cmd interface. I'd like to open files in Notepad++, which is installed on the Windows side of this PC. is this possible? ...
0
votes
0answers
20 views

How to change the color of C++ comments in Kate

I'm using Kate with custom setup where I have dark background. My code is in C++. I have comments in my code. And comments are highlighted in electric blue. Since I have dark background, the color ...
0
votes
0answers
135 views

How to open windows txt with cyrillic text?

How to open Windows text file that have Cyrillic text ? If I open with mousepad there is understandable text. If I type file -bi test.txt text/plain; charset=iso-8859-1
0
votes
0answers
92 views

opening editors on files with invalid characters in them

In my use case, I have a lot of text files containing invalid characters. When I search through those files, e.g. grep "some text" /home/bla/blubb/* | xargs editor_of_your_choise I'm getting the ...
1
vote
1answer
23 views

Anyone know why Find or Replace dialogs not coming up in Geany editor under Ubuntu 18.04?

I'm using Geany (1.32) in Ubuntu 18.04 and am finding that the dialog boxes to search within the open file using the Search-->Find... and Search -->Replace... are not coming up. At first I thought ...
0
votes
0answers
197 views

nano line numbers in nanorc by default

"set linenumber" doesn't seem to be working. GNU nano version 2.5.3. LinuxMint 18.02 (old because my Ubuntus -- 17.04 and 18.04 -- are broken.) Is there another way to do it?
0
votes
1answer
54 views

EDITOR: subsidiary program 'emacs -nw' not found [duplicate]

I have set up $ echo $EDITOR emacs -nw I was wondering why it is not found here, and how I can solve the problem? Thanks. $ sdiff -o sdiff.out f1 f2 1 2 3 | 2 3 4 %...
0
votes
2answers
205 views

printf and backspace

I thought of playing around a bit with find -fprintf. In case you don't know what -fprintf does, it is the same as -printf but writing to a file you specify its name. Now, when I run a command like ...
-1
votes
1answer
333 views

Open default text editor from terminal

Suppuse I have some text file and I want to open it with text editor, how to do that from terminal?. I need it that it would work for Red hat 5.3 enterprise. Without need to download nothing, I need ...
1
vote
2answers
174 views

Prevent Nano from creating .save files?

I have a problem with the Nano editor. If it ever exits unexpectedly, it leaves behind .save files, which are just versions of the edits I was making. Is there a way to disable this behaviour?
3
votes
2answers
790 views

How to delete current word in nano text editor?

How to delete the complete word where cursor is positioned in nano text editor? Or if cursor is on white space, I assume it should delete the next word? Nano help shows these two functions but they ...
4
votes
1answer
42 views

piping a man page on MacOS into an editor

Using bash on Mac OS to edit some man pages for my own use. In Mac OS the command open -t filename will open the specified file in the system's default text editor. $ man somepage | col -b will ...
1
vote
1answer
27 views

Makefile opening in emacs, how to change?

I updated Ubuntu (technically Lubuntu) and now Makefile is opening in emacs. It used to open in leafpad. How to set it back? I checked the usual places, but I couldn't find any references in the files ...
0
votes
2answers
137 views

Simple Text Editor for Desktop Environment [closed]

Issue Leafpad is the default text editor for the LXDE Desktop environment designed to be lightweight and simple. Although I like this design choice, there are some additional features available in ...
0
votes
1answer
43 views

Why ctrl+x+e is not working?

I've added setenv EDITOR gvim to .cshrc, but still no able to run ctrl+x+e to launch editor from terminal command line.
0
votes
2answers
57 views

Editor that can open directory on MacOS / Linux

Is there a default editor (vi or nano don't seem to cut it) that can open a directory and view files on MacOS or Linux? I have Sublime Text installed, but for machines w/o sublime text, what might be ...
0
votes
1answer
155 views

insert current date into text document while editing it in Kate

I would like to insert the current date into an open Kate text document while editing it by using a shortcut key combination. I see several such options for Atom, but I don't find anything for Kate.
1
vote
2answers
55 views

CLI: Editing binary strings

There's a nice CLI binutils utility for interpreting binary files, and outputting legible strings, in a cat-like fashion. It's called strings. If you try to cat a binary file, you'll see a bunch of ...
0
votes
0answers
50 views

cshell text editor

Is there any text editor with highighting for cshell scripts that includes code folding? (Preferable something with a less steep learning curve than vim and emacs) I haven't been able to find ...
0
votes
1answer
62 views

Installing The Hessling Editor (THE) and Locating the Demonstration File

I'm still getting started with Linux. I've been trying to install The Hessling Editor with REXX enabled on Ubuntu (and hopefully the Linux Subsystem on Windows in the future). I thought it would be ...
1
vote
1answer
523 views

How to constantly show line number when navigating in nano?

I am looking for a keyboard shortcut to show the line numbers in nano editor when navigating up and and down within the file. I have seen in multiple posts about CTRL+C but this doesn't automatically ...
0
votes
1answer
645 views

How to set default color and font schemes for different katepart applications

katepart is the base for many KDE editing tasks and I mostly use it 1) as the editing component of kile, the LaTex editor, and 2) as standalone kate or kwrite for editing text files such as HTML or ...
0
votes
1answer
112 views

Stack tabs when using Geany

Is there a way on Geany text editor (Linux) to stack tabs, such that there are multiple rows of tabs? Issue: Sometimes I have open 30 or so files in Geany. But Geany only shows about 10 on average (...
0
votes
1answer
169 views

Set kernel.sysrq = 1 in /etc/sysctl.d/10-magic-sysrq.conf using command? [duplicate]

I wish to use a single command line instead of opening the text editor to change the parameter of the file /etc/sysctl.d/10-magic-sysrq.conf to kernel-sysrq = 1 from any current parameter, even if ...
0
votes
1answer
27 views

Selecting a Python Editing Tool [closed]

What do you recommend to use for Python editor/debugger tool on Linux? I use python 3.6.0 and edit the files on Windows. Now would like to do it in Linux environment Thank you
4
votes
2answers
3k views

Non-root user getting root access after running “sudo vi /etc/hosts”

On a linux machine, a non-root user open a file, $ sudo vi /etc/hosts and quit saying :sh to get root access. 1) With above, How a non-root user becomes a root user? 2) Why Linux allow such ...
2
votes
1answer
136 views

What limits Kate text editor search feature?

I am fairly new with Kate, started to use it, because it's search feature shows the number of occurrences found. But now I found a problem with search. It works fine for few line files (few hundreds) ...
1
vote
4answers
80 views

Is it possible to add some text at beginning of a file in CLI without making new file?

I have two files; file1 containing - hello world hello bangladesh and file2 containing - Dhaka in Bangladesh Dhaka is capital of Bangladesh I want to update file2 as - hello world ...
4
votes
2answers
272 views

TextEdit producing “egrep: parentheses not balanced” error

I've written a small bash script for work: I'm trying to update a file automatically based on the metadata. Overall, the script works fine, but anytime I save a new version I get the error: egrep: ...
0
votes
1answer
143 views

How to edit files in text editor and not terminal when using nano command? [closed]

So when I use nano it opens a little interface to edit the file. However, is there a way to open the file with text editor?, as that is much easier to edit, navigate and save.
2
votes
2answers
209 views

Using sed to clean up long paths in log files

A script generates log files with tens of kilolines, and most lines are very long. It would be great to make this log human-friendly with a few edits. At run time, there are helpful environment ...
11
votes
2answers
6k views

Change default editor to vim for _ sudo systemctl edit [unit-file] _

[4.13.12-1-ARCH with gnome3 and gdm on Xorg] I already have set my VISUAL and EDITOR env-vars to vim. Similarly I did try SYSTEMD_EDITOR="vim"; export SYSTEMD_EDITOR in my ~/.bashrc, to no avail. ...
1
vote
2answers
57 views

I'm looking for a text editor that I can access from a browser on a different server

Much like you can do with Jupyter Notebook. I can start a jupyter server on a linux box and access that on a different computer. I know I can use Jupyter as a text editor, but it is very light-weight. ...
2
votes
1answer
405 views

Why is a duplicate file sometimes created after editing a file? [duplicate]

I use gedit to modify/create files in my system, and sometimes I see that after editing, a duplicate file is created by the name of samename~ Just that ~ is extra. Why does this happen? Is there any ...
-4
votes
1answer
64 views

What are the GNU programs that I need with Linux if I only edit files? [closed]

What are the minimum number of programs that someone can use to edit files with the Linux kernel? I mean reading a file from some storage device, changing it, and storing it. Maybe by specifying the ...
1
vote
1answer
180 views

Edited file after calling `sudo visudo`

To view permissions, I called sudo visudo in terminal. When I wanted to exit from the editor, I pressed control-x (on the Mac, it exits nano editor, but it was apparently not nano). Instead, it ...
0
votes
1answer
48 views

Minimalistic text editor/document processor?

I am looking for an open source word processor that can do the following: Text size Access a font database Big font/cursive Tables List Non-analogue imitation
0
votes
2answers
504 views

Save text file with multiple highlights in color

I have a text file which I am reading, it is too long and sometimes I need to mark content in it for later reference. I want to be able to highlight multiple lines in the file with color and save ...
0
votes
1answer
746 views

nano - soft wrap at 80 characters

I would like nano to soft-wrap at 80 characters. That is, as I keep typing, the text should flow to the next line beyond 80 characters, without nano insert a \n newline at 80 characters. set softwrap ...
1
vote
0answers
133 views

Kate editor: how to define / add filetype filters in file dialogs?

I use Kate extensively. When opening and saving files, I would like to have several pre-defined options to filter by filetype (extension). In Arch Linux Kate only shows the "All Files" filter in file ...
1
vote
1answer
169 views

ArchLinux: Still having the wrong editor in some cases

After the installation of my ArchLinux OS, the default text editor was set to vi. I wanted to change it to vim and edited all possible configurations, such as .bashrc, .zshrc, .zshenv and /etc/...