Questions tagged [edit]

to modify (a computer file) by, for example, deleting, inserting, moving, or copying text.

Edit can be done as part of coding or changing configuration files.

The tool which is used for editing is called an Editor. Common editors include vi, emacs etc.

3207 questions
6
votes
2 answers

Replace array element within JSON hash with content from other file

I have got a configuration with content to be exchanged with snippets from separate file. How would I neatly achieve this? Config file might look like: # config file { "keep": "whatever type of value", "manipulate": [ { …
ITL
  • 422
  • 1
  • 5
  • 17
6
votes
2 answers

Embed just a range of editable google spreadsheet

I have a google spreadsheet, and I give each of my users their own small range they can edit (just their own row, actually). Now I want to embed this sheet using iframes. How do I embed just a range of this editable spreadsheet? This line shows the…
Stef Pillaert
  • 71
  • 1
  • 3
6
votes
3 answers

How do I update a single value in a nested array of objects in a json document using jq?

I have a JSON document that looks like the following. Note this is a simplified example of the real JSON, which is included at bottom of question: { "some_array": [ { "k1": "A", "k2": "XXX" }, { "k1": "B", "k2":…
zayquan
  • 7,544
  • 2
  • 30
  • 39
6
votes
1 answer

How to import installed Python module?

I've just installed a Python package using pip: $ sudo pip install py_vollib Password: Collecting py_vollib Downloading py_vollib-1.0.1.tar.gz Collecting py_lets_be_rational (from py_vollib) Downloading…
kramer65
  • 50,427
  • 120
  • 308
  • 488
6
votes
1 answer

how to enable/disable editing in TextInput using kivy in python

I have a piece of code. (1) The TextInput value should be shown , but first it should not be editable, after clicking the corresponding CheckBox, the TextInput will be editable. (2) Using the iteration, the Label and the TextInput should get the…
crazyDelight
  • 89
  • 2
  • 14
6
votes
1 answer

Laravel edit existing pdf

I don't know how to edit an existing pdf file with Laravel. I have found many plugin for create PDF but no one help me in my problem. Can anyone know how to do it? This is what I have tried so far $pdf->AddPage(); $source =…
Nolkyz
  • 65
  • 1
  • 1
  • 7
6
votes
3 answers

Use onEdit only in one column

I'm currently using this script: function onEdit(e) // Set a comment on the edited cell to indicate when it was changed. var range = e.range; range.setNote('Laatst veranderd: ' + new Date()); What do I need to add so this will only work in…
Jelle Poelmans
  • 61
  • 1
  • 1
  • 2
6
votes
0 answers

Features added to vector layer are not visible

I am trying to add new features to a vector layer. I do it with this code: layer.getSource().addFeatures(features); Where layer is an instance of ol.vector.Layer and features is an array of ol.Feature The features are added but they are not…
Marcin Roguski
  • 729
  • 2
  • 7
  • 16
6
votes
4 answers

Grabbing Edits from two strings

I'm going to go a bit in-depth with my problem, you can jump to the TL;DR if you don't want to read all of this What I'm trying to do I need to store a "file" (text document) which can be user-edited. If I have my original file (which could be…
Downgoat
  • 13,771
  • 5
  • 46
  • 69
6
votes
1 answer

How to use XML namespaces with xmlstarlet XPaths?

at the moment I am struggeling editing a XML file. When I write the command xml ed -u "/project/version" -v "2.7.13-NEW-SNAPSHOT" pom.xml > ./pom_new.xml it writes the new xml file, but when I open the file nothings changed in it. Heres a part of…
6
votes
1 answer

How to allow only one feature/polygon to be edited at a time with Leaflet?

It's been days I'm trying to solve my problem. I have a polygon layer from a GeoJSON. I want to edit my polygons with the click event. When I click on a polygon it becomes editable but what I want is that when I click on another polygon, the first…
Revocyl
  • 63
  • 1
  • 3
6
votes
2 answers

Open (edit) multiple files from within with the command mode

How can you open multiple files when you're already browsing one? If I do: :e myFile then myFile open in another buffer, but obviously: :e myFile1 myFile2 open a new file named "myFile1 myFile2"... It's easily possible to open from outside, be it…
benichka
  • 925
  • 1
  • 11
  • 32
6
votes
2 answers

What is a quick way to edit a remote file on Linux?

I have a remote file that I edit regularly. I would like to edit it with a quick, simple command that would work likely via SSH. At present, my workflow is to connect to the remote computer via SSH, open the file using an editor (say vim or nano),…
d3pd
  • 7,935
  • 24
  • 76
  • 127
6
votes
3 answers

Delphi: How to adjust text vertical position of a TEdit

The text in a TEdit (or TCombo, TButtonedEdit) is always aligned to top. I have not found any property to change the alignment. Usually it is not a problem, unless I want to set a larger height. I googled a little. There are solutions to adjust the…
stanleyxu2005
  • 8,081
  • 14
  • 59
  • 94
6
votes
6 answers

Drag a bezier curve to edit it

You will understand what I mean if you use graphic editing programs like Gimp or Photoshop. To edit a curve on those programs (which probably is Bezier Curve), we can click on the curve, drag the mouse and the curve is changed accordingly. I suspect…
wakandan
  • 1,099
  • 4
  • 19
  • 27